按照通过REST API在叽叽喳喳的用户 [英] Follow an user in twitter via Rest API

查看:186
本文介绍了按照通过REST API在叽叽喳喳的用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何使用Twitter的REST API可以按照用户在像这样的格式:

How using the twitter rest api can i follow a user in something like this format:

的http:// myuser的:输入mypassword @ urloftwitterapi /遵循用户= useriwannafollow

有像这是一个非常简单的方法? 感谢

There is a very simple method like this? Thanks

推荐答案

由于Joost的已经发布一起来看看:结果
https://dev.twitter.com/docs/api/1/post /友谊/制作

As Joost already posted take a look at:
https://dev.twitter.com/docs/api/1/post/friendships/create

如果你想使用这个比,直到6月,你的终点不再需要检查OAuth认证:结果
https://dev.twitter.com/docs/auth/

https://dev.twitter.com/docs/auth/oauth /单用户与 - 范例

If you want to use this longer than till the end of June you'll need to check out OAuth Authentication:
https://dev.twitter.com/docs/auth/
https://dev.twitter.com/docs/auth/oauth/single-user-with-examples

由于Twitter将通过6月30日下降基本的HTTP验证:结果
http://www.countdowntooauth.com/

Because Twitter will drop basic HTTP Auth by June 30th:
http://www.countdowntooauth.com/

这意味着你将届时需要一些库,如果你不想去与像Python或Ruby,你可以检查出Twurl:的 http://github.com/marcel/twurl/

That means you'll need some library by then, if you don't want to go with with something like Python or Ruby, you could check out Twurl: http://github.com/marcel/twurl/

这篇关于按照通过REST API在叽叽喳喳的用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆