An object-oriented PHP interface to the Twitter API
PHP
Switch branches/tags
Nothing to show
Pull request Compare This branch is 1 commit ahead, 14 commits behind jdp:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
LICENSE
README
twitter.lib.php

README

Twitter interface class
Justin Poliey <jdp34@njit.edu>
http://github.com/jdp/twitterlibphp
First release Nov 26 2007
Newest release Aug 14 2008

This is a simple interface to the Twitter API.

I've tried to keep as close as possible to the real API
calls (some had to be changed due to ambiguity), but all
of the arguments are as they are in the official docs.

For documentation, check the project wiki:
 
    http://github.com/jdp/twitterlibphp/wikis

Usage:
 $twitter = new Twitter("username", "password");
 $public_timeline_xml = $twitter->getPublicTimeline("xml");

Constructor:
 __constructor($username, $password [, $source])
 
Methods:
 getPublicTimeline($format [, $since_id])
 getFriendsTimeline($format [, $id [, $since ]])
 getUserTimeline($format [, $id [, $count [, $since ]]])
 showStatus($format, $id)
 updateStatus($status)
 destroyStatus($format, $id)
 getReplies($format [, $page ])
 getFriends($format [, $id ])
 getFollowers($format [, $id [, $page [, $lite ]]])
 getFeatured($format)
 showUser($format [, $id [, $email ]])
 getMessages($format [, $since [, $since_id [, $page ]]])
 getSentMessages($format [, $since [, $since_id [, $page ]]])
 newMessage($format, $user, $text)
 destroyMessage($format, $id)
 createFriendship($format, $id)
 destroyFriendship($format, $id)
 friendshipExists($format, $user_a, $user_b)
 verifyCredentials([$format])
 endSession()
 updateLocation($format, $location)
 updateDeliveryDevice($format, $device)
 rateLimitStatus($format)
 getArchive($format [, $page ])
 getFavorites($format [, $id [, $page ]])
 createFavorite($format, $id)
 destroyFavorite($format, $id)
 follow($format, $id)
 leave($format, $id)
 createBlock($format, $id)
 destroyBlock($format, $id)
 test($format)
 downtimeSchedule($format)
 lastStatusCode()
 lastAPICall()