File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -326,16 +326,26 @@ public function getBookVariables($id)
326
326
* List email addresses from book
327
327
*
328
328
* @param $id
329
+ * @param $limit
330
+ * @param $offset
329
331
*
330
332
* @return stdClass
331
333
*/
332
- public function getEmailsFromBook ($ id )
334
+ public function getEmailsFromBook ($ id, $ limit = null , $ offset = null )
333
335
{
334
336
if (empty ($ id )) {
335
337
return $ this ->handleError ('Empty book id ' );
336
338
}
337
339
338
- $ requestResult = $ this ->sendRequest ('addressbooks/ ' . $ id . '/emails ' );
340
+ $ data = array ();
341
+ if (null !== $ limit ) {
342
+ $ data ['limit ' ] = $ limit ;
343
+ }
344
+ if (null !== $ offset ) {
345
+ $ data ['offset ' ] = $ offset ;
346
+ }
347
+
348
+ $ requestResult = $ this ->sendRequest ('addressbooks/ ' . $ id . '/emails ' , 'GET ' , $ data );
339
349
340
350
return $ this ->handleResult ($ requestResult );
341
351
}
You can’t perform that action at this time.
0 commit comments