Twitter - Favorite a tweet?
I have Aouth working for Twitter, and pulling in a stream of tweets, I am trying to figure out how to then Favorite one of the Tweets coming in from the stream.
I understand twitter's API give me this: Parameters: * id. Optional. The ID or screen name of the user for whom to request a list of favorite statuses. o Example: http://api.twitter.com/1/favorites/bob.json or http://api.twitter.com/1/favorites/bob.rss * page. Optional. Specifies the page of favorites to retrieve. o Example: http://api.twitter.com/1/favorites.xml?page=3
But that doesn't really help me in trying to implement, or I just am not sure how to approach it
Any 开发者_JAVA技巧help ?
POST favorites/create on twitter development site
Did you try this?
function Like(ScreenName, TweetID)
{
client.rest.post('favorites/create', { screen_name: ScreenName, id: TweetID});
}
Something like this in JavaScript.
精彩评论