Permalink
Browse files

Adding new user_has_liked API method

  • Loading branch information...
1 parent 0df046b commit 2287b71bf093eb2fd20a77581f6e86668ba4b72d randy committed May 21, 2011
Showing with 13 additions and 0 deletions.
  1. +13 −0 instagram/users.php
View
@@ -114,6 +114,19 @@ public function Recent($user_id, Array $params = array())
return $this->Get($this->buildUrl($user_id . '/media/recent/'));
}
+ /**
+ * Gets media liked by the current user
+ * @access public
+ * @param Array $params An associative array of key/value pairs to pass to the API
+ * @return Response
+ */
+ public function Liked(Array $params = array())
+ {
+ if (!empty($params))
+ $this->AddParams($params);
+ return $this->Get($this->buildUrl('self/media/liked/'));
+ }
+
/**
* Search for a user by username
* @access public

0 comments on commit 2287b71

Please sign in to comment.