JorgenPhi / php-snapchat

A PHP library for the Snapchat API - With Commit History
MIT License
259 stars 73 forks source link

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

Open Kroolcell opened 9 years ago

Kroolcell commented 9 years ago

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) {

Geczy commented 9 years ago

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

Geczy commented 9 years ago
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)
}
mgp25 commented 9 years ago

@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