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

Snapchat Object ( [auth_token] => [username] => )

Open ricoxor opened this issue 9 years ago • 9 comments

Hi, Since yesterday i can't use the API php-snapchat.

require_once('src/snapchat.php');
$snapchat = new Snapchat('yolo_lussa', 'password');
print_r($snapchat);
die();

The result is Snapchat Object ( [auth_token] => [username] => )

I have created a new account and i try the script on a new server for change account/ip's.

Do you know why i can't use this API now ?

ricoxor avatar Feb 25 '15 08:02 ricoxor

Getting the same var dump... Probably an API update..?

thearion avatar Feb 25 '15 23:02 thearion

Having the same issue

Klievan avatar Mar 01 '15 21:03 Klievan

You can use this for now Snap API: https://github.com/mgp25/Snap-API

Regards

mgp25 avatar Mar 01 '15 22:03 mgp25

@mgp25

Notice: Undefined variable: auth_token in C:\xampp\htdocs\test\exampleFunctional.php on line 17

Notice: Undefined variable: multipart in C:\xampp\htdocs\test\src\snapchat.php on line 90

Notice: Undefined variable: multipart in C:\xampp\htdocs\test\src\snapchat.php on line 295

Notice: Undefined variable: media_id in C:\xampp\htdocs\test\index.php on line 24

thearion avatar Mar 02 '15 01:03 thearion

@thearion use it in terminal / shell / cmd :smile:

mgp25 avatar Mar 02 '15 01:03 mgp25

$snapchat = new Snapchat($username, $auth_token, $debug);
$snapchat->login($username, $password);
print_r($snapchat->getSnaps());

@mgp25 your api return :

  • Notice: Undefined property: Snapchat::$cache in C:\wamp\www\Snap-API-master\src\snapchat.php on line 428
  • Fatal error: Call to a member function get() on a non-object in C:\wamp\www\Snap-API-master\src\snapchat.php on line 428

ricoxor avatar Mar 02 '15 08:03 ricoxor

@ricoxor there are some functions that arent updated yet, i havent tested the getSnaps yet, but the main functions (postStory and send) works perfectly, im using version 9+, on my spare time ill be updating the API. I suggest you to use simple scripts in terminal because it provides a debug log.

Regards

mgp25 avatar Mar 02 '15 08:03 mgp25

@mgp25 Story and Send work. Just needs getSnaps() to work :D

thearion avatar Mar 02 '15 15:03 thearion

@thearion now its working, give a try :smile: and i recommend you doing getSnaps(true) it will save automatically all snaps :)

mgp25 avatar Mar 07 '15 00:03 mgp25