From 2253105a6b2b203b980db4e6e42efc03c2a08cb3 Mon Sep 17 00:00:00 2001 From: mgp25 Date: Sun, 6 Sep 2015 16:37:38 +0200 Subject: [PATCH] getDiscoversChannelList added --- src/snapchat.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/src/snapchat.php b/src/snapchat.php index 7a2906b..1c2d551 100644 --- a/src/snapchat.php +++ b/src/snapchat.php @@ -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. *