Skip to content

Commit 9f55064

Browse files
author
Bryan Latten
committed
Merge pull request #7 from behance/feature-activity
Activity Feed: Accept offset_ts
2 parents 16ea072 + b08fafb commit 9f55064

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

lib/Be/Api.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -574,14 +574,16 @@ public function deleteUserWip( $wip_id, $assoc = false ) {
574574
/**
575575
* Get user's activity feed
576576
*
577-
* @param boolean $assoc :return objects will be converted to associative arrays
577+
* @param int|bool $offset_ts :used for paging, timestamp received as "earliest_ts" in the previous feed request if "has_more" is true
578+
* @param boolean $assoc :return objects will be converted to associative arrays
578579
*
579580
* @return array :stdClass objects or associative arrays, based on $assoc
580581
*/
581-
public function getUserActivity( $assoc = false ) {
582+
public function getUserActivity( $offset_ts = false, $assoc = false ) {
582583

583584
$endpoint = self::ENDPOINT_ACTIVITY ;
584-
585+
586+
$params['offset_ts'] = $offset_ts;
585587
$params['access_token'] = $this->_access_token;
586588

587589
$results = $this->_getDecodedJson( $endpoint, $params, 'activity', $assoc );

0 commit comments

Comments
 (0)