Permalink
Browse files

Added support for limit, offset, and API account parameters in the Se…

…rvices_Scribd_Docs->getList() method.
  • Loading branch information...
1 parent a80196d commit cb1a570ac6e592bb6154a984028135444d45eff5 @richid committed Mar 16, 2009
Showing with 11 additions and 2 deletions.
  1. +11 −2 Services/Scribd/Docs.php
View
13 Services/Scribd/Docs.php
@@ -186,13 +186,22 @@ public function getDownloadUrl($docId, $docType = 'original')
/**
* getList
*
- * Revtrieve a list of documents owned by a user.
+ * Revtrieve a list of documents owned by a user.
+ *
+ * @param integer $limit Max amount of results to return
+ * @param integer $offset Offset into the list of documents
+ * @param boolean $useAPIAccount Show documents associated with the API
+ * account, rather the Scribd user account
*
* @link http://www.scribd.com/publisher/api?method_name=docs.getList
* @return array
*/
- public function getList()
+ public function getList($limit = 10, $offset = 0, $useAPIAccount = false)
{
+ $this->arguments['limit'] = $limit;
+ $this->arguments['offset'] = $offset;
+ $this->arguments['use_api_account'] = $useAPIAccount;
+
$response = $this->sendRequest('docs.getList');
$response = (array) $response->resultset;

0 comments on commit cb1a570

Please sign in to comment.