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

为君一笑 提交于 2019-12-11 16:33:25

问题


How would I get a web app (for example, @Example) to do the following for an authenticated 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! ♥


回答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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!