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

Commit

Permalink
getDiscoversChannelList added
Browse files Browse the repository at this point in the history
  • Loading branch information
mgp25 committed Sep 6, 2015
1 parent 2baa79e commit 2253105
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/snapchat.php
Original file line number Diff line number Diff line change
Expand Up @@ -2693,6 +2693,24 @@ public function markStoryViewed($id, $screenshot_count = 0)
return is_null($result);
}

/**
* Gets the Discover's channel list
*
* @return array
* An array of channels with all it's information
*/
public function getDiscoversChannelList()
{
// Make sure we're logged in and have a valid access token.
if(!$this->auth_token || !$this->username)
{
return FALSE;
}
$result = parent::get('/discover/channel_list?region=INTERNATIONAL');

return $result;
}

/**
* Gets the best friends and scores of the specified users.
*
Expand Down

0 comments on commit 2253105

Please sign in to comment.