开发者

Twitter API + OAuth - Automatically send status update & follow someone

开发者 https://www.devze.com 2023-02-01 05:00 出处:网络
How would I get a web app (for example, @Example) to do the following for an authentica开发者_运维技巧ted user?

How would I get a web app (for example, @Example) to do the following for an authentica开发者_运维技巧ted user?

  1. Send a status update (send a new tweet, ie. "I just used the new @Example app!")
  2. Follow @Example

In one click... Can someone point me in the right direction? Thanks! ♥


Using the REST API, you could call statuses/update with your tweet text, and then (after receiving a 200 response code denoting a successful update) you could call friendships/create to then follow @Example using the screen_name parameter.


Check this out:: http://dev.twitter.com/doc/get/statuses/followers


REST API provides simple interfaces, that perform all integrations with Twitter. Document describes REST API Resources such as: Timelines, Tweets, Search, Direct Message, Friends & Followers etc.

Twitter OAuth with .NET describes how to implement Twitter OAuth and send Twitter status update.


If you don't mind little $ use tweetapart.com it's the easiest tool I found, it supports auto hashtagging too.

http://tweetapart.com/tweet?api_key={API_KEY}&status={YOUR_STATUS}
0

精彩评论

暂无评论...
验证码 换一张
取 消