diff --git a/src/snapchat.php b/src/snapchat.php index 7e70447..668e484 100644 --- a/src/snapchat.php +++ b/src/snapchat.php @@ -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. *