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

Commit

Permalink
find nearby friends added
Browse files Browse the repository at this point in the history
  • Loading branch information
mgp25 committed Jul 9, 2015
1 parent fef00fa commit 2ccff72
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions src/snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -2208,6 +2208,45 @@ public function sendTyping($recipients)
return $result;
}

/**
* Find nearby snapchatters
*
* @param string $action: update or delete
* @param string $latitude
* @param string $longitude
*
* RETURN json object with nearby snapchatters
*/
public function findNearbyFriends($action, $latitude, $longitude)
{
if(!$this->auth_token || !$this->username)
{
return FALSE;
}

$timestamp = parent::timestamp();
$result = parent::post(
'/bq/find_nearby_friends',
array(
'accuracyMeters' => '65.000000',
'action' => $update,
'timestamp' => $timestamp,
'username' => $this->username,
'lat' => $latitude,
'long' => $longitude,
'totalPollingDurationMillis' => '20000'
),
array(
$this->auth_token,
$timestamp
),
$multipart = false,
$debug = $this->debug
);

return $result;
}

/**
* Sets a story.
*
Expand Down

0 comments on commit 2ccff72

Please sign in to comment.