Can I do the following with the Twitter API?
I'm looking to do the 2 following tasks automatically via the twitter API?
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.
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.
You want the user to follow you.
You want the user to retweet all of your messages
There may be some issues with spamming for #2.
精彩评论