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

Commit

Permalink
downloadProfileData Added
Browse files Browse the repository at this point in the history
  • Loading branch information
mgp25 committed Sep 6, 2015
1 parent 83ad00f commit 2baa79e
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -1033,6 +1033,36 @@ public function getUpdates($force = TRUE)
return $result;
}

/**
* Download profile data
*
*/
public function downloadProfileData()
{
// 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/download_profile_data',
array(
'size' => 'MEDIUM',
'username' => $this->username,
'username_image' => $this->username
),
array(
$this->auth_token,
$timestamp,
),
$multipart = false,
$debug = $this->debug
);

return $result;
}
/**
* Gets the user's snaps.
*
Expand Down

0 comments on commit 2baa79e

Please sign in to comment.