php-snapchat icon indicating copy to clipboard operation
php-snapchat copied to clipboard

PHP Notice: Trying to get property of non-object in snapchat.php line 471

Open Kroolcell opened this issue 9 years ago • 3 comments

This is after changing the login order (Check for login before pulling from cache, #93 ), so the line in reference is: if (strpos($result->message, 'Sorry! Couldn't find') === 0) {

Kroolcell avatar Feb 24 '15 09:02 Kroolcell

same here on $conversations = $updates['data']->conversations_response; ErrorException …/­app/­controllers/­snapchat.php495

Geczy avatar Mar 08 '15 23:03 Geczy

array(3) {
  ["data"]=>
  string(200) "<html><head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>401 UNAUTHORIZED</title>
</head>
<body text=#000000 bgcolor=#ffffff>
<h1>Error: UNAUTHORIZED</h1>
</body></html>
"
  ["test"]=>
  int(1)
  ["code"]=>
  int(401)
}

Geczy avatar Mar 08 '15 23:03 Geczy

@Geczy hi there, we are updating the API here: https://github.com/mgp25/Snap-API

There are function to be updated yet, but the most importants works!

Regards

mgp25 avatar Mar 08 '15 23:03 mgp25