jdolitsky / AppDotNetPHP

PHP library for the App.net Stream API
34 stars 19 forks source link

Following / Followers pagination #22

Closed ghost closed 11 years ago

ghost commented 11 years ago

So I was trying to get Following / Follower pagination working but I think I am confused on how the migration works.

  1. How do I enable the migration(s) .. an example?
  2. The lib needs this update (I think..) (parms)

    /**

    • Returns an array of User objects the specified user is following.
    • @param mixed $user_id Either the ID of the user being followed, or
    • the string "me", which will retrieve posts for the user you're authenticated
    • as.
    • @return array An array of associative arrays, each representing a single
    • user following $user_id */ public function getFollowing($user_id='me',$params = array()) { return $this->httpGet($this->_baseUrl.'users/'.$user_id.'/following?'.$this->buildQueryString($params)); }

    /**

    • Returns an array of User objects for users following the specified user.
    • @param mixed $user_id Either the ID of the user being followed, or
    • the string "me", which will retrieve posts for the user you're authenticated
    • as.
    • @return array An array of associative arrays, each representing a single
    • user following $user_id */ public function getFollowers($user_id='me',$params = array()) { return $this->httpGet($this->_baseUrl.'users/'.$user_id.'/followers?'.$this->buildQueryString($params)); }
ravisorg commented 11 years ago

AppDotNetPHP doesn't support the migrations yet, it's on my list of things to do (although feel free to update if you like). As I remember from reading the docs very very quickly a week or so ago, the data we get back will be in a slightly different format (inside a container) so we need to handle that, as well as passing a "yes we want the new version please" flag in the request.