[twitter-dev] Re: wait time for Site Streams whitelist ?
I'm intrigued - has anyone else been given Site Streams access in the last month? We signed the Terms of Service over a month ago and have heard nothing since, despite asking here, via email and via @SiteStreams I'm interested to know whether all applications have been frozen or whether it's just ours for unknown reasons. Thanks, dw. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml
So i've checked my signature with http://oauth.googlecode.com/svn/code/javascript/example/signature.html and it appears that my basestring and signature are now ok. But i still can't find where is my error when sending my data. I've tried to send it in authorization header field, and in body, but nothing has happened, stille the same failed to validate oauth signature or token So i'd be wvery grateful for a little help... On 15 avr, 13:51, galeyte gaetan...@gmail.com wrote: I don't have a 401 anymore but i recieve a you are being redirected page, so i can't get my request_token here is my code : function getSignature() { var accessor = { consumerSecret: consumer_secret, tokenSecret: oauth_token_secret }; var message = { method: POST, action: /request_token, parameters: [] }; message.parameters.push([oauth_callback, OAuth.formEncode(oauth_callback)]); message.parameters.push([oauth_consumer_key, OAuth.formEncode(consumer_key)]); message.parameters.push([oauth_nonce, OAuth.nonce(32)]); message.parameters.push([oauth_signature_method, signature_method]); message.parameters.push([oauth_timestamp, OAuth.timestamp()]); OAuth.completeRequest(message, accessor); OAuth.SignatureMethod.sign(message, accessor); console.log(OAuth.getParameter(message.parameters, oauth_signature)); var data = Oauth oauth_consumer_key=+consumer_key +oauth_signature_method=+signature_method +oauth_callback=+OAuth.getParameter(message.parameters, oauth_callback) +oauth_timestamp=+OAuth.getParameter(message.parameters, oauth_timestamp) +oauth_nonce=+OAuth.getParameter(message.parameters, oauth_nonce) +oauth_signature=+OAuth.getParameter(message.parameters, oauth_signature); console.log(data); request_maker = new XMLHttpRequest(); request_maker.open(POST, https://api.twitter.com/oauth;); request_maker.setRequestHeader(Authorization, data); request_maker.onreadystatechange = oth_func; request_maker.send(Authorization OAuth + data); } I don't now if it's me being dumb or anything else, but i really can't find my mistake. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Single Authentication for an App
Hi. I've made an app (for browser and mobile device and Desktop) It works fine but every time I start the app I have to get a new PINnumber from Twitter. Is there a way to trust an application once and use the given trustdata for all the subsequent uses? Best rgds, Ton -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Authentication issue
Any updates? On Apr 15, 2:01 pm, ap aashish.pa...@gmail.com wrote: I guess, essentially my question is: whats the best method to use to get a Twitter User back, more specifically, the Twitter users' first name and last name. On Apr 15, 1:53 pm, ap aashish.pa...@gmail.com wrote: This will help you troubleshoot my (hopefully everyone else's) issue: {Code} TwitterFactory factory = new TwitterFactory(); // Good Twitter twitter = factory.getInstance(); // Good authenticatedUser = twitter.showUser(273610984); // Throws errors {Code} {Errors} Twitter{auth='OAuthAuthorization{consumerKey='IOnTxKfXbr8NuY8uBG8A6g', consumerSecret='**', oauthToken=AccessToken{screenName='heller1900', userId=273610984}}'} TwitterException{statusCode=404, retryAfter=0, rateLimitStatus=RateLimitStatusJSONImpl{remainingHits=347, hourlyLimit=350, resetTimeInSeconds=1302892, secondsUntilReset=3440, resetTime=Fri Apr 15 14:43:16 EDT 2011}} 404:The URI requested is invalid or the resource requested, such as a user, does not exists. {request:\/1\/users\/show.json?screen_name=273610984,error:Not found} {Errors} Thanks, -Ashish On Apr 15, 1:41 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: If you can provide some more details, I can investigate possible issues. What parts of the requests are failing? There are many steps involved, so localizing to the specific areas where you're having problems will be very useful. Make sure that when using OAuth, you're using api.twitter.com/oauth/* for all paths and that when you're using the REST API you're using api.twitter.com/1/* -- the subdomain matters for both areas of the API, and the version number is imperative for the REST API. @episod http://twitter.com/episod - Taylor Singletary On Fri, Apr 15, 2011 at 10:35 AM, m36tb6ll raeste...@gmail.com wrote: Hi- same issue here... seems like the tokens are not matching.. On Apr 16, 1:28 am, Taylor Singletary taylorsinglet...@twitter.com wrote: What kind of errors are you seeing? Do you have an example of the status code and body message? What specific endpoints throw the error? @episod http://twitter.com/episod - Taylor Singletary On Fri, Apr 15, 2011 at 10:23 AM, ap aashish.pa...@gmail.com wrote: Twitter API authentication throwing errors on all our sites. Any known issues that are not reflected on your API Status page? Thanks, -Ashish -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: App title and url do not get updated (twitter website bug)
Hi Taylor, Everything is working fine now, thank you for your help. Regards, JP. On Apr 15, 11:36 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Jean-Pierre, We believe we fixed this bug recently -- can you change the fields again and observe with a subsequent tweet whether this updates within 10 minutes now? If it still isn't updating, can you send me a private email ( epi...@twitter.com ) with your consumer key or application ID? Thanks, Taylor @episod http://twitter.com/episod - Taylor Singletary On Fri, Apr 15, 2011 at 11:34 AM, Jean-Pierre jpthomas...@gmail.com wrote: Hi Taylor, I'm experiencing the same problem. I changed my application name url last week but status update sent from my application still reports it's from my old application name. Do you have an idea of when this bug will be fixed ? Regards, JP. On Mar 18, 4:00 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi MJL, We hope to have the bug fixed soon. We don't have the ability unfortunately to directly influence the changes you're trying to make and make them stick. Right now it appears that it takes 5 to 7 days for the change to take effect -- when the bug is fixed, this will be back to near-instantaneous. Thanks, Taylor @episod http://twitter.com/episod - Taylor Singletary - Twitter Developer Advocate On Fri, Mar 18, 2011 at 5:20 AM, MJL marklyon...@gmail.com wrote: I too am having this problem, only it doesnt say 'posted via' for my app at all i have an application name and url in my settings. On Feb 14, 3:11 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Guy, Thanks for the report -- we're looking into this issue. Thanks, Taylor @episod http://twitter.com/episod - Taylor Singletary - Twitter Developer Advocate On Mon, Feb 14, 2011 at 1:43 AM, guysoft guys...@gmail.com wrote: Hi all, A few days ago I updated my apps url and title, however both don't show up in the user statues posted after the update. Here is an example tweet posted via 'python api' (the old name, that keeps not getting updated): http://twitter.com/#!/guysoft/status/37077323643617280 Here is the app page (that shows as updated, new name is SMS Gate- IL): http://dev.twitter.com/apps/621723 This is clearly a bug in the twitter website, but I can't seem to find a way to reach the website developers, or jog twitter to start using the updated title and url. Thanks, Guy -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Single Authentication for an App
Hey Ton, There was a similar discussion on this ML a few days ago: http://bit.ly/icFfcC We do not expire access_token (unless a user explicitly rejects you app) so you don't have to go through the whole OAuth dance once someone approved your app. Store your user's access_token and implement a session handling system. Arnaud / @rno http://twitter.com/rno On Mon, Apr 18, 2011 at 5:20 AM, ton t...@winemaker.nl wrote: Hi. I've made an app (for browser and mobile device and Desktop) It works fine but every time I start the app I have to get a new PINnumber from Twitter. Is there a way to trust an application once and use the given trustdata for all the subsequent uses? Best rgds, Ton -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Authentication issue
I found this method that returns the currently authenticated users' object: authenticatedUser = twitter.verifyCredentials(); Is it safe to use to get the name of this authenticatedUser? Any advise, greatly appreciated! On Apr 18, 10:03 am, ap aashish.pa...@gmail.com wrote: Any updates? On Apr 15, 2:01 pm, ap aashish.pa...@gmail.com wrote: I guess, essentially my question is: whats the best method to use to get a Twitter User back, more specifically, the Twitter users' first name and last name. On Apr 15, 1:53 pm, ap aashish.pa...@gmail.com wrote: This will help you troubleshoot my (hopefully everyone else's) issue: {Code} TwitterFactory factory = new TwitterFactory(); // Good Twitter twitter = factory.getInstance(); // Good authenticatedUser = twitter.showUser(273610984); // Throws errors {Code} {Errors} Twitter{auth='OAuthAuthorization{consumerKey='IOnTxKfXbr8NuY8uBG8A6g', consumerSecret='**', oauthToken=AccessToken{screenName='heller1900', userId=273610984}}'} TwitterException{statusCode=404, retryAfter=0, rateLimitStatus=RateLimitStatusJSONImpl{remainingHits=347, hourlyLimit=350, resetTimeInSeconds=1302892, secondsUntilReset=3440, resetTime=Fri Apr 15 14:43:16 EDT 2011}} 404:The URI requested is invalid or the resource requested, such as a user, does not exists. {request:\/1\/users\/show.json?screen_name=273610984,error:Not found} {Errors} Thanks, -Ashish On Apr 15, 1:41 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: If you can provide some more details, I can investigate possible issues. What parts of the requests are failing? There are many steps involved, so localizing to the specific areas where you're having problems will be very useful. Make sure that when using OAuth, you're using api.twitter.com/oauth/* for all paths and that when you're using the REST API you're using api.twitter.com/1/* -- the subdomain matters for both areas of the API, and the version number is imperative for the REST API. @episod http://twitter.com/episod - Taylor Singletary On Fri, Apr 15, 2011 at 10:35 AM, m36tb6ll raeste...@gmail.com wrote: Hi- same issue here... seems like the tokens are not matching.. On Apr 16, 1:28 am, Taylor Singletary taylorsinglet...@twitter.com wrote: What kind of errors are you seeing? Do you have an example of the status code and body message? What specific endpoints throw the error? @episod http://twitter.com/episod - Taylor Singletary On Fri, Apr 15, 2011 at 10:23 AM, ap aashish.pa...@gmail.com wrote: Twitter API authentication throwing errors on all our sites. Any known issues that are not reflected on your API Status page? Thanks, -Ashish -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Authentication issue
Hi There, Not sure what programming language or library you're working with, but I recommend getting familiar with the REST API itself so that you better understand the API that is providing you data rather than just the view presented by the API of the library you're using. Yes, the Twitter API method account/verify_credentials includes a user object that contains a name field that corresponds to the field a user fills out in the Twitter sign up process. While you can get that data from this call, the canonical API call for user information is GET users/show with an explicit user_id or screen_name parameter. http://dev.twitter.com/doc/get/users/show @episod http://twitter.com/episod - Taylor Singletary On Mon, Apr 18, 2011 at 10:46 AM, ap aashish.pa...@gmail.com wrote: I found this method that returns the currently authenticated users' object: authenticatedUser = twitter.verifyCredentials(); Is it safe to use to get the name of this authenticatedUser? Any advise, greatly appreciated! On Apr 18, 10:03 am, ap aashish.pa...@gmail.com wrote: Any updates? On Apr 15, 2:01 pm, ap aashish.pa...@gmail.com wrote: I guess, essentially my question is: whats the best method to use to get a Twitter User back, more specifically, the Twitter users' first name and last name. On Apr 15, 1:53 pm, ap aashish.pa...@gmail.com wrote: This will help you troubleshoot my (hopefully everyone else's) issue: {Code} TwitterFactory factory = new TwitterFactory(); // Good Twitter twitter = factory.getInstance(); // Good authenticatedUser = twitter.showUser(273610984); // Throws errors {Code} {Errors} Twitter{auth='OAuthAuthorization{consumerKey='IOnTxKfXbr8NuY8uBG8A6g', consumerSecret='**', oauthToken=AccessToken{screenName='heller1900', userId=273610984}}'} TwitterException{statusCode=404, retryAfter=0, rateLimitStatus=RateLimitStatusJSONImpl{remainingHits=347, hourlyLimit=350, resetTimeInSeconds=1302892, secondsUntilReset=3440, resetTime=Fri Apr 15 14:43:16 EDT 2011}} 404:The URI requested is invalid or the resource requested, such as a user, does not exists. {request:\/1\/users\/show.json?screen_name=273610984,error:Not found} {Errors} Thanks, -Ashish On Apr 15, 1:41 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: If you can provide some more details, I can investigate possible issues. What parts of the requests are failing? There are many steps involved, so localizing to the specific areas where you're having problems will be very useful. Make sure that when using OAuth, you're using api.twitter.com/oauth/* for all paths and that when you're using the REST API you're using api.twitter.com/1/* -- the subdomain matters for both areas of the API, and the version number is imperative for the REST API. @episod http://twitter.com/episod - Taylor Singletary On Fri, Apr 15, 2011 at 10:35 AM, m36tb6ll raeste...@gmail.com wrote: Hi- same issue here... seems like the tokens are not matching.. On Apr 16, 1:28 am, Taylor Singletary taylorsinglet...@twitter.com wrote: What kind of errors are you seeing? Do you have an example of the status code and body message? What specific endpoints throw the error? @episod http://twitter.com/episod - Taylor Singletary On Fri, Apr 15, 2011 at 10:23 AM, ap aashish.pa...@gmail.com wrote: Twitter API authentication throwing errors on all our sites. Any known issues that are not reflected on your API Status page? Thanks, -Ashish -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker:
[twitter-dev] Re: Single Authentication for an App
dear Arnaud, I've read what you've proposed. thanks for the info Storing info is no problem in either application. (what is the name used in the API documentation for the user-access token.?) - The problem is: How to give the app authenticated access to the user account without going to the process (inclusive logging in) - Is there an url build up for that like http://www.twitter.com?consumerkey=...consumersecret=account=...xyz=. - Related question: if the timerbased limit-reset takes place do you need a to login again or can you just start posting again. On Apr 18, 6:29 pm, Arnaud Meunier arn...@twitter.com wrote: Hey Ton, There was a similar discussion on this ML a few days ago:http://bit.ly/icFfcC We do not expire access_token (unless a user explicitly rejects you app) so you don't have to go through the whole OAuth dance once someone approved your app. Store your user's access_token and implement a session handling system. Arnaud / @rno http://twitter.com/rno On Mon, Apr 18, 2011 at 5:20 AM, ton t...@winemaker.nl wrote: Hi. I've made an app (for browser and mobile device and Desktop) It works fine but every time I start the app I have to get a new PINnumber from Twitter. Is there a way to trust an application once and use the given trustdata for all the subsequent uses? Best rgds, Ton -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Single Authentication for an App
The last step of the OAuth dance (exchanging request_token for access_token) will give you an oauth_token and oauth_token_secret. You'll just have to sign your requests with those. Cf this page for more information: http://dev.twitter.com/auth#auth-request If you're not familiar with the concept of signing your requests with OAuth, you should take a look on one of these libraries: http://dev.twitter.com/pages/libraries Finally, the X-FeatureRateLimit-Reset header has nothing to do with your access_token validity. Cf Rate Limiting documentation: http://dev.twitter.com/pages/rate-limiting Arnaud / @rno http://twitter.com/rno On Mon, Apr 18, 2011 at 11:02 AM, ton t...@winemaker.nl wrote: dear Arnaud, I've read what you've proposed. thanks for the info Storing info is no problem in either application. (what is the name used in the API documentation for the user-access token.?) - The problem is: How to give the app authenticated access to the user account without going to the process (inclusive logging in) - Is there an url build up for that like http://www.twitter.com?consumerkey=...consumersecret=account=...xyz=... .. - Related question: if the timerbased limit-reset takes place do you need a to login again or can you just start posting again. On Apr 18, 6:29 pm, Arnaud Meunier arn...@twitter.com wrote: Hey Ton, There was a similar discussion on this ML a few days ago: http://bit.ly/icFfcC We do not expire access_token (unless a user explicitly rejects you app) so you don't have to go through the whole OAuth dance once someone approved your app. Store your user's access_token and implement a session handling system. Arnaud / @rno http://twitter.com/rno On Mon, Apr 18, 2011 at 5:20 AM, ton t...@winemaker.nl wrote: Hi. I've made an app (for browser and mobile device and Desktop) It works fine but every time I start the app I have to get a new PINnumber from Twitter. Is there a way to trust an application once and use the given trustdata for all the subsequent uses? Best rgds, Ton -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: error 401 failed oauth_signature and token / javascript - qml
Hi, Looking at your code this line: request_maker.open(POST, https://api.twitter.com/oauth;); makes it look like you are making a request to: https://api.twitter.com/oauth Double check you are sending the user to the correct endpoint. At this point of your flow I think you mean to make a request to https://api.twitter.com/oauth/request_token . Best @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Fri, Apr 15, 2011 at 4:51 AM, galeyte gaetan...@gmail.com wrote: I don't have a 401 anymore but i recieve a you are being redirected page, so i can't get my request_token here is my code : function getSignature() { var accessor = { consumerSecret: consumer_secret, tokenSecret: oauth_token_secret }; var message = { method: POST, action: /request_token, parameters: [] }; message.parameters.push([oauth_callback, OAuth.formEncode(oauth_callback)]); message.parameters.push([oauth_consumer_key, OAuth.formEncode(consumer_key)]); message.parameters.push([oauth_nonce, OAuth.nonce(32)]); message.parameters.push([oauth_signature_method, signature_method]); message.parameters.push([oauth_timestamp, OAuth.timestamp()]); OAuth.completeRequest(message, accessor); OAuth.SignatureMethod.sign(message, accessor); console.log(OAuth.getParameter(message.parameters, oauth_signature)); var data = Oauth oauth_consumer_key=+consumer_key +oauth_signature_method=+signature_method +oauth_callback=+OAuth.getParameter(message.parameters, oauth_callback) +oauth_timestamp=+OAuth.getParameter(message.parameters, oauth_timestamp) +oauth_nonce=+OAuth.getParameter(message.parameters, oauth_nonce) +oauth_signature=+OAuth.getParameter(message.parameters, oauth_signature); console.log(data); request_maker = new XMLHttpRequest(); request_maker.open(POST, https://api.twitter.com/oauth;); request_maker.setRequestHeader(Authorization, data); request_maker.onreadystatechange = oth_func; request_maker.send(Authorization OAuth + data); } I don't now if it's me being dumb or anything else, but i really can't find my mistake. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] 401 Unauthorized Responses to requests signed with whitelisted account
Hello, I am a Java developer working on a web application that makes use of the Twitter API. We use the Signpost library (version 1.2.1.1) to perform OAuth and issue API requests, and have been doing so successfully for months. We have been signing our requests with a whitelisted key and secret that has a 20,000 request/hour rate limit. In the last few days, we started getting only 401 Not Authorized responses when using these credentials. Upon looking back at our server logs, I notice other requests failures dating back to at least Feb 17, but they are sporadic. Error messages look like this: WARN org.apache.http.impl.client.DefaultHttpClient Authentication error: Unable to respond to any of these challenges: {oauth=WWW- Authenticate: OAuth realm=http://api.twitter.com} The response header shows 401 but no other enlightening information. I have paid attention to and read lots of other postings related to OAuth, and want to emphasize that our system has been working for quite a while - we make calls using the proper end points and so forth: http://api.twitter.com/1/users/show.json?user_id=[id] Something appears to have changed on Twitter's end but we don't know what. Can anyone shed some light on what might be happening? We have already verified with Twitter API support that our credentials should still be viable - perhaps there has been an inadvertent shutdown of that account? Thank you in advance for any help or guidance! Sincerely, Chris Stolte -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] 401 Unauthorized Responses to requests signed with whitelisted account
Hi Christopher, Could you attempt to get the response body for the request either by repeating the request or enhancing your logs. The reason for the 401 is communicated in the response body and knowing that will help explain what is going on. Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Mon, Apr 18, 2011 at 11:23 AM, Christopher Stolte stolte...@gmail.comwrote: Hello, I am a Java developer working on a web application that makes use of the Twitter API. We use the Signpost library (version 1.2.1.1) to perform OAuth and issue API requests, and have been doing so successfully for months. We have been signing our requests with a whitelisted key and secret that has a 20,000 request/hour rate limit. In the last few days, we started getting only 401 Not Authorized responses when using these credentials. Upon looking back at our server logs, I notice other requests failures dating back to at least Feb 17, but they are sporadic. Error messages look like this: WARN org.apache.http.impl.client.DefaultHttpClient Authentication error: Unable to respond to any of these challenges: {oauth=WWW- Authenticate: OAuth realm=http://api.twitter.com} The response header shows 401 but no other enlightening information. I have paid attention to and read lots of other postings related to OAuth, and want to emphasize that our system has been working for quite a while - we make calls using the proper end points and so forth: http://api.twitter.com/1/users/show.json?user_id=[id] Something appears to have changed on Twitter's end but we don't know what. Can anyone shed some light on what might be happening? We have already verified with Twitter API support that our credentials should still be viable - perhaps there has been an inadvertent shutdown of that account? Thank you in advance for any help or guidance! Sincerely, Chris Stolte -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Search API return 402 You have been rate limited. Enhance your calm each time
I am writing a new application and all was going smoothly until I deployed the application and am getting a 402 on all requests! The application searches based on both geo-location and query terms. Am literally making only test api calls from the application (less than 10 every hour) and each one of it returns a 402. What could be happening? Here are some details 1. Test Application hosted on the Google App Engine 2. Using JTwitter 3. Using OAuth The first time, I thought Twitter might be having issues; but it cant be true all the time. Please help! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Search API return 402 You have been rate limited. Enhance your calm each time
1 - Hosted on GAE is probably your problem you are sharing a limited pool of IP adresses shared by many other GAE based appls using Twitter API. see here : http://groups.google.com/group/google-appengine/browse_thread/thread/20931a508f4dd6e9 happy coding:-) Nick http://gaengine.blogspot.com/ On Apr 18, 11:49 pm, kghate kgh...@gmail.com wrote: I am writing a new application and all was going smoothly until I deployed the application and am getting a 402 on all requests! The application searches based on both geo-location and query terms. Am literally making only test api calls from the application (less than 10 every hour) and each one of it returns a 402. What could be happening? Here are some details 1. Test Application hosted on the Google App Engine 2. Using JTwitter 3. Using OAuth The first time, I thought Twitter might be having issues; but it cant be true all the time. Please help! -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: wait time for Site Streams whitelist ?
We are all waiting for Site Stream whitelisting. The issues here is that you are stuck not knowing either you should invest more time in building a product you never tested. Unfortunatly, site stream is the only API on which our product make sense building on. So let have finger crossed and hope we'll get one day an email from twitter. On 18 avr, 08:10, David W d_wy...@yahoo.com wrote: I'm intrigued - has anyone else been given Site Streams access in the last month? We signed the Terms of Service over a month ago and have heard nothing since, despite asking here, via email and via @SiteStreams I'm interested to know whether all applications have been frozen or whether it's just ours for unknown reasons. Thanks, dw. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: How to get the number of pages in user's timeline
I think I spoke to soon. The statuses_count won't work in the case when I use the since_status parameter of the timeline because I may not wont to retrieve the whole timeline for the user but only the statuses for the last week. In this case I don't know how many pages are in the timeline. Any other suggestions? On Apr 16, 2:11 am, Tim Meadowcroft meer...@gmail.com wrote: The users/show API includes a statuses_count field which tells you how many tweets the user has posted http://dev.twitter.com/doc/get/users/show -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] What is the hourly limit on retweets?
I need to set up an automatic retweeting capability for a client who wants to hold debates on Twitter. The basic idea is that 10-20 people would be tweeting using a predefined tag. My code would follow all of these users with the streaming API, and any tweets they send with this tag would be retweeted by an account that acts as the aggregator for all the debaters. They only want tweets from these users to be retweeted. This means that anyone who wants to follow the debate could just follow the aggregation account. This is better than using search to follow a tag, because only tweets by the specified users would be retweeted. Anyone could read this debate, but only specific users could add to the debate. My question is how many tweets can be retweeted by a single account in an hour? The docs are predictably obscure: The Update Limit of 1,000 updates per day is further broken down into semi-hourly intervals. If you hit your account update limit, please try again in a few hours after the limit-period has elapsed. Does this mean that within 1 hour only 1000/24 = 42 retweets could be sent? Or does it mean something else? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] What is the hourly limit on retweets?
Hi Adam, The exact logic of the limiting for posting tweets isn't disclosed (more obscurity for you ;)), but it isn't necessarily evenly divided into a 24 hour period. A retweet, for the purposes of this limit, is the same as a Tweet, so the daily and roaming period-based limiting for posting statuses applies collectively to both tweets and retweets. This type of account is a great way to curate topical tweets like this. There are a few automation rules associated with them: http://support.twitter.com/articles/76915-automation-rules-and-best-practices-- as you've described the account, I don't think you have anything to worry about in that regard. @episod http://twitter.com/episod - Taylor Singletary On Mon, Apr 18, 2011 at 6:15 PM, Adam Green 140...@gmail.com wrote: I need to set up an automatic retweeting capability for a client who wants to hold debates on Twitter. The basic idea is that 10-20 people would be tweeting using a predefined tag. My code would follow all of these users with the streaming API, and any tweets they send with this tag would be retweeted by an account that acts as the aggregator for all the debaters. They only want tweets from these users to be retweeted. This means that anyone who wants to follow the debate could just follow the aggregation account. This is better than using search to follow a tag, because only tweets by the specified users would be retweeted. Anyone could read this debate, but only specific users could add to the debate. My question is how many tweets can be retweeted by a single account in an hour? The docs are predictably obscure: The Update Limit of 1,000 updates per day is further broken down into semi-hourly intervals. If you hit your account update limit, please try again in a few hours after the limit-period has elapsed. Does this mean that within 1 hour only 1000/24 = 42 retweets could be sent? Or does it mean something else? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Twitter Search Api and geolocations
On Apr 18, 8:47 pm, harik padmahar...@gmail.com wrote: I want search for queries (using a keyword eg: worldcup) ,and then want to get the geolocations of the user .I am able to retrieve the queries using search api, but i find all geo fields are null . So is there any way I can retrieve the geolocations of the user ? Also when i tried to send rpp=10page=5 in the query ,I see only 10 tweets and i do not find any link to next page of 10 tweets ? SO how can i view all the tweets? If the geo fields are null, I think it means the user chose not to add the geolocation info to his tweet in the first place. As for thenext question, try sending rpp=10page=6 Mohan -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk