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

Commit 2ccff72

Browse files
committed
find nearby friends added
1 parent fef00fa commit 2ccff72

1 file changed

Lines changed: 39 additions & 0 deletions

File tree

src/snapchat.php

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2208,6 +2208,45 @@ public function sendTyping($recipients)
22082208
return $result;
22092209
}
22102210

2211+
/**
2212+
* Find nearby snapchatters
2213+
*
2214+
* @param string $action: update or delete
2215+
* @param string $latitude
2216+
* @param string $longitude
2217+
*
2218+
* RETURN json object with nearby snapchatters
2219+
*/
2220+
public function findNearbyFriends($action, $latitude, $longitude)
2221+
{
2222+
if(!$this->auth_token || !$this->username)
2223+
{
2224+
return FALSE;
2225+
}
2226+
2227+
$timestamp = parent::timestamp();
2228+
$result = parent::post(
2229+
'/bq/find_nearby_friends',
2230+
array(
2231+
'accuracyMeters' => '65.000000',
2232+
'action' => $update,
2233+
'timestamp' => $timestamp,
2234+
'username' => $this->username,
2235+
'lat' => $latitude,
2236+
'long' => $longitude,
2237+
'totalPollingDurationMillis' => '20000'
2238+
),
2239+
array(
2240+
$this->auth_token,
2241+
$timestamp
2242+
),
2243+
$multipart = false,
2244+
$debug = $this->debug
2245+
);
2246+
2247+
return $result;
2248+
}
2249+
22112250
/**
22122251
* Sets a story.
22132252
*

0 commit comments

Comments
 (0)