[twitter-dev] Calling account/update_profile_background_image using oauth
Hello, I am want to update profile background image using oauth library calling account/update_profile_background_image. But I don't know how can I use this? Which parameter I need to pass to this in order to update profile background image? Please help me. Thanks in advance. -- 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: Failed to validate oauth signature and token
Thanks for your reply. Is there anyway to sync server clock programatically? Or any other way by which we can make the stuff working? Because I don't have access to server hardware. On Nov 12, 12:28 am, Abraham Williams 4bra...@gmail.com wrote: Your servers clock needs to be properly synced using NTP. http://en.wikipedia.org/wiki/Network_Time_Protocol Abraham - Abraham Williams | Hacker Advocate | abrah.am @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Thu, Nov 11, 2010 at 05:36, computerzworld meat2...@gmail.com wrote: Hello, I am using Twitter Oauth library for signing in to Twitter getting access token for posting tweets programatically. But when I am trying to run the application on my server it is giving me error like Failed to validate oauth signature and token I tried to move the application on another server it is working. So what should be the problem behind this? Is there any configuration required for the server in order to make this work? Please help me. Thanks in advance. -- 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] Creating a tweet this button in flash
Hi, i'm trying to created a tweet this button inside flash, but i'm having trouble to create it. I have been able to tweet a link using the twitter.com/shareURL and it works fine after the user identify himself, but i'm unable to type a message together with it. ex: Hey! Check out this page. URL I'm using action script 2 and have been trying to do it inside a button using getUrl. If anyone could help me with it i would be most grateful. Thanks for 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: geocode question
Thanks thats awsome erm just another question, i found this quiry on the site wich would help a lot if i could get it to work with my own locations. http://stream.twitter.com/1/statuses/filter.jsonlocations=-122.75,36.8,-121.75,37.8 this is the example they gave. but when i input my on logitude and latitude points in nothing happens could anyone help Thanks Jon On Nov 19, 4:59 am, L. Mohan Arun mar...@gmail.com wrote: Many people have done something similar - plotting tweets on a map. http://twitdom.com/twittermap-2/www.trendsmap.com how to do this code-wise? It must be in the API. -- 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: Snowflake: An update and some very important information
+1 for bumping the version number and maintaining backwards compatibility. On Oct 20, 2:23 pm, Josh Roesslein jroessl...@gmail.com wrote: Isn't the point of having versioned API's so changes can be rolled out w/o breaking a much of applications at once? Why not increment to version 2 and replace all ID's as strings in the JSON format? Keep version 1 around for a few months allowing everyone to upgrade and then kill it off. This can also give twitter a chance to make any other breaking changes. If Twitter is never going to take advantage of the versioning they added what is the point of having it? I think just creating new fields to avoid versioning issues is unclean and messy. -- 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] Tweet Button Not Valid XHTML
Hello, I hope this is the right place to post this but I have found an issue when using the Tweet button on my website. I use the custom version. When I run it through the W3C Validator I get these errors and I have tried Doctype variations but they all don't validate. there is no attribute data-url there is no attribute data-count there is no attribute data-text there is no attribute data-via I make my websites to validate for a number of reasons and they are usually 100% valid but with the tweet button they won't validate anymore. I'm surprised at this as I thought the developers would have made sure the button validates before anything! -- 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] Learning how to use the API
Hi I am a young Swiss, that tries to learn programming. I have a basic question: How do you proceed, when you have to understand an API? Do you look for online examples, or is there a way to comprehend how to use which class and method? Thx! -- 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] Twiter
Hi, I have one query. I am creative my own twitter button which will open through javascript popup, with that popup I also want to show in the that popup content which we place in (data-counturl=Content come here how can be it is possible? my script is like this ) function myPopup1() { window.open( http://twitter.com/share?url=myURL;, myWindow, status=1, height = 400, width = 500, resizable = 0 ) } a onclick=myPopup1()img src=twitter.png alt=Twitter title=Twitter border=0 //a is this is possible? thanks Rahul -- 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] Streaming API 'restricted track' 'partner track' Levels
Hi, I was wondering about what happens to the developers/companies who are at 'restricted track' or 'partner track' levels for streaming API access? Also, If a developer wants to have his applications Streaming api access-roles elevated, who does he contact - Twitter or Gnip? And finally, for the keywords with very lesser frequencies, Streaming API, for last two weeks, is dropping almost everything. So how random is this sample that I'm looking for? Does it make sense to detect these kind of keywords early and then use Search-API tto discover conversations? Thanks, dj -- 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: PHP json_decode and snowflake
I ran into this problem and was able to solve it by setting the PHP's precision setting to 20. This keeps PHP from displaying floats as exponents. ini_set('precision', 20); On Nov 6, 9:02 am, CWorster cwors...@schlimmer.com wrote: If you have a sufficient PHP-Version (=5.3http://www.php.net/manual/en/function.json-decode.php) you can try this: $array = json_decode($json, true, 512, JSON_BIGINT_AS_STRING); I had no luck on Debian/Squeeze, so I'm using for now this quick dirty hack: $array = json_decode(preg_replace('/(\w+):(\d{6,})/', '${1}:${2}', $json), true); -- 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] Learning how to use the API
google twitteroauth php abraham download, run test. boom. Best, -- Edward H. Hotchkiss http://www.edwardhotchkiss.com/ http://www.twitter.com/edwardhotchkiss/ -- On Nov 19, 2010, at 3:17 AM, Michele wrote: Hi I am a young Swiss, that tries to learn programming. I have a basic question: How do you proceed, when you have to understand an API? Do you look for online examples, or is there a way to comprehend how to use which class and method? Thx! -- 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 inline: edward.png-- 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] Tweet Button Not Valid XHTML
These attributes are HTML5 attributes, not XHTML attributes. Tom On 11/19/10 7:17 AM, BG wrote: Hello, I hope this is the right place to post this but I have found an issue when using the Tweet button on my website. I use the custom version. When I run it through the W3C Validator I get these errors and I have tried Doctype variations but they all don't validate. there is no attribute data-url there is no attribute data-count there is no attribute data-text there is no attribute data-via I make my websites to validate for a number of reasons and they are usually 100% valid but with the tweet button they won't validate anymore. I'm surprised at this as I thought the developers would have made sure the button validates before anything! -- 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] Include_entities makes the retweet_count return null?
Hi, I was trying to get the number of retweets (reading an user timeline), and I realized that if in the query I request the entities it returns null, whuile if not, it return the right number.. Any workaround for this taking into account that I need the entities? check: http://api.twitter.com/1/statuses/user_timeline.json?screen_name=EngageSciencesinclude_rts=trueinclude_entities=truecount=30page=1 http://api.twitter.com/1/statuses/user_timeline.json?screen_name=EngageSciencesinclude_rts=truecount=30page=1 In the json, check the message with id: 1937474561515520 and you'll see the difference. How could I open a bug into twitter? Kind regards -- 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: Failed to validate oauth signature and token
The server administrators can and should sync server clocks automatically to the world time clocks using Network Time Protocol (NTP). If your IT department isn't doing this, find out why not. Most likely they don't know it's possible. It's pretty easy on Linux and Windows, but you do need an Internet connection to the outside world, so the firewall folks need to be involved and you have to make sure your server-side NTP software is kept up to date on security patches. -- M. Edward (Ed) Borasky http://borasky-research.net http://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos Quoting computerzworld meat2...@gmail.com: Thanks for your reply. Is there anyway to sync server clock programatically? Or any other way by which we can make the stuff working? Because I don't have access to server hardware. On Nov 12, 12:28 am, Abraham Williams 4bra...@gmail.com wrote: Your servers clock needs to be properly synced using NTP. http://en.wikipedia.org/wiki/Network_Time_Protocol Abraham - Abraham Williams | Hacker Advocate | abrah.am @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Thu, Nov 11, 2010 at 05:36, computerzworld meat2...@gmail.com wrote: Hello, I am using Twitter Oauth library for signing in to Twitter getting access token for posting tweets programatically. But when I am trying to run the application on my server it is giving me error like Failed to validate oauth signature and token I tried to move the application on another server it is working. So what should be the problem behind this? Is there any configuration required for the server in order to make this work? Please help me. Thanks in advance. -- 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: Failed to validate oauth signature and token
In addition, the server time is returned in the HEAD of every response from the Twitter API. If the first request fails you can inspect the time returned in the HEAD and calculate the difference between it and your local time. You can then add/subtract that difference to the timestamp you use for OAuth requests. Hope that helps, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Fri, Nov 19, 2010 at 9:35 AM, M. Edward (Ed) Borasky zn...@borasky-research.net wrote: The server administrators can and should sync server clocks automatically to the world time clocks using Network Time Protocol (NTP). If your IT department isn't doing this, find out why not. Most likely they don't know it's possible. It's pretty easy on Linux and Windows, but you do need an Internet connection to the outside world, so the firewall folks need to be involved and you have to make sure your server-side NTP software is kept up to date on security patches. -- M. Edward (Ed) Borasky http://borasky-research.net http://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos Quoting computerzworld meat2...@gmail.com: Thanks for your reply. Is there anyway to sync server clock programatically? Or any other way by which we can make the stuff working? Because I don't have access to server hardware. On Nov 12, 12:28 am, Abraham Williams 4bra...@gmail.com wrote: Your servers clock needs to be properly synced using NTP. http://en.wikipedia.org/wiki/Network_Time_Protocol Abraham - Abraham Williams | Hacker Advocate | abrah.am @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Thu, Nov 11, 2010 at 05:36, computerzworld meat2...@gmail.com wrote: Hello, I am using Twitter Oauth library for signing in to Twitter getting access token for posting tweets programatically. But when I am trying to run the application on my server it is giving me error like Failed to validate oauth signature and token I tried to move the application on another server it is working. So what should be the problem behind this? Is there any configuration required for the server in order to make this work? Please help me. Thanks in advance. -- 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] Calling account/update_profile_background_image using oauth
I have an example of how to do this in my PHP library. You can find the example here: https://github.com/themattharris/tmhOAuth/blob/master/examples/images.php The documentation for update_profile_background image is here: http://dev.twitter.com/doc/post/account/update_profile_background_image One parameter which isn't documented is the 'use' parameter. This was added recently and specifies whether the background should be used or not. If you are uploading a new background image the use parameter will default to true. Hope that helps, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Fri, Nov 19, 2010 at 2:11 AM, computerzworld meat2...@gmail.com wrote: Hello, I am want to update profile background image using oauth library calling account/update_profile_background_image. But I don't know how can I use this? Which parameter I need to pass to this in order to update profile background image? Please help me. Thanks in advance. -- 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] Easy there, Turbo. Too many requests recently. Enhance your calm. - User streams limit?
Hi, we're working on a Twitter client, using user streams API. Since yesterday I found out that for certain accounts, whenever we try to connect using user streams, we get the following error: Easy there, Turbo. Too many requests recently. Enhance your calm.. And ever since this happened, the account itself seems to have been banned from connecting to user streams--even when I open up Tweetdeck, it doesn't deliver user streams anymore, but instead seems to poll the server once in a while using REST. We haven't done anything abnormal. Has anyone experienced the same problem? And could you enlighten me on how to go about solving this problem? Thanks! -- 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: xAuth request returns 401, need help
Hey Chrys, The order of the parameters in the base string matter and they should be in lexicollexicographical order. For ease of debugging and to remove any ambiguity it would be better to have the authorization header use the same order too. Can you tell me what the body content of the 401 error is? Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Thu, Nov 18, 2010 at 6:55 PM, Chrys Bader chr...@gmail.com wrote: Does the order of the params in either the Authorization or Base string matter? Here are my Request Headers: Authorization = OAuth oauth_timestamp=\1290134876\, oauth_nonce= \D3EC42D2-A37F-4298-987D-0F9603B0C9C7\, oauth_version=\1.0\, oauth_consumer_key=\xxx\, oauth_signature_method=\HMAC-SHA1\, oauth_signature=\MOWT%2BaSs35RhzvRRMVxRG0Y5p0E%3D\; Content-Length = 71; Content-Type = application/x-www-form-urlencoded; charset=utf-8; Here is my actual base string: POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3Dxxx%26oauth_nonce%3DD3EC42D2- A37F-4298-987D-0F9603B0C9C7%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1290134876%26oauth_version%3D1.0%26x_auth_mode %3Dclient_auth%26x_auth_password%3Dxxx%26x_auth_username%3Dchrysb On Nov 18, 6:47 pm, Chrys Bader chr...@gmail.com wrote: Yes I compared the UTC timestamp that my phone is generating with the actual UTC timestamp, and they were the same. Is there anything else I can show you for more information? No matter what, I just keep getting a 401 response from Twitter. On Nov 18, 6:41 pm, Matt Harris thematthar...@twitter.com wrote: OK, but is the UTC timestamp actually accurate? we've heard of a number of phones whose date/time are wildly wrong. It maybe find but it's quite common. Your content-type is fine. Matt On Thu, Nov 18, 2010 at 6:03 PM, Chrys Bader chr...@gmail.com wrote: Ok, I looked into it. According to the iPhone SDK documentation, I am indeed sending the UTC (GMT) timestamp. Still not sure what else could be wrong? Is this the right Content-Type? Content-Type = application/x-www-form-urlencoded; charset=utf-8; On Nov 18, 5:53 pm, themattharris thematthar...@twitter.com wrote: Hey Chrys, A couple of things to check first: 1. Have you been granted xAuth access? 2. Double check the timestamp of your request is within 10 or so minutes of the time returned by Twitter's servers. Our server time is in UTC. 3. Verify your encoding is correct. For example: a password like ab$ %123 should be in your basestring as ab%2524%2525%2526123 and in your post body as ab%24%25%26123. Best, Matt On Nov 18, 5:31 pm, Chrys Bader chr...@gmail.com wrote: *bump* I've run my base string through an oAuth verifier ( http://quonos.nl/ oauthTester/), and it all checks out! Any ideas? On Oct 27, 4:50 pm, Chrys Bader chr...@gmail.com wrote: Hey all, This is my first post in this group, hi! I am having trouble making a request onhttps:// api.twitter.com/oauth/access_token. I've been at this for 2 days and I can't make any progress. I feel like everything matches up with all examples, documentation, and other forum posts perfectly. Here is my post body: x_auth_username=oauth_test_execx_auth_password=twitter- xauthx_auth_mode=client_auth Here is my base string (using the example's test credentials): POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3DJvyS7DO2qd6NNTsXJ4E7zA %26oauth_nonce%3DE0E37C06-F12A-407B-8D80-20C78FF6183A %26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp %3D1288223176%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth %26x_auth_password%3Dtwitter-xauth%26x_auth_username%3Doauth_test_exec Here is my Authorization header: OAuth oauth_timestamp=1288223176, oauth_nonce=E0E37C06- F12A-407B-8D80-20C78FF6183A, oauth_version=1.0, oauth_consumer_key=JvyS7DO2qd6NNTsXJ4E7zA, oauth_signature_method=HMAC-SHA1, oauth_signature=IwPFrvb0PExyS %2F2QQvtbelsWk48%3D -- 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:
[twitter-dev] Re: xAuth request returns 401, need help
Twitter 401 error is related to Authentication 401 Unauthorized: Authentication credentials were missing or incorrect. Another debugging is to print out error type error message from iPhone console On Nov 19, 11:04 am, Matt Harris thematthar...@twitter.com wrote: Hey Chrys, The order of the parameters in the base string matter and they should be in lexicollexicographical order. For ease of debugging and to remove any ambiguity it would be better to have the authorization header use the same order too. Can you tell me what the body content of the 401 error is? Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Thu, Nov 18, 2010 at 6:55 PM, Chrys Bader chr...@gmail.com wrote: Does the order of the params in either the Authorization or Base string matter? Here are my Request Headers: Authorization = OAuth oauth_timestamp=\1290134876\, oauth_nonce= \D3EC42D2-A37F-4298-987D-0F9603B0C9C7\, oauth_version=\1.0\, oauth_consumer_key=\xxx\, oauth_signature_method=\HMAC-SHA1\, oauth_signature=\MOWT%2BaSs35RhzvRRMVxRG0Y5p0E%3D\; Content-Length = 71; Content-Type = application/x-www-form-urlencoded; charset=utf-8; Here is my actual base string: POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3Dxxx%26oauth_nonce%3DD3EC42D2- A37F-4298-987D-0F9603B0C9C7%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1290134876%26oauth_version%3D1.0%26x_auth_mode %3Dclient_auth%26x_auth_password%3Dxxx%26x_auth_username%3Dchrysb On Nov 18, 6:47 pm, Chrys Bader chr...@gmail.com wrote: Yes I compared the UTC timestamp that my phone is generating with the actual UTC timestamp, and they were the same. Is there anything else I can show you for more information? No matter what, I just keep getting a 401 response from Twitter. On Nov 18, 6:41 pm, Matt Harris thematthar...@twitter.com wrote: OK, but is the UTC timestamp actually accurate? we've heard of a number of phones whose date/time are wildly wrong. It maybe find but it's quite common. Your content-type is fine. Matt On Thu, Nov 18, 2010 at 6:03 PM, Chrys Bader chr...@gmail.com wrote: Ok, I looked into it. According to the iPhone SDK documentation, I am indeed sending the UTC (GMT) timestamp. Still not sure what else could be wrong? Is this the right Content-Type? Content-Type = application/x-www-form-urlencoded; charset=utf-8; On Nov 18, 5:53 pm, themattharris thematthar...@twitter.com wrote: Hey Chrys, A couple of things to check first: 1. Have you been granted xAuth access? 2. Double check the timestamp of your request is within 10 or so minutes of the time returned by Twitter's servers. Our server time is in UTC. 3. Verify your encoding is correct. For example: a password like ab$ %123 should be in your basestring as ab%2524%2525%2526123 and in your post body as ab%24%25%26123. Best, Matt On Nov 18, 5:31 pm, Chrys Bader chr...@gmail.com wrote: *bump* I've run my base string through an oAuth verifier ( http://quonos.nl/ oauthTester/), and it all checks out! Any ideas? On Oct 27, 4:50 pm, Chrys Bader chr...@gmail.com wrote: Hey all, This is my first post in this group, hi! I am having trouble making a request onhttps:// api.twitter.com/oauth/access_token. I've been at this for 2 days and I can't make any progress. I feel like everything matches up with all examples, documentation, and other forum posts perfectly. Here is my post body: x_auth_username=oauth_test_execx_auth_password=twitter- xauthx_auth_mode=client_auth Here is my base string (using the example's test credentials): POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3DJvyS7DO2qd6NNTsXJ4E7zA %26oauth_nonce%3DE0E37C06-F12A-407B-8D80-20C78FF6183A %26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp %3D1288223176%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth %26x_auth_password%3Dtwitter-xauth%26x_auth_username%3Doauth_test_exec Here is my Authorization header: OAuth oauth_timestamp=1288223176, oauth_nonce=E0E37C06- F12A-407B-8D80-20C78FF6183A, oauth_version=1.0, oauth_consumer_key=JvyS7DO2qd6NNTsXJ4E7zA, oauth_signature_method=HMAC-SHA1, oauth_signature=IwPFrvb0PExyS %2F2QQvtbelsWk48%3D -- 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
[twitter-dev] Re: xAuth request returns 401, need help
Hey Matt, I am using Loren Brichter's OAuthCore library to create the Authorization header... so I imagine he did it correctly. The body content of the 401 is empty. Content-Length: 0 On Nov 19, 11:04 am, Matt Harris thematthar...@twitter.com wrote: Hey Chrys, The order of the parameters in the base string matter and they should be in lexicollexicographical order. For ease of debugging and to remove any ambiguity it would be better to have the authorization header use the same order too. Can you tell me what the body content of the 401 error is? Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Thu, Nov 18, 2010 at 6:55 PM, Chrys Bader chr...@gmail.com wrote: Does the order of the params in either the Authorization or Base string matter? Here are my Request Headers: Authorization = OAuth oauth_timestamp=\1290134876\, oauth_nonce= \D3EC42D2-A37F-4298-987D-0F9603B0C9C7\, oauth_version=\1.0\, oauth_consumer_key=\xxx\, oauth_signature_method=\HMAC-SHA1\, oauth_signature=\MOWT%2BaSs35RhzvRRMVxRG0Y5p0E%3D\; Content-Length = 71; Content-Type = application/x-www-form-urlencoded; charset=utf-8; Here is my actual base string: POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3Dxxx%26oauth_nonce%3DD3EC42D2- A37F-4298-987D-0F9603B0C9C7%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1290134876%26oauth_version%3D1.0%26x_auth_mode %3Dclient_auth%26x_auth_password%3Dxxx%26x_auth_username%3Dchrysb On Nov 18, 6:47 pm, Chrys Bader chr...@gmail.com wrote: Yes I compared the UTC timestamp that my phone is generating with the actual UTC timestamp, and they were the same. Is there anything else I can show you for more information? No matter what, I just keep getting a 401 response from Twitter. On Nov 18, 6:41 pm, Matt Harris thematthar...@twitter.com wrote: OK, but is the UTC timestamp actually accurate? we've heard of a number of phones whose date/time are wildly wrong. It maybe find but it's quite common. Your content-type is fine. Matt On Thu, Nov 18, 2010 at 6:03 PM, Chrys Bader chr...@gmail.com wrote: Ok, I looked into it. According to the iPhone SDK documentation, I am indeed sending the UTC (GMT) timestamp. Still not sure what else could be wrong? Is this the right Content-Type? Content-Type = application/x-www-form-urlencoded; charset=utf-8; On Nov 18, 5:53 pm, themattharris thematthar...@twitter.com wrote: Hey Chrys, A couple of things to check first: 1. Have you been granted xAuth access? 2. Double check the timestamp of your request is within 10 or so minutes of the time returned by Twitter's servers. Our server time is in UTC. 3. Verify your encoding is correct. For example: a password like ab$ %123 should be in your basestring as ab%2524%2525%2526123 and in your post body as ab%24%25%26123. Best, Matt On Nov 18, 5:31 pm, Chrys Bader chr...@gmail.com wrote: *bump* I've run my base string through an oAuth verifier ( http://quonos.nl/ oauthTester/), and it all checks out! Any ideas? On Oct 27, 4:50 pm, Chrys Bader chr...@gmail.com wrote: Hey all, This is my first post in this group, hi! I am having trouble making a request onhttps:// api.twitter.com/oauth/access_token. I've been at this for 2 days and I can't make any progress. I feel like everything matches up with all examples, documentation, and other forum posts perfectly. Here is my post body: x_auth_username=oauth_test_execx_auth_password=twitter- xauthx_auth_mode=client_auth Here is my base string (using the example's test credentials): POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3DJvyS7DO2qd6NNTsXJ4E7zA %26oauth_nonce%3DE0E37C06-F12A-407B-8D80-20C78FF6183A %26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp %3D1288223176%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth %26x_auth_password%3Dtwitter-xauth%26x_auth_username%3Doauth_test_exec Here is my Authorization header: OAuth oauth_timestamp=1288223176, oauth_nonce=E0E37C06- F12A-407B-8D80-20C78FF6183A, oauth_version=1.0, oauth_consumer_key=JvyS7DO2qd6NNTsXJ4E7zA, oauth_signature_method=HMAC-SHA1, oauth_signature=IwPFrvb0PExyS %2F2QQvtbelsWk48%3D -- 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
[twitter-dev] Re: xAuth request returns 401, need help
Yeah, I've done that. Authentication credentials meaning my oAuth credentials, or xAuth credentials? On Nov 19, 11:41 am, Bess bess...@gmail.com wrote: Twitter 401 error is related to Authentication 401 Unauthorized: Authentication credentials were missing or incorrect. Another debugging is to print out error type error message from iPhone console On Nov 19, 11:04 am, Matt Harris thematthar...@twitter.com wrote: Hey Chrys, The order of the parameters in the base string matter and they should be in lexicollexicographical order. For ease of debugging and to remove any ambiguity it would be better to have the authorization header use the same order too. Can you tell me what the body content of the 401 error is? Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Thu, Nov 18, 2010 at 6:55 PM, Chrys Bader chr...@gmail.com wrote: Does the order of the params in either the Authorization or Base string matter? Here are my Request Headers: Authorization = OAuth oauth_timestamp=\1290134876\, oauth_nonce= \D3EC42D2-A37F-4298-987D-0F9603B0C9C7\, oauth_version=\1.0\, oauth_consumer_key=\xxx\, oauth_signature_method=\HMAC-SHA1\, oauth_signature=\MOWT%2BaSs35RhzvRRMVxRG0Y5p0E%3D\; Content-Length = 71; Content-Type = application/x-www-form-urlencoded; charset=utf-8; Here is my actual base string: POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3Dxxx%26oauth_nonce%3DD3EC42D2- A37F-4298-987D-0F9603B0C9C7%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1290134876%26oauth_version%3D1.0%26x_auth_mode %3Dclient_auth%26x_auth_password%3Dxxx%26x_auth_username%3Dchrysb On Nov 18, 6:47 pm, Chrys Bader chr...@gmail.com wrote: Yes I compared the UTC timestamp that my phone is generating with the actual UTC timestamp, and they were the same. Is there anything else I can show you for more information? No matter what, I just keep getting a 401 response from Twitter. On Nov 18, 6:41 pm, Matt Harris thematthar...@twitter.com wrote: OK, but is the UTC timestamp actually accurate? we've heard of a number of phones whose date/time are wildly wrong. It maybe find but it's quite common. Your content-type is fine. Matt On Thu, Nov 18, 2010 at 6:03 PM, Chrys Bader chr...@gmail.com wrote: Ok, I looked into it. According to the iPhone SDK documentation, I am indeed sending the UTC (GMT) timestamp. Still not sure what else could be wrong? Is this the right Content-Type? Content-Type = application/x-www-form-urlencoded; charset=utf-8; On Nov 18, 5:53 pm, themattharris thematthar...@twitter.com wrote: Hey Chrys, A couple of things to check first: 1. Have you been granted xAuth access? 2. Double check the timestamp of your request is within 10 or so minutes of the time returned by Twitter's servers. Our server time is in UTC. 3. Verify your encoding is correct. For example: a password like ab$ %123 should be in your basestring as ab%2524%2525%2526123 and in your post body as ab%24%25%26123. Best, Matt On Nov 18, 5:31 pm, Chrys Bader chr...@gmail.com wrote: *bump* I've run my base string through an oAuth verifier ( http://quonos.nl/ oauthTester/), and it all checks out! Any ideas? On Oct 27, 4:50 pm, Chrys Bader chr...@gmail.com wrote: Hey all, This is my first post in this group, hi! I am having trouble making a request onhttps:// api.twitter.com/oauth/access_token. I've been at this for 2 days and I can't make any progress. I feel like everything matches up with all examples, documentation, and other forum posts perfectly. Here is my post body: x_auth_username=oauth_test_execx_auth_password=twitter- xauthx_auth_mode=client_auth Here is my base string (using the example's test credentials): POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3DJvyS7DO2qd6NNTsXJ4E7zA %26oauth_nonce%3DE0E37C06-F12A-407B-8D80-20C78FF6183A %26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp %3D1288223176%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth %26x_auth_password%3Dtwitter-xauth%26x_auth_username%3Doauth_test_exec Here is my Authorization header: OAuth oauth_timestamp=1288223176, oauth_nonce=E0E37C06- F12A-407B-8D80-20C78FF6183A, oauth_version=1.0, oauth_consumer_key=JvyS7DO2qd6NNTsXJ4E7zA, oauth_signature_method=HMAC-SHA1, oauth_signature=IwPFrvb0PExyS %2F2QQvtbelsWk48%3D -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via
[twitter-dev] Re: xAuth request returns 401, need help
Also, the example here shows that the Auth header and the base string aren't in the same order: http://dev.twitter.com/pages/xauth On Nov 19, 11:04 am, Matt Harris thematthar...@twitter.com wrote: Hey Chrys, The order of the parameters in the base string matter and they should be in lexicollexicographical order. For ease of debugging and to remove any ambiguity it would be better to have the authorization header use the same order too. Can you tell me what the body content of the 401 error is? Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Thu, Nov 18, 2010 at 6:55 PM, Chrys Bader chr...@gmail.com wrote: Does the order of the params in either the Authorization or Base string matter? Here are my Request Headers: Authorization = OAuth oauth_timestamp=\1290134876\, oauth_nonce= \D3EC42D2-A37F-4298-987D-0F9603B0C9C7\, oauth_version=\1.0\, oauth_consumer_key=\xxx\, oauth_signature_method=\HMAC-SHA1\, oauth_signature=\MOWT%2BaSs35RhzvRRMVxRG0Y5p0E%3D\; Content-Length = 71; Content-Type = application/x-www-form-urlencoded; charset=utf-8; Here is my actual base string: POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3Dxxx%26oauth_nonce%3DD3EC42D2- A37F-4298-987D-0F9603B0C9C7%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1290134876%26oauth_version%3D1.0%26x_auth_mode %3Dclient_auth%26x_auth_password%3Dxxx%26x_auth_username%3Dchrysb On Nov 18, 6:47 pm, Chrys Bader chr...@gmail.com wrote: Yes I compared the UTC timestamp that my phone is generating with the actual UTC timestamp, and they were the same. Is there anything else I can show you for more information? No matter what, I just keep getting a 401 response from Twitter. On Nov 18, 6:41 pm, Matt Harris thematthar...@twitter.com wrote: OK, but is the UTC timestamp actually accurate? we've heard of a number of phones whose date/time are wildly wrong. It maybe find but it's quite common. Your content-type is fine. Matt On Thu, Nov 18, 2010 at 6:03 PM, Chrys Bader chr...@gmail.com wrote: Ok, I looked into it. According to the iPhone SDK documentation, I am indeed sending the UTC (GMT) timestamp. Still not sure what else could be wrong? Is this the right Content-Type? Content-Type = application/x-www-form-urlencoded; charset=utf-8; On Nov 18, 5:53 pm, themattharris thematthar...@twitter.com wrote: Hey Chrys, A couple of things to check first: 1. Have you been granted xAuth access? 2. Double check the timestamp of your request is within 10 or so minutes of the time returned by Twitter's servers. Our server time is in UTC. 3. Verify your encoding is correct. For example: a password like ab$ %123 should be in your basestring as ab%2524%2525%2526123 and in your post body as ab%24%25%26123. Best, Matt On Nov 18, 5:31 pm, Chrys Bader chr...@gmail.com wrote: *bump* I've run my base string through an oAuth verifier ( http://quonos.nl/ oauthTester/), and it all checks out! Any ideas? On Oct 27, 4:50 pm, Chrys Bader chr...@gmail.com wrote: Hey all, This is my first post in this group, hi! I am having trouble making a request onhttps:// api.twitter.com/oauth/access_token. I've been at this for 2 days and I can't make any progress. I feel like everything matches up with all examples, documentation, and other forum posts perfectly. Here is my post body: x_auth_username=oauth_test_execx_auth_password=twitter- xauthx_auth_mode=client_auth Here is my base string (using the example's test credentials): POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3DJvyS7DO2qd6NNTsXJ4E7zA %26oauth_nonce%3DE0E37C06-F12A-407B-8D80-20C78FF6183A %26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp %3D1288223176%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth %26x_auth_password%3Dtwitter-xauth%26x_auth_username%3Doauth_test_exec Here is my Authorization header: OAuth oauth_timestamp=1288223176, oauth_nonce=E0E37C06- F12A-407B-8D80-20C78FF6183A, oauth_version=1.0, oauth_consumer_key=JvyS7DO2qd6NNTsXJ4E7zA, oauth_signature_method=HMAC-SHA1, oauth_signature=IwPFrvb0PExyS %2F2QQvtbelsWk48%3D -- 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
Re: [twitter-dev] Easy there, Turbo. Too many requests recently. Enhance your calm. - User streams limit?
Hi Ben, Can you tell us a bit more about how you were using user streams? Are you opening up multiple simultaneous connections to User Streams from the same IP and/or same user account? If so, how many? What client library are you using? Are you doing a lot of disconnecting and reconnecting in succession? Thanks, Taylor On Fri, Nov 19, 2010 at 10:38 AM, ben ben.sad...@gmail.com wrote: Hi, we're working on a Twitter client, using user streams API. Since yesterday I found out that for certain accounts, whenever we try to connect using user streams, we get the following error: Easy there, Turbo. Too many requests recently. Enhance your calm.. And ever since this happened, the account itself seems to have been banned from connecting to user streams--even when I open up Tweetdeck, it doesn't deliver user streams anymore, but instead seems to poll the server once in a while using REST. We haven't done anything abnormal. Has anyone experienced the same problem? And could you enlighten me on how to go about solving this problem? Thanks! -- 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] Tweet Button Event
For the tweet button... is there a way to capture when the user either clicked the button or finished tweeting? That way I could enable something hidden on the page like a coupon? -- 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: xAuth request returns 401, need help
Hey Chrys, Agreed. The authentication header doesn't have to be in order but as said previously, it helps with debugging. It is really strange that the response body is empty. It maybe easier if you email me the full request headers, with response headers and content so I can debug further. For security it'll be easier if you email me that directly. Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Fri, Nov 19, 2010 at 12:20 PM, Chrys Bader chr...@gmail.com wrote: Also, the example here shows that the Auth header and the base string aren't in the same order: http://dev.twitter.com/pages/xauth On Nov 19, 11:04 am, Matt Harris thematthar...@twitter.com wrote: Hey Chrys, The order of the parameters in the base string matter and they should be in lexicollexicographical order. For ease of debugging and to remove any ambiguity it would be better to have the authorization header use the same order too. Can you tell me what the body content of the 401 error is? Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Thu, Nov 18, 2010 at 6:55 PM, Chrys Bader chr...@gmail.com wrote: Does the order of the params in either the Authorization or Base string matter? Here are my Request Headers: Authorization = OAuth oauth_timestamp=\1290134876\, oauth_nonce= \D3EC42D2-A37F-4298-987D-0F9603B0C9C7\, oauth_version=\1.0\, oauth_consumer_key=\xxx\, oauth_signature_method=\HMAC-SHA1\, oauth_signature=\MOWT%2BaSs35RhzvRRMVxRG0Y5p0E%3D\; Content-Length = 71; Content-Type = application/x-www-form-urlencoded; charset=utf-8; Here is my actual base string: POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3Dxxx%26oauth_nonce%3DD3EC42D2- A37F-4298-987D-0F9603B0C9C7%26oauth_signature_method%3DHMAC- SHA1%26oauth_timestamp%3D1290134876%26oauth_version%3D1.0%26x_auth_mode %3Dclient_auth%26x_auth_password%3Dxxx%26x_auth_username%3Dchrysb On Nov 18, 6:47 pm, Chrys Bader chr...@gmail.com wrote: Yes I compared the UTC timestamp that my phone is generating with the actual UTC timestamp, and they were the same. Is there anything else I can show you for more information? No matter what, I just keep getting a 401 response from Twitter. On Nov 18, 6:41 pm, Matt Harris thematthar...@twitter.com wrote: OK, but is the UTC timestamp actually accurate? we've heard of a number of phones whose date/time are wildly wrong. It maybe find but it's quite common. Your content-type is fine. Matt On Thu, Nov 18, 2010 at 6:03 PM, Chrys Bader chr...@gmail.com wrote: Ok, I looked into it. According to the iPhone SDK documentation, I am indeed sending the UTC (GMT) timestamp. Still not sure what else could be wrong? Is this the right Content-Type? Content-Type = application/x-www-form-urlencoded; charset=utf-8; On Nov 18, 5:53 pm, themattharris thematthar...@twitter.com wrote: Hey Chrys, A couple of things to check first: 1. Have you been granted xAuth access? 2. Double check the timestamp of your request is within 10 or so minutes of the time returned by Twitter's servers. Our server time is in UTC. 3. Verify your encoding is correct. For example: a password like ab$ %123 should be in your basestring as ab%2524%2525%2526123 and in your post body as ab%24%25%26123. Best, Matt On Nov 18, 5:31 pm, Chrys Bader chr...@gmail.com wrote: *bump* I've run my base string through an oAuth verifier ( http://quonos.nl/ oauthTester/), and it all checks out! Any ideas? On Oct 27, 4:50 pm, Chrys Bader chr...@gmail.com wrote: Hey all, This is my first post in this group, hi! I am having trouble making a request onhttps:// api.twitter.com/oauth/access_token. I've been at this for 2 days and I can't make any progress. I feel like everything matches up with all examples, documentation, and other forum posts perfectly. Here is my post body: x_auth_username=oauth_test_execx_auth_password=twitter- xauthx_auth_mode=client_auth Here is my base string (using the example's test credentials): POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3DJvyS7DO2qd6NNTsXJ4E7zA %26oauth_nonce%3DE0E37C06-F12A-407B-8D80-20C78FF6183A %26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp %3D1288223176%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth %26x_auth_password%3Dtwitter-xauth%26x_auth_username%3Doauth_test_exec Here is my Authorization header: OAuth oauth_timestamp=1288223176,
Re: [twitter-dev] Tweet Button Event
This feature doesn't exist for the Tweet Button yet. It has been requested and is something on our enhancements to consider list: http://code.google.com/p/twitter-api/issues/detail?id=1835 Should we add this feature we will post a message to our announcements list ( http://groups.google.com/group/twitter-api-announce ) and Tweet on @twitterapi. Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Fri, Nov 19, 2010 at 3:04 PM, BrianGruber webbr...@gmail.com wrote: For the tweet button... is there a way to capture when the user either clicked the button or finished tweeting? That way I could enable something hidden on the page like a coupon? -- 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] Update Status
Hello Sir, My Requirement: I am using PHP , From a php page i have to update the STATUS or Post a Tweet in twitter. I have downloaded php library , i created an application in twitter to get secret code etc... I have configured the file according to the application details. But i am getting an error Could not connect to Twitter. Refresh the page or try again later. Please help me to solve this problem. -- 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: Parsing date in create_at field
The date format is usually: Ddd Mmm dd hh:mm:ss + eg: Tue Nov 16 14:40:25 + 2010 What platform are you coding for? In .Net you can use Convert.ToDateTime on this. Alternatively, you can use this: DateTime.Parse(string.Format({0}-{1}-{2} {3}, dateTime.Substring(8, 2), // Day dateTime.Substring(4, 3), // Month dateTime.Substring(26, 4), // Year dateTime.Substring(11, 8))); // Time Lastly, you may need to make some adjustments for daylight savings at that time of year, or not... depending or where the data was generated and where you are. You sometimes get values in the + bit and I believe this is a minutes offset. Red On Nov 16, 7:54 am, Jianshi Huang jianshi.hu...@gmail.com wrote: Hi, It seems the date format in create_at field is different among APIs, Is there any documentation for the format (I couldn't find any except issues)? Can I specify some other formats like iso-8601 or some custom ones? And what's the best practice for parsing the date string returned by twitter APIs? Jianshi -- 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: Twiter
Use ?status= parameter and append the content as well as the url. https://twitter.com/?status=Check out this SlideShare presentation : Symmetry http://slidesha.re/cVGjq9 This is some random slideshare, not to be confused with twitter api. ~~~Mohan Arun L -- 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] Check if user is already logged in?
Is it possible to check to see if a user is logged in to Twitter and has authorized the application without having any redirects? For first time login, I have this basic code: ? require(twitter/twitteroauth.php); session_start(); // The TwitterOAuth instance $twitteroauth = new TwitterOAuth('xxx', 'xxx'); // Requesting authentication tokens, the parameter is the URL we will be redirected to $request_token = $twitteroauth-getRequestToken('xxx'); // Saving them into the session $_SESSION['twitter_token'] = $request_token['oauth_token']; $_SESSION['twitter_secret'] = $request_token['oauth_token_secret']; // If everything goes well.. if($twitteroauth-http_code==200){ // Let's generate the URL and redirect $url = $twitteroauth- getAuthorizeURL($request_token['oauth_token']); header('Location: '. $url); } ? That's on a separate page, something like twitter-login.php, so I only want to use that when the user isn't logged in (i.e. the user clicks a login with Twitter link). I have a function for my site's user system that displays either a login form (if not logged in; has Facebook/Twitter buttons) or a user control panel (if logged in). The function prototype is something like: displayLogin(bool $facebook, bool $twitter, string $username) where the first two parameters indicate if the user is signed in with Facebook, Twitter, or neither. With Facebook, I can check with the API if the user has a session on Facebook and has verified the application by: $session = $facebook-getSession(); $me = null; // Session based API call. if ($session) { try { $uid = $facebook-getUser(); $me = $facebook-api('/me'); } catch (FacebookApiException $e) { error_log($e); } } else { $me = false; } if ($me) { // do stuff because the user is logged in and has authorized the app in the past } And so if $me isn't false, I know the user is logged in and I can set session variables, and pass a boolean true to the displayLogin() function for Facebook. All of this is processed on my index page, hence no redirects. Is there any way to do this with Twitter without having to do the redirect? Would I have to use javascript or something? My PHP library is the twitteroauth library. Thank you! -- 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] Help to count number of *all* the tweets for a given location
I need a small help to get the count of tweets for a given location(lat,log, radius) within a specific hour range of day using twitter search API or stream API. I realized that search API doesn't support to get *all* the tweets for a given location(*all* means at least 99% accurate result). It limits the result up to 1500 max. But stream API support to get *all* the tweets for a given location. but I heard that in Stream API when reference to the location, it'll ONLY return geo-tagged tweets which is very small amount(1% - because most of the tweets are not geo- tagged) For an example what I need to do is count the number of tweets, at a given location(lat,log, radius), between 10 and 11pm on Tuesday in every week. Can you help me to do this above mention task using any of these APIs. (prefer to do this in php. steps to do this task is also enough. then I can implement it using php) Really appreciate your help... Best Regards, arlahiru -- 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: Failed to validate oauth signature and token
@ Matt Harris I checked the header from twitter my server's header I found difference of 1 hour I have set the time using date_default_timezone_set to GMT using PHP. But still its giving the same error. What should be the problem behind it? Thanks. On Nov 19, 11:55 pm, Matt Harris thematthar...@twitter.com wrote: In addition, the server time is returned in the HEAD of every response from the Twitter API. If the first request fails you can inspect the time returned in the HEAD and calculate the difference between it and your local time. You can then add/subtract that difference to the timestamp you use for OAuth requests. Hope that helps, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Fri, Nov 19, 2010 at 9:35 AM, M. Edward (Ed) Borasky zn...@borasky-research.net wrote: The server administrators can and should sync server clocks automatically to the world time clocks using Network Time Protocol (NTP). If your IT department isn't doing this, find out why not. Most likely they don't know it's possible. It's pretty easy on Linux and Windows, but you do need an Internet connection to the outside world, so the firewall folks need to be involved and you have to make sure your server-side NTP software is kept up to date on security patches. -- M. Edward (Ed) Borasky http://borasky-research.nethttp://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos Quoting computerzworld meat2...@gmail.com: Thanks for your reply. Is there anyway to sync server clock programatically? Or any other way by which we can make the stuff working? Because I don't have access to server hardware. On Nov 12, 12:28 am, Abraham Williams 4bra...@gmail.com wrote: Your servers clock needs to be properly synced using NTP. http://en.wikipedia.org/wiki/Network_Time_Protocol Abraham - Abraham Williams | Hacker Advocate | abrah.am @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Thu, Nov 11, 2010 at 05:36, computerzworld meat2...@gmail.com wrote: Hello, I am using Twitter Oauth library for signing in to Twitter getting access token for posting tweets programatically. But when I am trying to run the application on my server it is giving me error like Failed to validate oauth signature and token I tried to move the application on another server it is working. So what should be the problem behind this? Is there any configuration required for the server in order to make this work? Please help me. Thanks in advance. -- 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
[twitter-dev] Re: geocode question
Your URL: http://stream.twitter.com/1/statuses/filter.jsonlocations=-122.75,36.8,-121.75,37.8 Did you add a ? after the word json and before locations... http://stream.twitter.com/1/statuses/filter.json?locations=-122.75,36.8,-121.75,37.8,-74,40,-73,41 When I input this url in my browser it starts reading the json stream. Try it in your browser Ref: http://dev.twitter.com/pages/streaming_api_methods#locations If you are not intending to track real time tweets on a map then you may want to use the Search API and not streaming. See The Streaming API is distinct from the two REST APIs as Streaming supports long-lived connections on a different architecture. I think using Search API will be easier for you than Streaming because the connection is more or less permanent with streaming and you need to have code for handling continuous streaming. Try this http://search.twitter.com/search.json?geocode=37.781157,-122.398720,1mi This is from Search API. http://dev.twitter.com/doc/get/search You can use the latitude, longitude and radius parameters as specified in the Search API. To use the geocode parameter you neeed convert the lat/lon value to geocode using www.mygeoposition.com... ~~~ Mohan Arun ~~~ -- 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: Failed to validate oauth signature and token
Problem solved! I have synchronized my server time to NTM using WHM it worked! Thanks all for your help. On Nov 20, 10:26 am, computerzworld meat2...@gmail.com wrote: @ Matt Harris I checked the header from twitter my server's header I found difference of 1 hour I have set the time using date_default_timezone_set to GMT using PHP. But still its giving the same error. What should be the problem behind it? Thanks. On Nov 19, 11:55 pm, Matt Harris thematthar...@twitter.com wrote: In addition, the server time is returned in the HEAD of every response from the Twitter API. If the first request fails you can inspect the time returned in the HEAD and calculate the difference between it and your local time. You can then add/subtract that difference to the timestamp you use for OAuth requests. Hope that helps, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Fri, Nov 19, 2010 at 9:35 AM, M. Edward (Ed) Borasky zn...@borasky-research.net wrote: The server administrators can and should sync server clocks automatically to the world time clocks using Network Time Protocol (NTP). If your IT department isn't doing this, find out why not. Most likely they don't know it's possible. It's pretty easy on Linux and Windows, but you do need an Internet connection to the outside world, so the firewall folks need to be involved and you have to make sure your server-side NTP software is kept up to date on security patches. -- M. Edward (Ed) Borasky http://borasky-research.nethttp://twitter.com/znmeb A mathematician is a device for turning coffee into theorems. - Paul Erdos Quoting computerzworld meat2...@gmail.com: Thanks for your reply. Is there anyway to sync server clock programatically? Or any other way by which we can make the stuff working? Because I don't have access to server hardware. On Nov 12, 12:28 am, Abraham Williams 4bra...@gmail.com wrote: Your servers clock needs to be properly synced using NTP. http://en.wikipedia.org/wiki/Network_Time_Protocol Abraham - Abraham Williams | Hacker Advocate | abrah.am @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Thu, Nov 11, 2010 at 05:36, computerzworld meat2...@gmail.com wrote: Hello, I am using Twitter Oauth library for signing in to Twitter getting access token for posting tweets programatically. But when I am trying to run the application on my server it is giving me error like Failed to validate oauth signature and token I tried to move the application on another server it is working. So what should be the problem behind this? Is there any configuration required for the server in order to make this work? Please help me. Thanks in advance. -- 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] Check if user is already logged in?
With TwitterOAuth you have to maintain your own sessions. When you get a users access token save that into $_SESSION or save something like $_SESSION['twitter_users_auth'] = TRUE. Check if that is set and if it is not you know the user is not currently logged into your site with Twitter. Abraham - Abraham Williams | Hacker Advocate | abrah.am @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Fri, Nov 19, 2010 at 18:36, Patrick Golden artiz...@gmail.com wrote: Is it possible to check to see if a user is logged in to Twitter and has authorized the application without having any redirects? For first time login, I have this basic code: ? require(twitter/twitteroauth.php); session_start(); // The TwitterOAuth instance $twitteroauth = new TwitterOAuth('xxx', 'xxx'); // Requesting authentication tokens, the parameter is the URL we will be redirected to $request_token = $twitteroauth-getRequestToken('xxx'); // Saving them into the session $_SESSION['twitter_token'] = $request_token['oauth_token']; $_SESSION['twitter_secret'] = $request_token['oauth_token_secret']; // If everything goes well.. if($twitteroauth-http_code==200){ // Let's generate the URL and redirect $url = $twitteroauth- getAuthorizeURL($request_token['oauth_token']); header('Location: '. $url); } ? That's on a separate page, something like twitter-login.php, so I only want to use that when the user isn't logged in (i.e. the user clicks a login with Twitter link). I have a function for my site's user system that displays either a login form (if not logged in; has Facebook/Twitter buttons) or a user control panel (if logged in). The function prototype is something like: displayLogin(bool $facebook, bool $twitter, string $username) where the first two parameters indicate if the user is signed in with Facebook, Twitter, or neither. With Facebook, I can check with the API if the user has a session on Facebook and has verified the application by: $session = $facebook-getSession(); $me = null; // Session based API call. if ($session) { try { $uid = $facebook-getUser(); $me = $facebook-api('/me'); } catch (FacebookApiException $e) { error_log($e); } } else { $me = false; } if ($me) { // do stuff because the user is logged in and has authorized the app in the past } And so if $me isn't false, I know the user is logged in and I can set session variables, and pass a boolean true to the displayLogin() function for Facebook. All of this is processed on my index page, hence no redirects. Is there any way to do this with Twitter without having to do the redirect? Would I have to use javascript or something? My PHP library is the twitteroauth library. Thank you! -- 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] Update Status
Hi Anoopkp, You'll have more luck finding help for this problem if you also let everyone know which specific PHP library you're using. Taylor On Tue, Nov 16, 2010 at 12:27 AM, Anoopkp anoopk...@gmail.com wrote: Hello Sir, My Requirement: I am using PHP , From a php page i have to update the STATUS or Post a Tweet in twitter. I have downloaded php library , i created an application in twitter to get secret code etc... I have configured the file according to the application details. But i am getting an error Could not connect to Twitter. Refresh the page or try again later. Please help me to solve this problem. -- 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