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

Commit

Permalink
Added IP Routing
Browse files Browse the repository at this point in the history
  • Loading branch information
mgp25 committed Sep 2, 2015
1 parent c6c584b commit ca3e6ec
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions src/snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,34 @@ public function login($password, $force = FALSE)
}
}

/**
* IP Routing
*/
public function ipRouting()
{
// Make sure we're logged in and have a valid access token.
if(!$this->auth_token || !$this->username)
{
return FALSE;
}

$timestamp = parent::timestamp();
$result = parent::post(
'/bq/ip_routing',
array(
'ip_routing_key' => '{"https:\/\/feelinsonice-hrd.appspot.com":"https:\/\/feelinsonice-hrd.appspot.com"}',
'timestamp' => $timestamp,
'username' => $this->username
),
array(
$this->auth_token,
$timestamp,
),
$multipart = false,
$debug = $this->debug
);
}

/**
* Logs out the current user.
*
Expand Down

0 comments on commit ca3e6ec

Please sign in to comment.