Twitter API Library – Build 7
Well, this is going to break some things if you’re using an older build. Primarily any method that required the ID/Screen Name/User ID of a user. I thought I had pushed out this change before the Build 4 release, but apparently it was still on my computer.
Now, any API methods that were function( mixed $id = NULL, string $screen_name = NULL, int $user_id = NULL ) are now: function( mixed $id, int $id_type = TWITTER_ID ). $id_type can be one of “TWITTER_ID” (lets twitter decide if you’re using a screen name or user id), “TWITTER_SN” (tells twitter you’re using a screen name) or “TWITTER_UID” (tells twitter you’re using a user ID). This parameter may be omitted and will default to TWITTER_ID.
URI: http://sandbox.gtaero.net/twitter_api/code.php?b=7
Change Log:
- Changed Tri-optional User Identification procedure in the API methods to Two Parameters $id and $id_type.
- Added array api->lists_create( string $name [, int $privacy = TWITTER_PRIVACY_PUBLIC ] )
- $privacy may be one of TWITTER_PRIVACY_PUBLIC or TWITTER_PRIVACY_PRIVATE
Known Issues:
- No Support for Unauthenticated Requests.
- $tw->name() does not support users other than the currently logged in user.
- $tw->profile_pic() does not support users other than the currently logged in user.
- $twitter->get_sn_from_id() does not support users other than the currently logged in user.
- $twitter->get_name_from_id() does not support users other than the currently logged in user.
- Two instances of Twitter API Library can not co-exist on the same sub-domain. (All Versions)
Twitter API Library – Build 6
Decided to push out one last, though much smaller, build tonight – Build 6. Build 6 moves from Authorize to Authenticate and adds a TWML function. There are some other small changes in Build 6 from the other builds, but these are not documented yet, and will probably require the help of someone who knows more about OAuth than I to become supported (yes, I’m talking about setup_login() and set_cache_dir()).
URI: http://sandbox.gtaero.net/twitter_api/code.php?b=6
Change Log:
- Moved from using OAuth Authorize to OAuth Authenticate. Users will no longer have to continually click “Allow this application.” Now they just do it once and Twitter API Library will auto-magically log them in next time.
- Added bool $tw->if_is_user( int $user_id ) which returns true if the current user is the same as the inserted ID, and false if they aren’t.
Known Issues:
- No Support for Unauthenticated Requests.
- $tw->name() does not support users other than the currently logged in user.
- $tw->profile_pic() does not support users other than the currently logged in user.
- $twitter->get_sn_from_id() does not support users other than the currently logged in user.
- $twitter->get_name_from_id() does not support users other than the currently logged in user.