You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

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.jsonstatuses/user_timeline/id.xml

statuses/show

This method only accepts a user name or id:

statuses/show/name.jsonstatuses/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.jsonstatuses/friends/id.xml

statuses/followers

This method also accepts a user name or id:

statuses/followers/name.jsonstatuses/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.jsonusers/show/id.xml

friendships/create

This method only accepts a user name or id:

friendships/create/name.jsonfriendships/create/id.xml

Method

POST

friendships/destroy

This method only accepts a user name or id:

friendships/destroy/name.jsonfriendships/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.

  • No labels