2

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 help ?

Xtian
  • 3,535
  • 11
  • 55
  • 91

2 Answers2

2

POST favorites/create on twitter development site

JohnD
  • 3,884
  • 1
  • 28
  • 40
0

Did you try this?

function Like(ScreenName, TweetID)
{
    client.rest.post('favorites/create', { screen_name: ScreenName, id: TweetID});
}

Something like this in JavaScript.

ankitkanojia
  • 3,072
  • 4
  • 22
  • 35
Lyndoch
  • 3
  • 3