Skip to content
This repository has been archived by the owner on Dec 16, 2020. It is now read-only.

Commit

Permalink
update for 9.9.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
teknogeek committed Jun 11, 2015
1 parent 2210caf commit 50e4aaf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,15 @@ public function getAuthToken()

$return['error'] = 0;
$exploded = explode("\n", $result);
$return['auth'] = substr($exploded[1], 5);
$return['auth'] = "";
foreach($exploded as $line)
{
if(substr($line, 0, 5) == "Auth=")
{
$return["auth"] = substr($line, 5);
break;
}
}
}
else
{
Expand Down Expand Up @@ -323,7 +331,7 @@ public function login($password, $force = FALSE)
return $auth;
}
parent::setGAuth($auth);
$attestation = $this->getAttestation();
$attestation = $this->getAttestation();
$result = parent::post(
'/loq/login',
array(
Expand Down
2 changes: 1 addition & 1 deletion src/snapchat_agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ abstract class SnapchatAgent {
* Before updating this value, confirm
* that the library requests everything in the same way as the app.
*/
const USER_AGENT = 'Snapchat/9.8.0.0 (HTC One; Android 4.4.2#302626.7#19; gzip)';
const USER_AGENT = 'Snapchat/9.9.0.0 (HTC One; Android 4.4.2#302626.7#19; gzip)';

/*
* The API URL. We're using the /bq endpoint, the one that the iPhone
Expand Down

0 comments on commit 50e4aaf

Please sign in to comment.