Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ricoxor opened this issue Feb 25, 2015 · 9 comments
Open

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

ricoxor opened this issue Feb 25, 2015 · 9 comments

Comments

@ricoxor
Copy link

ricoxor commented Feb 25, 2015

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 ?

@thearion
Copy link

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

@Klievan
Copy link

Klievan commented Mar 1, 2015

Having the same issue

@mgp25
Copy link

mgp25 commented Mar 1, 2015

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

Regards

@thearion
Copy link

thearion commented Mar 2, 2015

@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

@mgp25
Copy link

mgp25 commented Mar 2, 2015

@thearion use it in terminal / shell / cmd 😄

@ricoxor
Copy link
Author

ricoxor commented Mar 2, 2015

$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

@mgp25
Copy link

mgp25 commented Mar 2, 2015

@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

@thearion
Copy link

thearion commented Mar 2, 2015

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

@mgp25
Copy link

mgp25 commented Mar 7, 2015

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants