JorgenPhi / php-snapchat

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

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

Open ricoxor opened 9 years ago

ricoxor commented 9 years ago

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 commented 9 years ago

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

Klievan commented 9 years ago

Having the same issue

mgp25 commented 9 years ago

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

Regards

thearion commented 9 years ago

@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 commented 9 years ago

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

ricoxor commented 9 years ago
$snapchat = new Snapchat($username, $auth_token, $debug);
$snapchat->login($username, $password);
print_r($snapchat->getSnaps());

@mgp25 your api return :

mgp25 commented 9 years ago

@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 commented 9 years ago

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

mgp25 commented 9 years ago

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