File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments