[twitter-dev] Using oauth-python-twitter
Hi! I'm using oauth-python-twitter to develop a browser/server application and everything (including auth) works fine, including the GetUserInfo(), but none of the other API functions work. This is the error I'm getting: File /home/xxx/www/web/Register.py, line 61, in activate twitter.CreateFriendship(elver) File /home/xxx/www/lib/twitter.py, line 1971, in CreateFriendship json = self._FetchUrl(url, post_data={}) File /home/xxx/www/lib/oauthtwitter.py, line 104, in _FetchUrl url_data = opener.open(url).read() File /usr/lib64/python2.6/urllib2.py, line 389, in open response = meth(req, response) File /usr/lib64/python2.6/urllib2.py, line 502, in http_response 'http', request, response, code, msg, hdrs) File /usr/lib64/python2.6/urllib2.py, line 427, in error return self._call_chain(*args) File /usr/lib64/python2.6/urllib2.py, line 361, in _call_chain result = func(*args) File /usr/lib64/python2.6/urllib2.py, line 510, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 400: Bad Request Pretty much the same thing happens with every other Twitter API function I try to use through oauth-python-twitter. User danjacob.beaulieu described a very similar issue in the oauth- python-twitter project page comments on October 15, 2009 here: http://code.google.com/p/oauth-python-twitter/wiki/HowToUseOAuthApi He has not gotten a reply yet. Does anyone know what's going on? Anyone seen the same error? Best, Elver
[twitter-dev] I just wondering how does tweetmeme do that, make category from urls or tweets?
i am using C# and i konw how to get urls from tweets via streaming api, but i don't know how to make category. i searched a couple of days, but didn't get any answer.
[twitter-dev] Re: Twitter backup script
I've tried your script on Mac, it only works for first 3 pages that's weird (i'm running darwin ports for xml functions)... Anyway, tried manually do it through firefox, latest page is 16. That's the limit. But if you have the ID of the previous tweets you could use statuses/SHOW for that ID... the problem is: IF you are backing up your account because you have all your tweet IDs, you will need 1 request per tweet, and maximum is 350 (with HUGE luck) per hour In my case, I got 10k, 3k via REST and 7k left to do... 7 THOUSAND REQUEST??? Come on twitter, help us, developers, start thingking on backups, we know you are gonna explode!. On 22 jun, 18:51, Kai Hendry kai.hen...@gmail.com wrote: Hello everyone, I wrote a twitterbackupscript for shell geeks like myself. I would appreciate review and any constructive comments:http://twitter.natalian.org/hgweb.cgi/file/tip/fetch-tweets.sh Where can I findhttp://api.twitter.com/1/statuses/user_timeline.xml onhttp://dev.twitter.com/statusbtw? Many thanks from a warm summer's night in England,
[twitter-dev] Re: Incorrect signature with oAuth
Hi Carlos: It works!!! Thanks for the tips. I set the header to the one one the GoogleCode page. I also removed the spaces in the header. I was getting the same signature as the GoogleGode page (Im using pure C++ here so I have a set of libs for SHA/Base64) so there was some concern. While C++ shotguning I tried to update status with the footer line: status=woowow AND IT WORKS! NOTE: As you can see the footer is NOT url encoded. I think what Twitter wants is all of the characters AFTER the 'status=' to be url encoded. NOT the 'status=' Time for the C++ dance, Thanks Carlos! Vincent Collura (Inventor/Engineer) http://www.CeBeans.com Did you get your beans Today? On Jul 18, 12:54 am, Carlos carlosju...@gmail.com wrote: Don't know if it matters but you are adding a space after each comma in the Authorization Header. Also check your signature generation method using the following:http://oauth.googlecode.com/svn/code/javascript/example/signature.html and see if you are getting the same signature values. On Jul 17, 5:21 pm, CeBeans inven...@cebeans.com wrote: Hi Carlos: Thanks for the sniplet. I just converted my source to encode when *building* the parameter string and encode again when *adding* it. I tried on my proper app token codes and still signature error. This is with my base looks like now. NOTE: I changed the C++ source back to the older tokens for this report since this is a public newsgroup. I kept the new 'dual' encoding in the source: According to your pseudo code, my base is now: POSThttp%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses %2Fupdate.xmloauth_consumer_key%3Dx80ZNISjmQ0Lxufp0QVM6w%26oauth_nonce %3D622476171724201%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1279401864%26oauth_token%3D63573892- Y5GT47cl6ixaRKTaK5TpDg9N9D6g5Wqy718pIydjK%26oauth_version %3D1.0%26status%3Dh I did try to urlencode the status parameter, just to see but changed it back to above. And the new HTTP header (with signature): Authorization: OAuth oauth_nonce=622476171724201, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279401864, oauth_consumer_key=x80ZNISjmQ0Lxufp0QVM6w, oauth_token=63573892- Y5GT47cl6ixaRKTaK5TpDg9N9D6g5Wqy718pIydjK, oauth_signature=nEOZNjNS0uyh58XzR2QH%2FPLK%2F7k%3D, oauth_version=1.0 Content-Type: application/x-www-form-urlencoded Host: api.twitter.com Content-Length: 10 Connection: Keep-Alive What am I missing? Vincent Collura CeBeans On Jul 17, 1:53 pm, Carlos carlosju...@gmail.com wrote: Are you doing this in PseudoCode? base = methodURLEncode(endpoint)URLEncode(URLParameterString) where URLParameterString = URLEncode(name)=URLEncode(value)URLEncode(name)=URLEncode(value)... On Jul 17, 11:01 am, CeBeans inven...@cebeans.com wrote: Im developing a DLL in eVC++3.0 (native C++) that uses the Twitter oAuth to update a status and have searched the web and support websites for over a week but still cant figure the signature problem out. NOTE: I have deleted the app in this example so Its safe to give out the correct codes. This way I can get a better response from support. The DLL is a simple call to update a users status: status=h (to get this thing started) My DELETED App Info: ConsumerKey,x80ZNISjmQ0Lxufp0QVM6w ConsumerSecret,AHumtKUplfkqJVVy0VtbjoMROMU1SoVbCI8aIubu2Nc Token,63573892-Y5GT47cl6ixaRKTaK5TpDg9N9D6g5Wqy718pIydjK TokenSecret,6lRq2U4UoO3pv1Z0odU4lxhXvc3zlwJdOuyViQx44 Signature Base: POSThttp%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses %2Fupdate.xmloauth_consumer_key%3Dx80ZNISjmQ0Lxufp0QVM6w%26oauth_nonce %3D4064976171056201%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1279378609%26oauth_token%3D63573892- Y5GT47cl6ixaRKTaK5TpDg9N9D6g5Wqy718pIydjK%26oauth_version %3D1.0%26status%3Dh Signature Key to Sign with: AHumtKUplfkqJVVy0VtbjoMROMU1SoVbCI8aIubu2Nc6lRq2U4UoO3pv1Z0odU4lxhXvc3zlwJdOuyViQx44 http Header: = Authorization: OAuth oauth_nonce=4064976171056201, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1279378609, oauth_consumer_key=x80ZNISjmQ0Lxufp0QVM6w, oauth_token=63573892- Y5GT47cl6ixaRKTaK5TpDg9N9D6g5Wqy718pIydjK, oauth_signature=ZztcjuTr1oxmVpQPAltfxiUEwEw%3D, oauth_version=1.0 Content-Type: application/x-www-form-urlencoded Host: api.twitter.com Content-Length: 10 Connection: Keep-Alive Http Footer = status%3Dh Server Response == ?xml version=1.0 encoding=UTF-8? hash request/1/statuses/update.xml/request errorIncorrect signature/error /hash I also tried the HTTPS in the signature base, and still the same error. NOTE: The DLL
[twitter-dev] OAuth Echo difference between TwitPic and MobyPicture
I'm trying OAuth Echo upload in various OAuth Echo enabled providers. I was successful on TwitPic but not on MobyPicture. Difference between two services seems to be the endpoint url and api key. But MobyPicture causes connection reset by peer. Is there anything else I need? Andy Matsubara
Re: [twitter-dev] Re: Twitter backup script
Tom, at least you know that the library of congress has a backup :) Pascal On Jul 18, 2010, at 7:07 , Tom Roggero wrote: I've tried your script on Mac, it only works for first 3 pages that's weird (i'm running darwin ports for xml functions)... Anyway, tried manually do it through firefox, latest page is 16. That's the limit. But if you have the ID of the previous tweets you could use statuses/SHOW for that ID... the problem is: IF you are backing up your account because you have all your tweet IDs, you will need 1 request per tweet, and maximum is 350 (with HUGE luck) per hour In my case, I got 10k, 3k via REST and 7k left to do... 7 THOUSAND REQUEST??? Come on twitter, help us, developers, start thingking on backups, we know you are gonna explode!.
[twitter-dev] Get just the IDs for a lists members
I'm looking to do do some analysis on twitter lists. I'd like to be able to retrieve the list of all users that are members of a list -- but all I need are the User IDs. Is there a way to get a list of members (up to 5,000) like we can with the call followers/ids and friends/ids? Right now, we can only retrieve 20 members at a time -- which requires many API calls for large lists and wastes bandwidth as I don't need all the user data. Thanks.
[twitter-dev] Can't add a friend
Hi, I'm trying to add @tweetsellit as a friend from @fabienpenso, can't do it whatever what I'm doing. Tried twitter.com, the iphone app, etc. Is there an issue?