Skip to content

RandallKent/twitterlibphp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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()

About

An object-oriented PHP interface to the Twitter API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%