Friday, November 6, 2009

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: href="http://sandbox.gtaero.net/twitter_api/code.php?b=7">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)

No comments:

Post a Comment