开发者

Can I do the following with the Twitter API?

I'm looking to do the 2 following tasks automatically via the twitter API?

  1. Allow a user to provide their credentials and have their twitter account 开发者_如何学Pythonto subscribe to my website feed directly from a form on the site.

  2. Allow a user to integrate tweets from my websites twitter feed into their outgoing tweets.

I'm finding it hard to find any informationon how to achieve these, can anyone shed any light?

Thanks in advance.


For 1; take a look at; Twitter REST API Method: friendships create

A CURL example;

curl -u user:password -d "" http://api.twitter.com/1/friendships/create/dougw.xml

replate dougw with your Twitter username.

For number 2 take a look at; Twitter REST API Method: statuses/update

A CURL example;

curl -u user:password -d "status=playing with cURL and the Twitter API" http://api.twitter.com/1/statuses/update.xml


You are describing some core twitter functionality.

  1. You want the user to follow you.

  2. You want the user to retweet all of your messages

There may be some issues with spamming for #2.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜