@@ -309,7 +309,7 @@ public function getUserFollowers( $id_or_username, $options = array(), $assoc =
309309 $ endpoint = self ::ENDPOINT_USERS . '/ ' . $ id_or_username . '/followers ' ;
310310
311311 if ( !empty ( $ this ->_access_token ) )
312- $ options [' access_token ' ] = $ this ->_access_token ;
312+ $ options [ self :: ACCESS_TOKEN_KEY ] = $ this ->_access_token ;
313313
314314 $ results = $ this ->_getDecodedJson ( $ endpoint , $ options , 'followers ' , $ assoc );
315315
@@ -323,9 +323,9 @@ public function getUserFollowers( $id_or_username, $options = array(), $assoc =
323323 /**
324324 * Retrieves a list of users in the given user's feedback circle
325325 *
326- * @param int|string $id_or_username user
327- * @param bool $assoc return objects will be converted to associative arrays
328- * @param array $options search options
326+ * @param int|string $id_or_username : user
327+ * @param bool $assoc : return objects will be converted to associative arrays
328+ * @param array $options : search options
329329 *
330330 * @return array stdClass objects or associative arrays, based on $assoc
331331 */
@@ -589,10 +589,10 @@ public function deleteUserWip( $wip_id, $assoc = false ) {
589589 */
590590 public function getUserActivity ( $ offset_ts = false , $ assoc = false ) {
591591
592- $ endpoint = self ::ENDPOINT_ACTIVITY ;
592+ $ endpoint = self ::ENDPOINT_ACTIVITY ;
593593
594- $ params ['offset_ts ' ] = $ offset_ts ;
595- $ params [' access_token ' ] = $ this ->_access_token ;
594+ $ params ['offset_ts ' ] = $ offset_ts ;
595+ $ params [ self :: ACCESS_TOKEN_KEY ] = $ this ->_access_token ;
596596
597597 $ results = $ this ->_getDecodedJson ( $ endpoint , $ params , 'activity ' , $ assoc );
598598
@@ -1443,4 +1443,4 @@ protected function _redirect( $location ) {
14431443
14441444 } // _redirect
14451445
1446- } // Be_Api
1446+ } // Be_Api
0 commit comments