问题
How would I get a web app (for example, @Example) to do the following for an authenticated user?
- Send a status update (send a new tweet, ie. "I just used the new @Example app!")
- Follow @Example
In one click... Can someone point me in the right direction? Thanks! ♥
回答1:
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.
回答2:
Check this out:: http://dev.twitter.com/doc/get/statuses/followers
回答3:
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.
回答4:
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}
来源:https://stackoverflow.com/questions/4505990/twitter-api-oauth-automatically-send-status-update-follow-someone