Thursday, November 5, 2009

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