[twitter-dev] Background Image & twitteroauth library
Hi Everyone, I'm attempting to use the twittoauth library by Abraham Williams and am having a little trouble. I am able to authenticate and get everything, for the most part, working properly. The only thing I can't do is get the background image to update. Function I'm Using in index.php: $connection->post('account/update_profile_background_image', array('image' => 'images/cool-blue.jpg')); index.php is in a root directory and there is a folder called images with the cool-blue.jpg background in there. The file size is only 215kb. I'm not sure why it isn't working. Any help would be greatly appreciated.
Re: [twitter-dev] Re: Twitter Search API (boolean operators)
Frequency of the words are highly time dependent and all terms are working. See: helenlowell "life before death" OR "palliative care" OR dying OR "end-of-life care" http://search.twitter.com/search?q=helenlowell+%22life+before+death%22+OR+%22palliative+care%22+OR+dying+OR+%22end-of-life+care%22 Jonathan On Tue, May 11, 2010 at 7:10 PM, taipan541 wrote: > Erm, I dont think it is working correctly if using the link below (as > what described in Jonathan's post) > > > http://search.twitter.com/search?q=%22life+before+death%22+OR+%22palliative+care%22+OR+dying+OR+%22end-of-life+care%22 > > It only retrieve results that is based on the "dying" keyword. The > other keywords ("life before death", "palliative care") which contain > spaces doesnt return any results. :( > > Best Regards, > Anis > Year 3 - Student > Nanyang Polytechnic, Singapore > > On May 11, 11:44 pm, Jonathan Reichhold > wrote: > > Quotes should be used on all phrases. I.e. > > > > http://search.twitter.com/search?q=%22life+before+death%22+OR+%22pall... > > > > Jonathan > > > > > > > > On Tue, May 11, 2010 at 8:35 AM, taipan541 wrote: > > > Hello. :) > > > > > I have several keywords that I would like to search on Twitter. The > > > keywords are "life before death", "palliative care", "dying", "end-of- > > > life care". I have tried to use the boolean operators to form up the > > > search query as stated below. > > > > >http://search.twitter.com/search.atom?q=life%20before%20death+OR+pall. > .. > > > (multiple keywords) > > > > > Firstly, did I build the query string correctly? If yes, I only could > > > retrieve very little results with the query above. If I only include > > > one keyword, which is "life before death", it would return me more > > > results. > > > > >http://search.twitter.com/search.atom?q=life%20before%20death (one > > > keyword) > > > > > I believed that if I use the boolean operators, It would have return > > > me much more results which includes the results of "life before > > > death". Please help me on how should I proceed to retrieve the results > > > from all keywords. > > > > > Thank You For Your Help :) > > > Best Regards, > > > Anis > > > Year 3 - Student > > > Nanyang Polytechnic, Singapore- Hide quoted text - > > > > - Show quoted text - >
[twitter-dev] TTYtter OAuth public beta
For those who are looking for command line tools to talk to Twitter after the OAuthcalypse, the TTYtter 1.1 public beta is now available. Besides its chief role as a 100% text interactive client, it also can be scripted and passed arguments to serve as a tool in shell scripts and cron jobs. It is xAuth enabled, so it can function in automated browserless environments, and contains its own OAuth, SHA-1/HMAC and JSON implementations built-in. Just add an SSL-enabled cURL; no other Perl libraries needed! For existing applications using TTYtter, 1.1 is designed to be completely upwards compatible with your 1.0-compatible extensions. If you want to try the public beta for your own purposes, visit http://www.floodgap.com/software/ttytter/beta/ -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- Time is an illusion. Lunch time, doubly so. -- Douglas Adams ---
[twitter-dev] Re: Twitter Search API (boolean operators)
Erm, I dont think it is working correctly if using the link below (as what described in Jonathan's post) http://search.twitter.com/search?q=%22life+before+death%22+OR+%22palliative+care%22+OR+dying+OR+%22end-of-life+care%22 It only retrieve results that is based on the "dying" keyword. The other keywords ("life before death", "palliative care") which contain spaces doesnt return any results. :( Best Regards, Anis Year 3 - Student Nanyang Polytechnic, Singapore On May 11, 11:44 pm, Jonathan Reichhold wrote: > Quotes should be used on all phrases. I.e. > > http://search.twitter.com/search?q=%22life+before+death%22+OR+%22pall... > > Jonathan > > > > On Tue, May 11, 2010 at 8:35 AM, taipan541 wrote: > > Hello. :) > > > I have several keywords that I would like to search on Twitter. The > > keywords are "life before death", "palliative care", "dying", "end-of- > > life care". I have tried to use the boolean operators to form up the > > search query as stated below. > > >http://search.twitter.com/search.atom?q=life%20before%20death+OR+pall... > > (multiple keywords) > > > Firstly, did I build the query string correctly? If yes, I only could > > retrieve very little results with the query above. If I only include > > one keyword, which is "life before death", it would return me more > > results. > > >http://search.twitter.com/search.atom?q=life%20before%20death (one > > keyword) > > > I believed that if I use the boolean operators, It would have return > > me much more results which includes the results of "life before > > death". Please help me on how should I proceed to retrieve the results > > from all keywords. > > > Thank You For Your Help :) > > Best Regards, > > Anis > > Year 3 - Student > > Nanyang Polytechnic, Singapore- Hide quoted text - > > - Show quoted text -
[twitter-dev] Re: Twitter Search API (boolean operators)
Hey Jonathan, Thanks!! It works! =) Best Regards, Anis Year 3 - Student Nanyang Polytechnic, Singapore
[twitter-dev] Re: Source param in Lists timelines
Hi Ron, I can't find a ticket requesting xAuth under your email address. Can you please follow up with me directly? Thanks Brian Sutorius On May 11, 12:05 pm, Ron B wrote: > Hi Taylor, > > Thanks for getting back to me so quickly. You're right, this was > cockpit error on my part. I apologize for taking up your time > unnecessarily. > > On another note, I've have an xAuth access request in for over a week > now. Can you help expedite it. It's for registration ID: 135852. > I'm pretty much dead-in-the-water with further testing on my app until > this approval goes through. > > Thanks again! > > Ron > > On May 11, 12:48 pm, Taylor Singletary > wrote: > > > > > Hi Ron, > > > I'm not able to reproduce this problem -- when I fetch a group of statuses > > from a list, I'm seeing unique source tags corresponding to the origin of > > the updates. Is it possible that the tweets you're evaluating in your list > > were all, in fact, posted via web? > > > Taylor Singletary > > Developer Advocate, Twitterhttp://twitter.com/episod > > > On Tue, May 11, 2010 at 9:23 AM, Ron B wrote: > > > The source param in Lists timelines seems to be hardwired to "web". > > > Is this on purpose, or is something wrong? > > > > i.e.http://api.twitter.com/1/user/lists/list_id/statuses.format, > > > yields web.
[twitter-dev] oauth and embedded microcontrollers
I have a device that tweets using the API. It is a microcontroller that is hooked to garage doors http://www.toyz.org/GarageBot http://www.toyz.org/images/GarageBot_sm.jpg It is a small box mounted on the wall in the garage as shown in the photo. Unlike a full PC, it has no hard drives and draws very little power. There is no screen or keyboard. All interaction is via the net. Plug it in and it boots and starts doing its thing. You don’t need to think about it. I added LEDs to provide some indication that the device was running. oAuth is a big burden for microcontroller based devices like this - OAuthcalypse will probably simply kill this app. It seems like way too much overhead to push oAuth code into this little chip. oAuth alone would probably exceed all the rest of the application code on the device combined. It's too bad Twitter doesn't provide a way for the user to authorize Basic Auth for their own Twitter ID under certain terms, or some other lightweight Twitter API option. By forcing oAuth, Twitter has substantially raised the bar for API interaction and particularly for embedding Twitter into lightweight devices. Twitter used to be a uniqely lightweight API - not anymore.
[twitter-dev] retweets of retweets
with the new retweet mechanism i can retweet a tweet my friends have retweeted and i believe it shows up as a retweet of that original tweet. but with the old RT @xxx convention for retweeting, i could retweet a retweet like so: RT @ RT @ in that case, does my retweet show up as a retweet of the original tweet or of the retweet i actually retweeted? is it possible to have a chain of retweets?
[twitter-dev] retweets of retweets
the various API calls that return retweets (or retweeters) of tweets -- do those include both the new style retweet and the old RT @ convention?
[twitter-dev] statuses/retweets and paging
how come the statuses/retweets api method doesn't support paging? the statuses/:id/retweeted_by api method does but i'd really rather get the retweet itself.
[twitter-dev] Re: More user stream updates
And... this is live. Enjoy! ---Mark http://twitter.com/mccv On Tue, May 11, 2010 at 12:24 PM, Mark McBride wrote: > All - within the next day or so we will be including list information > in the user streams. These will be manifested as social events with > new event types. The new types are > > 1) list_created > 2) list_updated > 3) list_destroyed > 4) list_member_added > 5) list_member_removed > 6) list_user_subscribed > 7) list_user_unsubscribed > > Currently the dispatch of these events is the same as > follow/favorites/etc. If this becomes too noisy we'll reconsider the > dispatch scheme. > > As always, questions/comments/concerns welcome. > > ---Mark > > http://twitter.com/mccv >
[twitter-dev] Browser hover over ID sometimes says, "Sorry, this does not appear to be an active Twitter account"
Occasionally, in Firefox 3.6.3 on Linux, when I mouse over a user name, I see that message. It's intermittent - I haven't had any luck trying to reproduce it. The account in question is always an active one - I can click on the screen name and get to the page just fine. I have heard from another user that this also happens on Macs using Safari. I suspect it's getting some kind of error from Twitter and returning that message. Speaking of errors, it also seems like page load times on my blog involving @anywhere interactions, like loading a "follow @znmeb on Twitter" button, have gotten longer. At some point, I plan to load up the Google speed tools and try to find out what's happening. But if there's something happening at the Twitter end, it would be good to get it fixed, because Google now penalizes slow pages in search placement, and that's not a good thing for @anywhere. -- M. Edward (Ed) Borasky http://borasky-research.net/m-edward-ed-borasky/ @znmeb "A mathematician is a device for turning coffee into theorems." ~ Paul Erdős
[twitter-dev] Re: Current TwitterOAuth API won't display authorization page
I'm afraid I spoke to soon. Things are not quite working. I am able to authorize tweeting through the new API, but I am not able to tweet yet. When I first tried, I got back a message from this tweet operation: $to->OAuthRequest( "https://twitter.com/statuses/update.xml";, array('status' => $expanded_txt, 'POST') ); which said, Warning: Missing argument 3 for TwitterOAuth::oAuthRequest(), called in ... and defined in .../twitterOAuth.php on line 178 I looked at the code and concluded that the third parameter should be NULL. I added that and got this from PHP: Notice: Array to string conversion in .../OAuth.php on line 373 and from the tweet call: Could not authenticate you. Oauth.php lines 373 says return strtoupper($this->http_method); I traced the value in http_method back to the second parameter of twitterOAuth::oAuthRequest. I saw that instead of returning an array which contained, among other things, the scalar 'POST', the second parameter should just be 'POST'. Accordingly, I changed the call to: $to->OAuthRequest( "https://twitter.com/statuses/update.xml";, 'POST', NULL ); and got a return value that contained this: Client must provide a 'status' parameter with a value. ...which makes perfect sense, since the "status" element of the array contains the text of the tweet! I'm not sure what's happening here. It appears that one part of the code requires OAuthRequest's second parameter to be an array, and another part requires it to be a scalar! I know that can't be so, but I don't see what it wants. Again, I'm stymied by the lack of API documentation.
[twitter-dev] Re: Current TwitterOAuth API won't display authorization page
On May 10, 1:08 pm, Abraham Williams <4bra...@gmail.com> wrote: > It is because you are using the faster Sign in With Twitter endpoint where > if a user has already authorized your application they will automatically > redirect back to your site. If you want the user to always get prompted use > $connection->getAuthorizeURL($token, FALSE); Thanks. I tried that, and it worked. One more question: how could I have figured this out without asking? The comment block on twitterOAuth::getAuthorizeURL doesn't explain the second parameter at all. I got your twitterOAuth documentation from docs.google.com (I think through a link in the Twitter API Google Group), but it describes the beta code, and I now know that it omits the critical fact that I needed. Also, it's a brief outline of the sequence of API calls -- useful in its own right, but it can't contain the level of detail that I'd need to solve a problem like this one.
[twitter-dev] 422 error from mobile signup page - iPhone
I am attempting to create a new account via https://mobile.twitter.com/signup from within a UIWebView in an iPhone app and get a 422 error - "The change you wanted was rejected" when pressing "Create my account" I'm not doing anything out of the ordinary. I've tried all possible cache setting as a potential cause without success. Any ideas what the cause of the error could be? Mark
[twitter-dev] 401 on token request with Abraham PHP library
Hello, I am using the Abraham Twitter OAuth library with my application. I am seeing a 401 error on the first token request and I would like some help figuring out what I am doing wrong. My application is registered as R/W. I copied my Consumer Key and Secret values to the config.php file. As part of my debugging I did change the authenticateURL() and authorizeURL() values from twitter.com to api.twitter.com, but I don't think I am even getting to those calls. Here is my request and the results from the redirect.php page: Last Headers: url:https://api.twitter.com/oauth/request_token? oauth_callback=http%3A%2F%2Fwww.airportview.net %2Findex.php&oauth_consumer_key=Umf4Yxc4lpevt8g1yf7Ig&oauth_nonce=03d49df4c50068e7c129a4484d3edce3&oauth_signature= %2B1HANFgddl6QYI%2FGIRIaUOLMIBI%3D&oauth_signature_method=HMAC- SHA1&oauth_timestamp=1273603233&oauth_version=1.0 content_type:text/html; charset=utf-8 http_code:401 header_size:981 request_size:387 filetime:-1 ssl_verify_result:0 redirect_count:0 total_time:2.191915 namelookup_time:0.000118 connect_time:0.058302 pretransfer_time:0.215633 size_upload:0 size_download:477 speed_download:217 speed_upload:0 download_content_length:477 upload_content_length:0 starttransfer_time:2.191894 redirect_time:0 I would guess that I am misusing the library somehow, but I am not sure how. Thanks.
[twitter-dev] More user stream updates
All - within the next day or so we will be including list information in the user streams. These will be manifested as social events with new event types. The new types are 1) list_created 2) list_updated 3) list_destroyed 4) list_member_added 5) list_member_removed 6) list_user_subscribed 7) list_user_unsubscribed Currently the dispatch of these events is the same as follow/favorites/etc. If this becomes too noisy we'll reconsider the dispatch scheme. As always, questions/comments/concerns welcome. ---Mark http://twitter.com/mccv
[twitter-dev] Re: Source param in Lists timelines
Hi Taylor, Thanks for getting back to me so quickly. You're right, this was cockpit error on my part. I apologize for taking up your time unnecessarily. On another note, I've have an xAuth access request in for over a week now. Can you help expedite it. It's for registration ID: 135852. I'm pretty much dead-in-the-water with further testing on my app until this approval goes through. Thanks again! Ron On May 11, 12:48 pm, Taylor Singletary wrote: > Hi Ron, > > I'm not able to reproduce this problem -- when I fetch a group of statuses > from a list, I'm seeing unique source tags corresponding to the origin of > the updates. Is it possible that the tweets you're evaluating in your list > were all, in fact, posted via web? > > Taylor Singletary > Developer Advocate, Twitterhttp://twitter.com/episod > > > > On Tue, May 11, 2010 at 9:23 AM, Ron B wrote: > > The source param in Lists timelines seems to be hardwired to "web". > > Is this on purpose, or is something wrong? > > > i.e.http://api.twitter.com/1/user/lists/list_id/statuses.format, > > yields web.
Re: [twitter-dev] Public user timeline and RT
I would imagine it is easier on Twitter system to pull the count then filter out retweets. Abraham On Tue, May 11, 2010 at 04:56, tremoloadebut wrote: > Why are RT included in the 'count' > > For instance if I view: > > > http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=[username]&count=3 > > and the last three tweets are RT, I get: > > > > > Why not show me the last 3 that I can access, or allow me to refine my > search not to include RT? > -- Abraham Williams | Developer for hire | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private.
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
Got it! I was using my consumer key to create signature instead of the secret :S thanks all! On Tue, May 11, 2010 at 13:54, sebastian gomez < sebastiangomezcor...@gmail.com> wrote: > Great help Taylor thanks... > Will check on that and come back to you. > > thanks again > > > On Tue, May 11, 2010 at 13:20, Taylor Singletary < > taylorsinglet...@twitter.com> wrote: > >> Sebastian, >> >> Also make sure that all of the following points are true in your >> implementation: >> >> * You are using POST >> * You are using SSL >> * Your xAuth parameters are the ONLY parameters in your POST body >> * You're setting a Content-Type header of >> "application/x-www-form-urlencoded" >> * Your xAuth parameters are properly part of your signature base string, >> where they will appear at the end of the signature base string in >> alphabetical order >> * You're using HTTP header-based OAuth -- not attaching OAuth parameters >> to the URL or POST body >> * You're HTTP Authorization header should only have oauth_* parameters >> in it, not any of the xauth parameters >> >> Taylor Singletary >> Developer Advocate, Twitter >> http://twitter.com/episod >> >> >> >> On Tue, May 11, 2010 at 9:07 AM, sebastian gomez < >> sebastiangomezcor...@gmail.com> wrote: >> >>> will do that, thanks >>> >>> >>> On Tue, May 11, 2010 at 12:53, Cameron Kaiser wrote: >>> > Ok, when I uset POST I get a 401 (Unauthorized) :( > I guess I'm doing something wrong... what could it be? is my base string ok? The server should give you a message like "Invalid nonce" or "Invalid signature" or some such. If you don't even get that, I suspect your xAuth access is not working or set up. Mail a...@twitter.com. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- BOND THEME NOW PLAYING: "Diamonds Are Forever" - >>> >>> >> >
Re: [twitter-dev] Source param in Lists timelines
Hi Ron, I'm not able to reproduce this problem -- when I fetch a group of statuses from a list, I'm seeing unique source tags corresponding to the origin of the updates. Is it possible that the tweets you're evaluating in your list were all, in fact, posted via web? Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Tue, May 11, 2010 at 9:23 AM, Ron B wrote: > The source param in Lists timelines seems to be hardwired to "web". > Is this on purpose, or is something wrong? > > i.e. http://api.twitter.com/1/user/lists/list_id/statuses.format, > yields web. >
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
Great help Taylor thanks... Will check on that and come back to you. thanks again On Tue, May 11, 2010 at 13:20, Taylor Singletary < taylorsinglet...@twitter.com> wrote: > Sebastian, > > Also make sure that all of the following points are true in your > implementation: > > * You are using POST > * You are using SSL > * Your xAuth parameters are the ONLY parameters in your POST body > * You're setting a Content-Type header of > "application/x-www-form-urlencoded" > * Your xAuth parameters are properly part of your signature base string, > where they will appear at the end of the signature base string in > alphabetical order > * You're using HTTP header-based OAuth -- not attaching OAuth parameters > to the URL or POST body > * You're HTTP Authorization header should only have oauth_* parameters in > it, not any of the xauth parameters > > Taylor Singletary > Developer Advocate, Twitter > http://twitter.com/episod > > > > On Tue, May 11, 2010 at 9:07 AM, sebastian gomez < > sebastiangomezcor...@gmail.com> wrote: > >> will do that, thanks >> >> >> On Tue, May 11, 2010 at 12:53, Cameron Kaiser wrote: >> >>> > Ok, when I uset POST I get a 401 (Unauthorized) :( >>> > I guess I'm doing something wrong... what could it be? is my base >>> string ok? >>> >>> The server should give you a message like "Invalid nonce" or "Invalid >>> signature" or some such. If you don't even get that, I suspect your xAuth >>> access is not working or set up. Mail a...@twitter.com. >>> >>> -- >>> personal: >>> http://www.cameronkaiser.com/ -- >>> Cameron Kaiser * Floodgap Systems * www.floodgap.com * >>> ckai...@floodgap.com >>> -- BOND THEME NOW PLAYING: "Diamonds Are Forever" >>> - >>> >> >> >
[twitter-dev] apistatus and latency
All - apistatus.twitter.com is monitoring API latency. However the reflection of latency in the green check marks is currently not quite what you might expect. The green only turns to yellow if latency is below performance thresholds for the entire day. We're working with our vendor on making this a reflection of current performance vs. the entire day's performance. Until then, you can always click on a specific monitor and see a graph of latency. Sorry for the inconvenience, we'll let you know when it's fixed. ---Mark http://twitter.com/mccv
[twitter-dev] Source param in Lists timelines
The source param in Lists timelines seems to be hardwired to "web". Is this on purpose, or is something wrong? i.e. http://api.twitter.com/1/user/lists/list_id/statuses.format, yields web.
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
Sebastian, Also make sure that all of the following points are true in your implementation: * You are using POST * You are using SSL * Your xAuth parameters are the ONLY parameters in your POST body * You're setting a Content-Type header of "application/x-www-form-urlencoded" * Your xAuth parameters are properly part of your signature base string, where they will appear at the end of the signature base string in alphabetical order * You're using HTTP header-based OAuth -- not attaching OAuth parameters to the URL or POST body * You're HTTP Authorization header should only have oauth_* parameters in it, not any of the xauth parameters Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Tue, May 11, 2010 at 9:07 AM, sebastian gomez < sebastiangomezcor...@gmail.com> wrote: > will do that, thanks > > > On Tue, May 11, 2010 at 12:53, Cameron Kaiser wrote: > >> > Ok, when I uset POST I get a 401 (Unauthorized) :( >> > I guess I'm doing something wrong... what could it be? is my base string >> ok? >> >> The server should give you a message like "Invalid nonce" or "Invalid >> signature" or some such. If you don't even get that, I suspect your xAuth >> access is not working or set up. Mail a...@twitter.com. >> >> -- >> personal: >> http://www.cameronkaiser.com/ -- >> Cameron Kaiser * Floodgap Systems * www.floodgap.com * >> ckai...@floodgap.com >> -- BOND THEME NOW PLAYING: "Diamonds Are Forever" >> - >> > >
[twitter-dev] Re: help about whitelisting request form
Sorry for the delay. I just reviewed your whitelisting request and responded - you should receive an email shortly. Brian Sutorius On May 11, 2:30 am, tao wrote: > dear sir > last friday > i Filling in whitelisting request form on twitter and submit my > request > but now i cant get any Reply. > please tell me > When Will I be able to get Reply? > my twitter user is yametei > > thank you
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
will do that, thanks On Tue, May 11, 2010 at 12:53, Cameron Kaiser wrote: > > Ok, when I uset POST I get a 401 (Unauthorized) :( > > I guess I'm doing something wrong... what could it be? is my base string > ok? > > The server should give you a message like "Invalid nonce" or "Invalid > signature" or some such. If you don't even get that, I suspect your xAuth > access is not working or set up. Mail a...@twitter.com. > > -- > personal: > http://www.cameronkaiser.com/ -- > Cameron Kaiser * Floodgap Systems * www.floodgap.com * > ckai...@floodgap.com > -- BOND THEME NOW PLAYING: "Diamonds Are Forever" > - >
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
> Ok, when I uset POST I get a 401 (Unauthorized) :( > I guess I'm doing something wrong... what could it be? is my base string ok? The server should give you a message like "Invalid nonce" or "Invalid signature" or some such. If you don't even get that, I suspect your xAuth access is not working or set up. Mail a...@twitter.com. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- BOND THEME NOW PLAYING: "Diamonds Are Forever" -
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
Ok, when I uset POST I get a 401 (Unauthorized) :( I guess I'm doing something wrong... what could it be? is my base string ok? On Tue, May 11, 2010 at 12:47, Cameron Kaiser wrote: > > Sorry, I didn__t see your request in the mail > > I'm trying to access https://api.twitter.com/oauth/access_token with GET > as > > the http method... Is that ok? > > My signature base is: > > > > GET&https%3A%2F%2Fapi.twitter.com > > > %2Foauth%2Faccess_token&oauth_consumer_key%3Dmy_consumer_key%26oauth_nonce%3DafQ4ux5qRH9GaH8tVaDCwInLy6z8snR6wiq8lKcD6s%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1273592580%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3Dmy_password%26x_auth_username%3Dmy_user > > It should be POST. > > -- > personal: > http://www.cameronkaiser.com/ -- > Cameron Kaiser * Floodgap Systems * www.floodgap.com * > ckai...@floodgap.com > -- Communism doesn't work because people like to own stuff. -- Frank Zappa > >
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
> Sorry, I didn__t see your request in the mail > I'm trying to access https://api.twitter.com/oauth/access_token with GET as > the http method... Is that ok? > My signature base is: > > GET&https%3A%2F%2Fapi.twitter.com > %2Foauth%2Faccess_token&oauth_consumer_key%3Dmy_consumer_key%26oauth_nonce%3DafQ4ux5qRH9GaH8tVaDCwInLy6z8snR6wiq8lKcD6s%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1273592580%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3Dmy_password%26x_auth_username%3Dmy_user It should be POST. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- Communism doesn't work because people like to own stuff. -- Frank Zappa
Re: [twitter-dev] Twitter Search API (boolean operators)
Quotes should be used on all phrases. I.e. http://search.twitter.com/search?q=%22life+before+death%22+OR+%22palliative+care%22+OR+dying+OR+%22end-of-life+care%22 Jonathan On Tue, May 11, 2010 at 8:35 AM, taipan541 wrote: > Hello. :) > > I have several keywords that I would like to search on Twitter. The > keywords are "life before death", "palliative care", "dying", "end-of- > life care". I have tried to use the boolean operators to form up the > search query as stated below. > > > http://search.twitter.com/search.atom?q=life%20before%20death+OR+palliative%20care+OR+dying+OR+end-of-life%20care > (multiple keywords) > > Firstly, did I build the query string correctly? If yes, I only could > retrieve very little results with the query above. If I only include > one keyword, which is "life before death", it would return me more > results. > > http://search.twitter.com/search.atom?q=life%20before%20death (one > keyword) > > I believed that if I use the boolean operators, It would have return > me much more results which includes the results of "life before > death". Please help me on how should I proceed to retrieve the results > from all keywords. > > Thank You For Your Help :) > Best Regards, > Anis > Year 3 - Student > Nanyang Polytechnic, Singapore > >
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
Sorry, I didn´t see your request in the mail I'm trying to access https://api.twitter.com/oauth/access_token with GET as the http method... Is that ok? My signature base is: GET&https%3A%2F%2Fapi.twitter.com %2Foauth%2Faccess_token&oauth_consumer_key%3Dmy_consumer_key%26oauth_nonce%3DafQ4ux5qRH9GaH8tVaDCwInLy6z8snR6wiq8lKcD6s%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1273592580%26oauth_version%3D1.0%26x_auth_mode%3Dclient_auth%26x_auth_password%3Dmy_password%26x_auth_username%3Dmy_user thanks On Tue, May 11, 2010 at 12:37, sebastian gomez < sebastiangomezcor...@gmail.com> wrote: > yeap, that´s right! > > > On Tue, May 11, 2010 at 12:25, Cameron Kaiser wrote: > >> > I'm migrating my shell app from basic to xAuth and now I'm getting the >> > error from the subject. >> >> You mean >> >> The remote server returned an error: (500) Internal Server Error. >> >> ? >> >> > I looked around and I found this page >> > http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors where it >> > says something is broken, is it? do I have an error on my app or is >> > there an error on the twitter API? >> >> You might want to post what you're trying to access and your signature >> base. >> >> > >> -- >> personal: >> http://www.cameronkaiser.com/ -- >> Cameron Kaiser * Floodgap Systems * www.floodgap.com * >> ckai...@floodgap.com >> -- Proponents of other opinions will be merrily beaten to a bloody pulp. >> -- >> > >
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
yeap, that´s right! On Tue, May 11, 2010 at 12:25, Cameron Kaiser wrote: > > I'm migrating my shell app from basic to xAuth and now I'm getting the > > error from the subject. > > You mean > > The remote server returned an error: (500) Internal Server Error. > > ? > > > I looked around and I found this page > > http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors where it > > says something is broken, is it? do I have an error on my app or is > > there an error on the twitter API? > > You might want to post what you're trying to access and your signature > base. > > > > -- > personal: > http://www.cameronkaiser.com/ -- > Cameron Kaiser * Floodgap Systems * www.floodgap.com * > ckai...@floodgap.com > -- Proponents of other opinions will be merrily beaten to a bloody pulp. > -- >
[twitter-dev] Twitter Search API (boolean operators)
Hello. :) I have several keywords that I would like to search on Twitter. The keywords are "life before death", "palliative care", "dying", "end-of- life care". I have tried to use the boolean operators to form up the search query as stated below. http://search.twitter.com/search.atom?q=life%20before%20death+OR+palliative%20care+OR+dying+OR+end-of-life%20care (multiple keywords) Firstly, did I build the query string correctly? If yes, I only could retrieve very little results with the query above. If I only include one keyword, which is "life before death", it would return me more results. http://search.twitter.com/search.atom?q=life%20before%20death (one keyword) I believed that if I use the boolean operators, It would have return me much more results which includes the results of "life before death". Please help me on how should I proceed to retrieve the results from all keywords. Thank You For Your Help :) Best Regards, Anis Year 3 - Student Nanyang Polytechnic, Singapore
Re: [twitter-dev] The remote server returned an error: (500) Internal Server Error.
> I'm migrating my shell app from basic to xAuth and now I'm getting the > error from the subject. You mean The remote server returned an error: (500) Internal Server Error. ? > I looked around and I found this page > http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors where it > says something is broken, is it? do I have an error on my app or is > there an error on the twitter API? You might want to post what you're trying to access and your signature base. > -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- Proponents of other opinions will be merrily beaten to a bloody pulp. --
[twitter-dev] The remote server returned an error: (500) Internal Server Error.
I'm migrating my shell app from basic to xAuth and now I'm getting the error from the subject. I looked around and I found this page http://apiwiki.twitter.com/HTTP-Response-Codes-and-Errors where it says something is broken, is it? do I have an error on my app or is there an error on the twitter API? Thanks
Re: [twitter-dev] Re: Intermittent 401 Errors
A packet trace isn't going to tell us anything that we don't already know. The API is occasionally underwater between about 13:30 and 18:30 UTC on weekdays and we're working on fixing this. On Tue, May 11, 2010 at 7:51 AM, Dewald Pretorius wrote: > Glen, > > My system makes thousands of outgoing calls per minute, and a lot of > them are going to non-Twitter destinations. Even if it wouldn't mess > with my app, I'm not sending a TCP dump/log anywhere. There's nothing > inappropriate in there, but calls, destinations, and volume of calls > that my system makes are proprietary business information. > > On May 11, 11:34 am, glenn gillen wrote: >> On May 11, 3:21 pm, Dewald Pretorius wrote: >> >> > As well (I know it has been discussed elsewhere), I am consistently >> > seeing API response times in excess of 3 seconds per call. It is >> > actually rare to see one that takes less than 2 seconds. This is on >> > connections from Dallas. But, even using twitter.com in the web >> > browser from Canada is also painfully slow. >> >> Dewald, >> >> I can't provide any constructive feedback to your problem, but I was >> wondering if you had any input on this message I posted earlier >> today:http://groups.google.com/group/twitter-development-talk/msg/27ea7a163... >> >> Also, having had to play the tech support role for a while in a >> previous life, is running tcpdump on a live server for 30-60 seconds >> really going to mess with your app in any noticeable way? The majority >> of the time when people ask for that kind of information it's not to >> satisfy their sadomasochistic desires to trawl through network dumps, >> it's to make their life easier while trying to identify/recreate and >> fix your problem. >> >> -- >> Glenn Gillenhttp://glenngillen.com/ >
[twitter-dev] Re: Intermittent 401 Errors
Glen, My system makes thousands of outgoing calls per minute, and a lot of them are going to non-Twitter destinations. Even if it wouldn't mess with my app, I'm not sending a TCP dump/log anywhere. There's nothing inappropriate in there, but calls, destinations, and volume of calls that my system makes are proprietary business information. On May 11, 11:34 am, glenn gillen wrote: > On May 11, 3:21 pm, Dewald Pretorius wrote: > > > As well (I know it has been discussed elsewhere), I am consistently > > seeing API response times in excess of 3 seconds per call. It is > > actually rare to see one that takes less than 2 seconds. This is on > > connections from Dallas. But, even using twitter.com in the web > > browser from Canada is also painfully slow. > > Dewald, > > I can't provide any constructive feedback to your problem, but I was > wondering if you had any input on this message I posted earlier > today:http://groups.google.com/group/twitter-development-talk/msg/27ea7a163... > > Also, having had to play the tech support role for a while in a > previous life, is running tcpdump on a live server for 30-60 seconds > really going to mess with your app in any noticeable way? The majority > of the time when people ask for that kind of information it's not to > satisfy their sadomasochistic desires to trawl through network dumps, > it's to make their life easier while trying to identify/recreate and > fix your problem. > > -- > Glenn Gillenhttp://glenngillen.com/
Re: [twitter-dev] Re: Intermittent 401 Errors
Hi Dewald, We have some known performance issues right now as noted in this thread: http://bit.ly/ddp9Mr It's surprising that you're getting 401s, but it might be a particular way an exasperated resource is responding to requests. We'll look into that. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Tue, May 11, 2010 at 7:34 AM, glenn gillen wrote: > On May 11, 3:21 pm, Dewald Pretorius wrote: > > As well (I know it has been discussed elsewhere), I am consistently > > seeing API response times in excess of 3 seconds per call. It is > > actually rare to see one that takes less than 2 seconds. This is on > > connections from Dallas. But, even using twitter.com in the web > > browser from Canada is also painfully slow. > > Dewald, > > I can't provide any constructive feedback to your problem, but I was > wondering if you had any input on this message I posted earlier today: > > http://groups.google.com/group/twitter-development-talk/msg/27ea7a1636ae3ba2 > > Also, having had to play the tech support role for a while in a > previous life, is running tcpdump on a live server for 30-60 seconds > really going to mess with your app in any noticeable way? The majority > of the time when people ask for that kind of information it's not to > satisfy their sadomasochistic desires to trawl through network dumps, > it's to make their life easier while trying to identify/recreate and > fix your problem. > > -- > Glenn Gillen > http://glenngillen.com/ >
[twitter-dev] Re: Intermittent 401 Errors
On May 11, 3:21 pm, Dewald Pretorius wrote: > As well (I know it has been discussed elsewhere), I am consistently > seeing API response times in excess of 3 seconds per call. It is > actually rare to see one that takes less than 2 seconds. This is on > connections from Dallas. But, even using twitter.com in the web > browser from Canada is also painfully slow. Dewald, I can't provide any constructive feedback to your problem, but I was wondering if you had any input on this message I posted earlier today: http://groups.google.com/group/twitter-development-talk/msg/27ea7a1636ae3ba2 Also, having had to play the tech support role for a while in a previous life, is running tcpdump on a live server for 30-60 seconds really going to mess with your app in any noticeable way? The majority of the time when people ask for that kind of information it's not to satisfy their sadomasochistic desires to trawl through network dumps, it's to make their life easier while trying to identify/recreate and fix your problem. -- Glenn Gillen http://glenngillen.com/
[twitter-dev] Re: Intermittent 401 Errors
As well (I know it has been discussed elsewhere), I am consistently seeing API response times in excess of 3 seconds per call. It is actually rare to see one that takes less than 2 seconds. This is on connections from Dallas. But, even using twitter.com in the web browser from Canada is also painfully slow.
[twitter-dev] Re: Intermittent 401 Errors
In fact, the API seems to be really borked at the moment. I've been running more tests on friends_timeline.json, and the following happens: 1) Sometimes the connection is refused. 2) Sometimes I get a 200 OK with an empty JSON array, and seconds later with the very next call on the same Twitter account I get a 200 OK with a fully populated JSON array. 3) On some accounts I get "401 Invalid / expired token", where the token on my side has not changed and the connection is present in the Twitter account's Connections tab.
[twitter-dev] Re: Send Cyrillic character (OAuth)
Yes, I saw method strEscape. It's method not work for cyrillic symbols. Bug I saw too :) Thank you for link - http://www.google.com/url?sa=D&q=http://blog.dborisenko.com/en/2009/09/05/extended-utf-8-in-oauth-actionscript-library/&usg=AFQjCNFKXX8jSTvq-3dZ0UoGqLfX64ZBPQ I will try to apply it. Thank you. -- yury | fedorchenko Z-13 www.z-13.ru
[twitter-dev] Re: website and OAuth
Dan, I've taken a stab at answering your questions below: > now from my understanding i need to change this over to start using > OAuth is this correct? the system does it all back end so my bloggers > dont write anything it auto does it for you, it posts to the one > single twitter account. Yes you will need to switch over. > now do i need to change to OAuth to get this to run when the date > finally comes around, if so do i need to create an application? as it > isnt really an application as such, this is the bit that confuses me a > bit. You can switch over immediately, there's no need to wait until the cutoff date comes around. And yes you will need to create an application, it's just that this particular application will only. Details on some OAuth libraries (including PHP ones): http://apiwiki.twitter.com/OAuth-Examples Details on how to easily get a single token: http://dev.twitter.com/pages/oauth_single_token > so i guess the question is do i need to change to oAuth and should i > create an application if so would i need to create a callback URL as > there wont be any callbacks as such would there as i would only be > posting to my twitter feed. The single token approach can avoid the need for callbacks, so long as you don't need to tweet to other users accounts. -- Glenn Gillen http://glenngillen.com/
[twitter-dev] Intermittent 401 Errors
Since late yesterday (May 10), I've been getting intermittent "401 Could not authenticate you" errors. This is on Twitter accounts and code that have been working for a very long time. My code has not changed, and there is nothing wrong with the Twitter accounts either. They are not suspended, or limited, and the connection for my app is firmly present in the Connections tab. One one call (I've validated this on mentions.json, direct_messages.json, and friends_timeline.json) it would work and give me a 200 with the data. On the very next call I get a 401 Could not authenticate you. There is no discernable pattern. Please don't ask me to capture TCP dumps. This is my live app, and I am not going to mess with it to debug the API.
Re: [twitter-dev] Up to what period will Twitter JSON API will continue to work
For now, search.twitter.com will continue functioning as it does today -- you don't enter credentials of any kind to make use of it and all rate limiting is in respect to your IP address. There is a future where the Search API will properly belong in the api.twitter.com domain, and at that time it will be subject to whatever authentication rules are in place when that transition happens. That might mean it doesn't require authorization of any kind. But it also might mean that for server-to-server operations it may require two-legged OAuth (OAuth without access tokens, meaning the "actor" in the request is your application, not a user using your application), or even full three-legged OAuth. Or one of the OAuth2 profiles. Or all three of these. That future is unclear, but the unification of the Search API and the standard Twitter REST API is a sure thing, with many benefits in store. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Mon, May 10, 2010 at 11:33 PM, sandeepcec wrote: > As Twitter is going to stop basic Authentication. > > My question is Does Twitter also going to stop Twitter JSON API > (http://search.twitter.com/search.json?q=) > > Does it comes under basic Authentication module i am not clear about > it >
Re: [twitter-dev] Issues using xAuth on IPhone
Cameron is right, you should be using HTTPS. xAuth requests (and all the oauth endpoints for token negotiation) won't work with the API console as it's for making resource requests with access tokens -- not requests to retrieve access tokens.. Make sure that the following is true when using xAuth: * You are using POST * You are using SSL * Your xAuth parameters are the ONLY parameters in your POST body * You're setting a Content-Type header of "application/x-www-form-urlencoded" * Your xAuth parameters are properly part of your signature base string, where they will appear at the end of the signature base string in alphabetical order * You're using HTTP header-based OAuth -- not attaching OAuth parameters to the URL or POST body * You're HTTP Authorization header should only have oauth_* parameters in it, not any of the xauth parameters Given all these conditions, and enabled xAuth access, xAuth should work for you. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Tue, May 11, 2010 at 5:44 AM, Cameron Kaiser wrote: > > I recently got xAuth approval for my application. But it doesn't seem > > to be working. I m getting a 404 Not Found error when I try to hit > > http://twitter.com/oauth/access_token. > > Er, ignore that last. It should be > >https://api.twitter.com/oauth/access_token > > -- > personal: > http://www.cameronkaiser.com/ -- > Cameron Kaiser * Floodgap Systems * www.floodgap.com * > ckai...@floodgap.com > -- The only abnormality is the inability to love. -- Anais Nin > >
Re: [twitter-dev] User Streaming API development status
I think the general plan outlined in the announcement is still accurate. Beta test in Q2, launch in Q3. So, months. We still have a few features to launch -- they are detailed in the announcement, some back-end infrastructure to build, and some scale-testing to do. We also need the servers. Note: If your application is not a desktop app, it's not going to be eligible for this first beta due to capacity constraints. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Tue, May 11, 2010 at 6:11 AM, Jonathon Hill wrote: > John, > > I know you guys are busy, understaffed on the Streaming API team, etc. > But, I'm developing an app that really could benefit a lot from this > new API, and it is very near beta launch. > > Could you give us some sort of idea of what the current status is, > what hurdles you guys still have to overcome, and some sort of rough > idea of how long it would be? Are we talking days, weeks, or months > out? > > Thanks! > > Jonathon Hill > Company52 > @compwright >
Re: [twitter-dev] How would I get remaing hits using OAuth.
Hi Abraham, Thank you for your reply. Now I am getting rate limit status using OAuth (new version). Now moving towards main problem. As my app(uses rest api) provides user his followers info filtering spam ones which needs lot of calls so I white listed two accounts.Suppose a user has more than a million of followers then it breaks operation as sometimes more than 20k hits are required. What I am doing? -> Through coding I'm checking rate limit status, if it is available move further otherwise give user-defined error. As I am using Abraham's code on github , I got rate limit status, but in coding, it is not possible to enter username and password in twitter's authentication window, as we are not authenticating from user side.(we will be authenticating white listed accounts in back end side).So can I pass username and password of these white listed account and get them authenticated from twitter(instead of showing authentication window) and get their rate limit status using Abraham's code. In short, I need each of above white listed a/c 's rate limit status so instead of authentication window, how can I get these white listed accounts authenticated from twitter. Please suggest me the way to deal with this problem. Because my whole application is ready, just stopped on this. Waiting for reply eagerly, Thank you in advance. On Mon, May 10, 2010 at 10:14 PM, Abraham Williams <4bra...@gmail.com>wrote: > Look at your request > "/account/rate_limit_statusaccount/verify_credentials.json". > Notice how rate_limit_status and verify_credentials are both jammed > together. > > It also looks like you are using an older version of TwitterOAuth. The > newest version uses https://api.twitter.com/1/ as the host which gives you > a rate limit of 350/hour instead of 150/hour. > > To get the rate_limit_status in the newest version call > $connection->get('account/rate_limit_status'); > > Abraham > > On Mon, May 10, 2010 at 07:23, Rushikesh Bhanage > wrote: > >> >> Hi there, >> * About my app* - my app deals with showing user his followers >> information. So I need to check each follower to show result. Everything is >> going properly except one. While doing this I need to check API remaining >> hits of account.(whitelisted a/c.) >> Now what I want is, if my app is using calls of particular a/c then I >> should get remaining hits of that a/c using OAuth. >> I am studying Abraham's code on github in that it gives particular >> user's info, but when I go for rate limit status url for Host like as: >> public $host = "http://twitter.com/account/rate_limit_status";; >> it gives result as: >> stdClass Object >> ( >> [request] => >> /account/rate_limit_statusaccount/verify_credentials.json?oauth_consumer_key=bTeyT1WTohdf7IT4JZ4iYg&oauth_nonce=8e7f694db22fead19d8833ab67430ca6&oauth_signature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEcezD2Pmn32pmc5O&oauth_version=1.0 >> [error] => Not found >> ) >> >> Am I going wrong way? Can you suggest me the right one? >> >> Thank you in advance. >> >> > > > -- > Abraham Williams | Developer for hire | http://abrah.am > @abraham | http://projects.abrah.am | http://blog.abrah.am > This email is: [ ] shareable [x] ask first [ ] private. >
[twitter-dev] User Streaming API development status
John, I know you guys are busy, understaffed on the Streaming API team, etc. But, I'm developing an app that really could benefit a lot from this new API, and it is very near beta launch. Could you give us some sort of idea of what the current status is, what hurdles you guys still have to overcome, and some sort of rough idea of how long it would be? Are we talking days, weeks, or months out? Thanks! Jonathon Hill Company52 @compwright
[twitter-dev] Re: can't post same message more than 1 time Getting error: The remote server returned an error: (403) Forbidden.
Twitter uses this error not only for stuff that you would excpet to be forbidden, but als for other actions that are probably unintended. Other examples are favoriting a tweet you already favorited, trying to follow a user you're already following, etc. The error is usually also accompanied by an error message, which will tell you why you are getting the error. On May 11, 6:34 am, manjunath hindupur wrote: > Scenario like : > > i want post same message twice in a same account, if i Try to send > same message twice by using API.. getting error Like below : The > remote server returned an error: (403) Forbidden. > > its right behavior or Bug?
Re: [twitter-dev] Issues using xAuth on IPhone
> I recently got xAuth approval for my application. But it doesn't seem > to be working. I m getting a 404 Not Found error when I try to hit > http://twitter.com/oauth/access_token. Er, ignore that last. It should be https://api.twitter.com/oauth/access_token -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- The only abnormality is the inability to love. -- Anais Nin
Re: [twitter-dev] Issues using xAuth on IPhone
> I recently got xAuth approval for my application. But it doesn't seem > to be working. I m getting a 404 Not Found error when I try to hit > http://twitter.com/oauth/access_token. s/http/https/ -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- If you don't have a nasty obituary you probably didn't matter. -- F. Dyson -
[twitter-dev] Public user timeline and RT
Why are RT included in the 'count' For instance if I view: http://api.twitter.com/1/statuses/user_timeline.xml?screen_name=[username]&count=3 and the last three tweets are RT, I get: Why not show me the last 3 that I can access, or allow me to refine my search not to include RT?
[twitter-dev] help about whitelisting request form
dear sir last friday i Filling in whitelisting request form on twitter and submit my request but now i cant get any Reply. please tell me When Will I be able to get Reply? my twitter user is yametei thank you
[twitter-dev] Issues using xAuth on IPhone
Hi, I recently got xAuth approval for my application. But it doesn't seem to be working. I m getting a 404 Not Found error when I try to hit http://twitter.com/oauth/access_token. I am following the following link http://dev.twitter.com/pages/xauth for creating the request. I even tried through the API Console at http://dev.twitter.com/console but it is not working. Twitter has confirmed that xAuth is enabled for my application. I m not sure how I can verify that xAuth is actually enabled. I would appreciate any pointers, help regarding this. Regards, James
[twitter-dev] website and OAuth
i have a quick question and dont shoot me down as im a bit confused, i currently run a website that has a custom CMS now i have integrated twitter into this CMS so when ever a new blog is added by one of the users it updates this to twitter, at the moment im using a twitter class that i found on a PHP site that does the trick, to communicate with twitter it send the username and password over. now from my understanding i need to change this over to start using OAuth is this correct? the system does it all back end so my bloggers dont write anything it auto does it for you, it posts to the one single twitter account. now do i need to change to OAuth to get this to run when the date finally comes around, if so do i need to create an application? as it isnt really an application as such, this is the bit that confuses me a bit. so i guess the question is do i need to change to oAuth and should i create an application if so would i need to create a callback URL as there wont be any callbacks as such would there as i would only be posting to my twitter feed. thanks in advance for all your help Dan
[twitter-dev] Up to what period will Twitter JSON API will continue to work
As Twitter is going to stop basic Authentication. My question is Does Twitter also going to stop Twitter JSON API (http://search.twitter.com/search.json?q=) Does it comes under basic Authentication module i am not clear about it
RE: [twitter-dev] How would I get remaing hits using OAuth.
I've done some code updating for the project I am working on. I changed the URL of accessing the rate limit and I'm still being returned with the 150/hr rate limit. [ 06:18:31 am | 241005.11 ] [ @Worf ] TWITTER:URL(http://api.twitter.com/1/account/rate_limit_status.json) [ 06:18:31 am | 241005.11 ] [ @Worf ] Status: All good, 142/150 requests left, Resets: 6:40 AM Running curl on the same URL: C:\ >curl https://api.twitter.com/1/account/rate_limit_status.json {"reset_time":"Tue May 11 12:17:15 + 2010","remaining_hits":150,"hourly_limit":150,"reset_time_in_seconds":127358 0235} -Dustin From: Dustin Lennon [mailto:demonicpa...@gmail.com] Sent: Tuesday, May 11, 2010 3:53 AM To: twitter-development-talk@googlegroups.com Subject: RE: [twitter-dev] How would I get remaing hits using OAuth. Ok. It is late and I didn't comprehend it the first time through. I'm understanding now. Thanks. -Dustin From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of srikanth reddy Sent: Tuesday, May 11, 2010 3:46 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] How would I get remaing hits using OAuth. As abraham pointed out you should use https://api.twitter.com/1/ to get 350/hr limit else it will be 150 (even for oauth) On Tue, May 11, 2010 at 1:48 PM, Dustin Lennon wrote: I was reading on this, I currently have an application that I'll be working on converting to OAuth from Basic Auth. My question is, is the Basic Auth method still limited to 150/hr rate limit? I ask because that is what my app currently returns when I send a request to account/rate_limit_status. -Dustin From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of srikanth reddy Sent: Tuesday, May 11, 2010 2:36 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] How would I get remaing hits using OAuth. Hmm isn't 'X-RateLimit-Remaining' header enough? why make additional call? On Mon, May 10, 2010 at 10:14 PM, Abraham Williams <4bra...@gmail.com> wrote: Look at your request "/account/rate_limit_statusaccount/verify_credentials.json". Notice how rate_limit_status and verify_credentials are both jammed together. It also looks like you are using an older version of TwitterOAuth. The newest version uses https://api.twitter.com/1/ as the host which gives you a rate limit of 350/hour instead of 150/hour. To get the rate_limit_status in the newest version call $connection->get('account/rate_limit_status'); Abraham On Mon, May 10, 2010 at 07:23, Rushikesh Bhanage wrote: Hi there, About my app - my app deals with showing user his followers information. So I need to check each follower to show result. Everything is going properly except one. While doing this I need to check API remaining hits of account.(whitelisted a/c.) Now what I want is, if my app is using calls of particular a/c then I should get remaining hits of that a/c using OAuth. I am studying Abraham's code on github in that it gives particular user's info, but when I go for rate limit status url for Host like as: public $host = "http://twitter.com/account/rate_limit_status";; it gives result as: stdClass Object ( [request] => /account/rate_limit_statusaccount/verify_credentials.json?oauth_consumer_key =bTeyT1WTohdf7IT4JZ4iYg&oauth_nonce=8e7f694db22fead19d8833ab67430ca6&oauth_s ignature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1 &oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEc ezD2Pmn32pmc5O&oauth_version=1.0 [error] => Not found ) Am I going wrong way? Can you suggest me the right one? Thank you in advance. -- Abraham Williams | Developer for hire | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private.
[twitter-dev] Re: statuses/friends cursor parameter
Yes, I see the same issue with both: /:user/:list_id/members /:user/lists/memberships - Steve On 5月2日, 午前6:08, randomnoise wrote: > I've got the same problem, previous_cursor does not work on: > > http://dev.twitter.com/doc/get/statuses/friends > > and may also be broken on : > > http://dev.twitter.com/doc/get/:user/:list_id/members > > but seems to work on : > > http://dev.twitter.com/doc/get/statuses/followers > > Anyone know anything about this? > > - jr
RE: [twitter-dev] How would I get remaing hits using OAuth.
Ok. It is late and I didn't comprehend it the first time through. I'm understanding now. Thanks. -Dustin From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of srikanth reddy Sent: Tuesday, May 11, 2010 3:46 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] How would I get remaing hits using OAuth. As abraham pointed out you should use https://api.twitter.com/1/ to get 350/hr limit else it will be 150 (even for oauth) On Tue, May 11, 2010 at 1:48 PM, Dustin Lennon wrote: I was reading on this, I currently have an application that I'll be working on converting to OAuth from Basic Auth. My question is, is the Basic Auth method still limited to 150/hr rate limit? I ask because that is what my app currently returns when I send a request to account/rate_limit_status. -Dustin From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of srikanth reddy Sent: Tuesday, May 11, 2010 2:36 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] How would I get remaing hits using OAuth. Hmm isn't 'X-RateLimit-Remaining' header enough? why make additional call? On Mon, May 10, 2010 at 10:14 PM, Abraham Williams <4bra...@gmail.com> wrote: Look at your request "/account/rate_limit_statusaccount/verify_credentials.json". Notice how rate_limit_status and verify_credentials are both jammed together. It also looks like you are using an older version of TwitterOAuth. The newest version uses https://api.twitter.com/1/ as the host which gives you a rate limit of 350/hour instead of 150/hour. To get the rate_limit_status in the newest version call $connection->get('account/rate_limit_status'); Abraham On Mon, May 10, 2010 at 07:23, Rushikesh Bhanage wrote: Hi there, About my app - my app deals with showing user his followers information. So I need to check each follower to show result. Everything is going properly except one. While doing this I need to check API remaining hits of account.(whitelisted a/c.) Now what I want is, if my app is using calls of particular a/c then I should get remaining hits of that a/c using OAuth. I am studying Abraham's code on github in that it gives particular user's info, but when I go for rate limit status url for Host like as: public $host = "http://twitter.com/account/rate_limit_status";; it gives result as: stdClass Object ( [request] => /account/rate_limit_statusaccount/verify_credentials.json?oauth_consumer_key =bTeyT1WTohdf7IT4JZ4iYg&oauth_nonce=8e7f694db22fead19d8833ab67430ca6&oauth_s ignature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1 &oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEc ezD2Pmn32pmc5O&oauth_version=1.0 [error] => Not found ) Am I going wrong way? Can you suggest me the right one? Thank you in advance. -- Abraham Williams | Developer for hire | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private.
Re: [twitter-dev] How would I get remaing hits using OAuth.
As abraham pointed out you should use https://api.twitter.com/1/ to get 350/hr limit else it will be 150 (even for oauth) On Tue, May 11, 2010 at 1:48 PM, Dustin Lennon wrote: > I was reading on this, I currently have an application that I’ll be working > on converting to OAuth from Basic Auth. My question is, is the Basic Auth > method still limited to 150/hr rate limit? I ask because that is what my app > currently returns when I send a request to account/rate_limit_status. > > > > -Dustin > > > > *From:* twitter-development-talk@googlegroups.com [mailto: > twitter-development-t...@googlegroups.com] *On Behalf Of *srikanth reddy > *Sent:* Tuesday, May 11, 2010 2:36 AM > *To:* twitter-development-talk@googlegroups.com > *Subject:* Re: [twitter-dev] How would I get remaing hits using OAuth. > > > > Hmm isn't 'X-RateLimit-Remaining' header enough? why make additional call? > > On Mon, May 10, 2010 at 10:14 PM, Abraham Williams <4bra...@gmail.com> > wrote: > > Look at your request > "/account/rate_limit_statusaccount/verify_credentials.json". > Notice how rate_limit_status and verify_credentials are both jammed > together. > > > > It also looks like you are using an older version of TwitterOAuth. The > newest version uses https://api.twitter.com/1/ as the host which gives you > a rate limit of 350/hour instead of 150/hour. > > > > To get the rate_limit_status in the newest version call > $connection->get('account/rate_limit_status'); > > > > Abraham > > > > On Mon, May 10, 2010 at 07:23, Rushikesh Bhanage > wrote: > > > Hi there, > * About my app* - my app deals with showing user his followers > information. So I need to check each follower to show result. Everything is > going properly except one. While doing this I need to check API remaining > hits of account.(whitelisted a/c.) > Now what I want is, if my app is using calls of particular a/c then I > should get remaining hits of that a/c using OAuth. > I am studying Abraham's code on github in that it gives particular > user's info, but when I go for rate limit status url for Host like as: > public $host = "http://twitter.com/account/rate_limit_status";; > it gives result as: > stdClass Object > ( > [request] => > /account/rate_limit_statusaccount/verify_credentials.json?oauth_consumer_key=bTeyT1WTohdf7IT4JZ4iYg&oauth_nonce=8e7f694db22fead19d8833ab67430ca6&oauth_signature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEcezD2Pmn32pmc5O&oauth_version=1.0 > [error] => Not found > ) > > Am I going wrong way? Can you suggest me the right one? > > Thank you in advance. > > > > -- > Abraham Williams | Developer for hire | http://abrah.am > @abraham | http://projects.abrah.am | http://blog.abrah.am > This email is: [ ] shareable [x] ask first [ ] private. > > >
[twitter-dev] Re: Slow response to twitter updates for a third party app
On May 11, 4:45 am, John Kalucki wrote: > Now that we have a reasonable idea about what is transpiring, I'd > venture to say that the latency distribution will be widest between > about 6:30am to 10:30am PDT (13:30-17:30 UTC), and considerably less > so until perhaps 5pm PDT. The balance of the day should be OK. At Warblecamp on the weekend someone (@mario) mentioned it would be nice have a means of identifying (or at least being aware of) these sorts of issues. And given the size of twitter these days and the considerable usage of the API, there are so many variables that can impact on performance differently for every user that it can be difficult to know if a problem is isolated to your code or is affecting a wide population. So floating an idea to promote some further discussion and see if there is any interest, obvious issues with the approach, input, etc. Would it be worthwhile having an independent service that allowed developers to programmatically log their current API performance and issues? For those that use Rails I'm thinking something along the lines of rpm.newrelic but specifically twitter focussed. It could post any 5xx error responses as they occur and regularly ping details about the process usage (CPU utilization, RAM, etc.). In isolation they're not very useful stats, in aggregation they'd help identify specific areas suffering problems like "80% of our users in The Netherlands are currently experiencing severe latency issues" or system wide issues like a particular call failing, So would it be of any use? I'm not a consumer of the API anywhere near the scale of Twitterfeed and so I don't currently see the same requirement for such a service, I'm more inclined to believe if I have a problem it's almost always mine to deal with. The great thing about services like rpm.newrelic and hoptoad is that they give you actionable information, and while I think this would be an interesting technical challenge I wonder if it's actually providing users anything actionable. Thoughts? -- Glenn Gillen http://glenngillen.com/
RE: [twitter-dev] How would I get remaing hits using OAuth.
I was reading on this, I currently have an application that I'll be working on converting to OAuth from Basic Auth. My question is, is the Basic Auth method still limited to 150/hr rate limit? I ask because that is what my app currently returns when I send a request to account/rate_limit_status. -Dustin From: twitter-development-talk@googlegroups.com [mailto:twitter-development-t...@googlegroups.com] On Behalf Of srikanth reddy Sent: Tuesday, May 11, 2010 2:36 AM To: twitter-development-talk@googlegroups.com Subject: Re: [twitter-dev] How would I get remaing hits using OAuth. Hmm isn't 'X-RateLimit-Remaining' header enough? why make additional call? On Mon, May 10, 2010 at 10:14 PM, Abraham Williams <4bra...@gmail.com> wrote: Look at your request "/account/rate_limit_statusaccount/verify_credentials.json". Notice how rate_limit_status and verify_credentials are both jammed together. It also looks like you are using an older version of TwitterOAuth. The newest version uses https://api.twitter.com/1/ as the host which gives you a rate limit of 350/hour instead of 150/hour. To get the rate_limit_status in the newest version call $connection->get('account/rate_limit_status'); Abraham On Mon, May 10, 2010 at 07:23, Rushikesh Bhanage wrote: Hi there, About my app - my app deals with showing user his followers information. So I need to check each follower to show result. Everything is going properly except one. While doing this I need to check API remaining hits of account.(whitelisted a/c.) Now what I want is, if my app is using calls of particular a/c then I should get remaining hits of that a/c using OAuth. I am studying Abraham's code on github in that it gives particular user's info, but when I go for rate limit status url for Host like as: public $host = "http://twitter.com/account/rate_limit_status";; it gives result as: stdClass Object ( [request] => /account/rate_limit_statusaccount/verify_credentials.json?oauth_consumer_key =bTeyT1WTohdf7IT4JZ4iYg&oauth_nonce=8e7f694db22fead19d8833ab67430ca6&oauth_s ignature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1 &oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEc ezD2Pmn32pmc5O&oauth_version=1.0 [error] => Not found ) Am I going wrong way? Can you suggest me the right one? Thank you in advance. -- Abraham Williams | Developer for hire | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private.
Re: [twitter-dev] How would I get remaing hits using OAuth.
Hmm isn't 'X-RateLimit-Remaining' header enough? why make additional call? On Mon, May 10, 2010 at 10:14 PM, Abraham Williams <4bra...@gmail.com>wrote: > Look at your request > "/account/rate_limit_statusaccount/verify_credentials.json". > Notice how rate_limit_status and verify_credentials are both jammed > together. > > It also looks like you are using an older version of TwitterOAuth. The > newest version uses https://api.twitter.com/1/ as the host which gives you > a rate limit of 350/hour instead of 150/hour. > > To get the rate_limit_status in the newest version call > $connection->get('account/rate_limit_status'); > > Abraham > > On Mon, May 10, 2010 at 07:23, Rushikesh Bhanage > wrote: > >> >> Hi there, >> * About my app* - my app deals with showing user his followers >> information. So I need to check each follower to show result. Everything is >> going properly except one. While doing this I need to check API remaining >> hits of account.(whitelisted a/c.) >> Now what I want is, if my app is using calls of particular a/c then I >> should get remaining hits of that a/c using OAuth. >> I am studying Abraham's code on github in that it gives particular >> user's info, but when I go for rate limit status url for Host like as: >> public $host = "http://twitter.com/account/rate_limit_status";; >> it gives result as: >> stdClass Object >> ( >> [request] => >> /account/rate_limit_statusaccount/verify_credentials.json?oauth_consumer_key=bTeyT1WTohdf7IT4JZ4iYg&oauth_nonce=8e7f694db22fead19d8833ab67430ca6&oauth_signature=9BTlNg%2BePdvIENSxqd%2B6quZ5bms%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1273497259&oauth_token=113883944-6A9NCG9DCkZ0DpJnHzBxZCxPEcezD2Pmn32pmc5O&oauth_version=1.0 >> [error] => Not found >> ) >> >> Am I going wrong way? Can you suggest me the right one? >> >> Thank you in advance. >> >> > > > -- > Abraham Williams | Developer for hire | http://abrah.am > @abraham | http://projects.abrah.am | http://blog.abrah.am > This email is: [ ] shareable [x] ask first [ ] private. >