Skip to content

Commit

Permalink
Merge pull request #10 from samnabi/master
Browse files Browse the repository at this point in the history
Added getSaved function
  • Loading branch information
jcleblanc committed Jan 20, 2013
2 parents 9e1aa0f + b08dc64 commit c38e562
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions reddit.php
Expand Up @@ -176,6 +176,16 @@ public function unsavePost($name){
return $response;
}

/**
* Get saved posts
*
* Get the listing of a user's saved posts
* @param string $username the desired user. Must be already authenticated.
*/
public function getSaved($username){
return $this->runCurl("http://www.reddit.com/user/".$username."/saved.json");
}

/**
* Hide post
*
Expand Down

0 comments on commit c38e562

Please sign in to comment.