Supported Twitter methods
All methods are available in both XML and JSON formats. All methods use a GET request, unless explicitly specified below.
statuses/public_timeline
statuses/replies
Returns all messages from conversations the user was engaged in.
statuses/friends_timeline
statuses/user_timeline
This method also accepts a user name or id:
statuses/user_timeline/name.json
statuses/user_timeline/id.xml
statuses/show
This method only accepts a user name or id:
statuses/show/name.json
statuses/show/id.xml
statuses/update
Method
POST
Parameters
- status: text of the message
- source: application name or twitterapi by default
statuses/friends
This method also accepts a user name or id:
statuses/friends/name.json
statuses/friends/id.xml
statuses/followers
This method also accepts a user name or id:
statuses/followers/name.json
statuses/followers/id.xml
direct_messages
Dummy method, returns empty collection. Included for compatibility with Twitter clients who request this method upon startup and fail if it returns an error.
users/show
This method only accepts a user name or id:
users/show/name.json
users/show/id.xml
friendships/create
This method only accepts a user name or id:
friendships/create/name.json
friendships/create/id.xml
Method
POST
friendships/destroy
This method only accepts a user name or id:
friendships/destroy/name.json
friendships/destroy/id.xml
Method
POST
friendships/exists
Parameters
- user_a
- user_b
account/verify_credentials
Returns basic user information if the credentials are correct.
account/end_session
Method
POST
You can find more about Twitter's own API at http://apiwiki.twitter.com/REST+API+Documentation.
Twitter API URL
You can configure the prefix for the Twitter-compatible API via the twitter.prefix property. The default value is twitter, if you want no prefix, use an empty string like this:
twitter.prefix=
For more information about configuring properties in Lift, check here.