[twitter-dev] Problems with authentication [Java/Scala, Apache HttpClient]
Ive written a Twitter client library in Scala (a JVM-based object/functional language) that uses Apache HttpClient to connect to the Twitter servers, but now (while at a conference here in Munich) the Basic HTTP authentication fails with a 401 and no other error message that I can see. The HttpClient library *seems* to be sending the right information in the right headers, and I know the authentication credentials work because I can Curl to the page successfully. (This also means that the problem, obviously, isnt Twitters fault, at least as far as I can see.) If youve worked with the Twitter API from Apache HttpClient in Java, can you please ping me off-list? (Or, assuming the conversation isnt considered noise, on-list is fine, too.) I could use some ideas on how to successfully debug the problem Im having. One other question vis-à-vis authentication: for Basic authentication, should the realm be Twitter API (which is what Twitter sends back from a successful Curl invocation), or should it be nothing at all? Ive seen examples that do both, and would like to do the right thing, whatever that is. (It seems to make no difference with my authentication woes, either way.) Thanks! Ted Neward Java, .NET, XML Services Consulting, Teaching, Speaking, Writing http://www.tedneward.com http://www.tedneward.com
[twitter-dev] Re: Retrieving infomation from twitter search api
I'm not sure. The code is basically what i put with it getting some other data like the date, link. All seems fine except this ommitting content problem. Even when i change to event.toString() in place of asCharacters(), it still ommits out the information so it should not be due to asCharacters() right? Sorry, I'm still very new to all these Java, hoping someone could help enlighten me.
[twitter-dev] Re: direct messages to lists
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marcus Better wrote: So, a tweet by user X, directed to a list L, Sorry, that didn't make sense. Let's try again: A tweet by user X directed to list L (of which X is a member), shows up in the timeline of L, but not in the friends_timeline of any followers of X. Cheers, Marcus -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkr6cwIACgkQXjXn6TzcAQmWPwCeK7kk7rHpQSH05jlwFZ3KbVQO dOkAoLXgNfIXer76zWkK7znFKcjPL0Ac =UOdg -END PGP SIGNATURE-
[twitter-dev] Re: Retrieving infomation from twitter search api
What does the RAW XML response look like? Reduce variables. Examine your inputs. ∞ Andy Badera ∞ +1 518-641-1280 Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Wed, Nov 11, 2009 at 1:15 AM, pipigu85 pipig...@gmail.com wrote: I'm not sure. The code is basically what i put with it getting some other data like the date, link. All seems fine except this ommitting content problem. Even when i change to event.toString() in place of asCharacters(), it still ommits out the information so it should not be due to asCharacters() right? Sorry, I'm still very new to all these Java, hoping someone could help enlighten me.
[twitter-dev] Re: the new retweet feature might break my app
oh... that's cool :) Thanks i really got wםrried for a sec On Nov 11, 5:08 pm, Walter Smulders walter.smuld...@gmail.com wrote: With the retweet function the status text will still be prefixed with RT On Nov 11, 11:59 am, Yaniv Golan yango2...@walla.co.il wrote: Hi I'm using twitter search API to search statuses with retweet expressions (e.g RT VIA) with the link filter i search the documentation over and over but i can't find any solution to what will happen after the retweet will rollout completely (the retweet expressions as we knew them will disappear and there is no other API method to much my search criteria) what should i do to get all the retweets that contains links? thanks
[twitter-dev] Re: the new retweet feature might break my app
and now i hear from someone who already has the new RT that statuses aren't prefixed! so are they or aren't they prefixed? I'd love to get formal answer or reference to formal info on this On Nov 11, 6:58 pm, Yaniv Golan stu...@yanivgolan.com wrote: oh... that's cool :) Thanks i really got wםrried for a sec On Nov 11, 5:08 pm, Walter Smulders walter.smuld...@gmail.com wrote: With the retweet function the status text will still be prefixed with RT On Nov 11, 11:59 am, Yaniv Golan yango2...@walla.co.il wrote: Hi I'm using twitter search API to search statuses with retweet expressions (e.g RT VIA) with the link filter i search the documentation over and over but i can't find any solution to what will happen after the retweet will rollout completely (the retweet expressions as we knew them will disappear and there is no other API method to much my search criteria) what should i do to get all the retweets that contains links? thanks
[twitter-dev] Re: the new retweet feature might break my app
Retweets do not modify the original text in any way. There is no RT to search upon. There is a feed of all public retweets on the Streaming API, but it is not generally available. Instead, you can request a sample of all statuses and filter for those that are retweets. -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Nov 11, 8:58 am, Yaniv Golan stu...@yanivgolan.com wrote: oh... that's cool :) Thanks i really got wםrried for a sec On Nov 11, 5:08 pm, Walter Smulders walter.smuld...@gmail.com wrote: With the retweet function the status text will still be prefixed with RT On Nov 11, 11:59 am, Yaniv Golan yango2...@walla.co.il wrote: Hi I'm using twitter search API to search statuses with retweet expressions (e.g RT VIA) with the link filter i search the documentation over and over but i can't find any solution to what will happen after the retweet will rollout completely (the retweet expressions as we knew them will disappear and there is no other API method to much my search criteria) what should i do to get all the retweets that contains links? thanks
[twitter-dev] Re: the new retweet feature might break my app
Thanks John, this means that my app won't work anymore! streaming api makes my life very hard hence i need to search for links and then extract them, this is very resource demanding to do on the fly while with search API i can search then extract and then search again i could use queue system but then again i will lose all the real time fun will there be a filter in the search api for retweets like there is for links? that could solve all my problems On Nov 11, 7:22 pm, John Kalucki jkalu...@gmail.com wrote: Retweets do not modify the original text in any way. There is no RT to search upon. There is a feed of all public retweets on the Streaming API, but it is not generally available. Instead, you can request a sample of all statuses and filter for those that are retweets. -John Kaluckihttp://twitter.com/jkalucki Services, Twitter Inc. On Nov 11, 8:58 am, Yaniv Golan stu...@yanivgolan.com wrote: oh... that's cool :) Thanks i really got wםrried for a sec On Nov 11, 5:08 pm, Walter Smulders walter.smuld...@gmail.com wrote: With the retweet function the status text will still be prefixed with RT On Nov 11, 11:59 am, Yaniv Golan yango2...@walla.co.il wrote: Hi I'm using twitter search API to search statuses with retweet expressions (e.g RT VIA) with the link filter i search the documentation over and over but i can't find any solution to what will happen after the retweet will rollout completely (the retweet expressions as we knew them will disappear and there is no other API method to much my search criteria) what should i do to get all the retweets that contains links? thanks
[twitter-dev] Re: the new retweet feature might break my app
Search is aware of the need for a retweet operator, but the feature is unscheduled and completely speculative. In any case, Search will become less useful for this sort of repetitive complete corpus search. If you need all of something, or a sample of something, you should be moving to the Streaming API wherever possible. -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Nov 11, 9:39 am, Yaniv Golan stu...@yanivgolan.com wrote: Thanks John, this means that my app won't work anymore! streaming api makes my life very hard hence i need to search for links and then extract them, this is very resource demanding to do on the fly while with search API i can search then extract and then search again i could use queue system but then again i will lose all the real time fun will there be a filter in the search api for retweets like there is for links? that could solve all my problems On Nov 11, 7:22 pm, John Kalucki jkalu...@gmail.com wrote: Retweets do not modify the original text in any way. There is no RT to search upon. There is a feed of all public retweets on the Streaming API, but it is not generally available. Instead, you can request a sample of all statuses and filter for those that are retweets. -John Kaluckihttp://twitter.com/jkalucki Services, Twitter Inc. On Nov 11, 8:58 am, Yaniv Golan stu...@yanivgolan.com wrote: oh... that's cool :) Thanks i really got wםrried for a sec On Nov 11, 5:08 pm, Walter Smulders walter.smuld...@gmail.com wrote: With the retweet function the status text will still be prefixed with RT On Nov 11, 11:59 am, Yaniv Golan yango2...@walla.co.il wrote: Hi I'm using twitter search API to search statuses with retweet expressions (e.g RT VIA) with the link filter i search the documentation over and over but i can't find any solution to what will happen after the retweet will rollout completely (the retweet expressions as we knew them will disappear and there is no other API method to much my search criteria) what should i do to get all the retweets that contains links? thanks
[twitter-dev] Weird Twitter Search Behaviour
Twitter programmer crew;what is the logic behind that my hashtags arent showing in search results and others' do. My tweets arent protected. My account is ZN_Moment.
[twitter-dev] OAuth success but getting intermittent 500 Internal Server Error requesting access token
Hi All, I've been getting a high number of 500 errors (about 50% of the time yesterday) after user authenticated via oauth, and I try to get the access token from twitter. The weird thing is that the error is not consistent, and the exact same code/setup works about half the time, with the same test user acocunt. I'm using the ruby oauth gem and here's the error it returns 500 Internal Server Error /usr/lib/ruby/1.8/net/http.rb:2097:in `error!' [RAILS_ROOT]/vendor/gems/oauth-0.3.5/lib/oauth/consumer.rb:199:in `token_request' [RAILS_ROOT]/vendor/gems/oauth-0.3.5/lib/oauth/tokens/request_token.rb:18:in `get_access_token' Any idea what could be causing this? Thanks, much appreciated! Yu-Shan -- “When nothing seems to help, I go look at a stonecutter hammering away at his rock perhaps a hundred times without as much as a crack showing in it. Yet at the hundred and first blow it will split in two, and I know it was not that blow that did it, but all that had gone before.” — Jacob Riis
[twitter-dev] Re: Weird Twitter Search Behaviour
http://help.twitter.com/forums/10713/entries/42646 On Nov 11, 9:54 am, Zehra Nasif zehra.na...@gmail.com wrote: Twitter programmer crew;what is the logic behind that my hashtags arent showing in search results and others' do. My tweets arent protected. My account is ZN_Moment.
[twitter-dev] Re: /statuses/retweets_of_me resource does not have the retweet_status element
I believe in this case the documentation is just incorrect. The status timeline of retweets_of_me is my original tweets that have been retweeted. I'll update the docs to reflect that. On Tue, Nov 10, 2009 at 7:11 PM, Michael Ivey (@ivey) michael.i...@gmail.com wrote: Marcel, et al I'm working on bringing our Retweet-commerce tools up to date with the new RTs, now that they're rolling out, and we've got an issue. /statuses/retweets_of_me is returning just the statuses, without a retweet_status element to tell me who did the retweet. Is this a doc issue, or a bug? -- Marcel Molina Twitter Platform Team http://twitter.com/noradio
[twitter-dev] Re: GET list members/subscribers - variant that returns ids only?
This has been brought up before and is on the list of things to implement. Thanks for the suggestion. On Wed, Nov 11, 2009 at 12:11 AM, Steve Farrell st...@farrell.org wrote: The social graph methods that return a list of ids are very simple and efficient. For example: http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-friends%C2%A0ids. Are there plans for offering analogous queries for Lists? The existing functions for paging through user *objects* using cursors is considerably less efficient when you simply are looking for ids. Thanks! -- Marcel Molina Twitter Platform Team http://twitter.com/noradio
[twitter-dev] Re: /statuses/retweets_of_me resource does not have the retweet_status element
Hmm. So if /statuses/retweets only shows the first 100 retweets, and /statuses/retweets_of_me doesn't show who did the retweeting, there's no way to see everyone who retweeted a popular message? That's a pretty big problem for us. Are there ways to lift the 100 limit on /statuses/retweets? John, is the retweets streaming resource filterable by ID? -- ivey On Wed, Nov 11, 2009 at 12:56 PM, Marcel Molina mar...@twitter.com wrote: I believe in this case the documentation is just incorrect. The status timeline of retweets_of_me is my original tweets that have been retweeted. I'll update the docs to reflect that. On Tue, Nov 10, 2009 at 7:11 PM, Michael Ivey (@ivey) michael.i...@gmail.com wrote: Marcel, et al I'm working on bringing our Retweet-commerce tools up to date with the new RTs, now that they're rolling out, and we've got an issue. /statuses/retweets_of_me is returning just the statuses, without a retweet_status element to tell me who did the retweet. Is this a doc issue, or a bug? -- Marcel Molina Twitter Platform Team http://twitter.com/noradio
[twitter-dev] Re: GET list members/subscribers - variant that returns ids only?
That's great news! An analogous request: how about getting a set of list ids instead of list objects for subscriptions/memberships? On Nov 11, 11:18 am, Marcel Molina mar...@twitter.com wrote: This has been brought up before and is on the list of things to implement. Thanks for the suggestion. On Wed, Nov 11, 2009 at 12:11 AM, Steve Farrell st...@farrell.org wrote: The social graph methods that return a list of ids are very simple and efficient. For example:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-friends%C2%A0ids. Are there plans for offering analogous queries for Lists? The existing functions for paging through user *objects* using cursors is considerably less efficient when you simply are looking for ids. Thanks! -- Marcel Molina Twitter Platform Teamhttp://twitter.com/noradio
[twitter-dev] Re: Weird Twitter Search Behaviour
I am aware of the http://bit.ly/5Emmc I think there is a bug in Twitter search algorithm. Please see my latest tweets -- Well, if @shitmydadsays is not being filtered by Twitter geniuses, WTF are they looking for to filter? I am ANNOYED as hell. about 1 hour ago from web hmmm...Chances are that your account has been filtered by our search metrics http://help.twitter.com/for... about 1 hour ago from web Twitter programmer crew;what is the logic behind that my hashtags arent showing in search results and others' do. My tweets arent protected about 1 hour ago from web @ammaryasir they are not protected. about 1 hour ago from TweetDeck in reply to ammaryasir @ammaryasir Thanks! I just CANT believe how this can happen. Your twit showed up in the search, but still not mine. about 1 hour ago from web in reply to ammaryasir #UniverseDontFreakingTestMeNOW!!! about 1 hour ago from web @ammaryasir hey ammar, can you please give me a favor and twit #better2012movietitles . I am curious whether it will come up in search. about 1 hour ago from web in reply to ammaryasir WTF! Why my #better2012movietitles are not in the search results? As a programmer, this does not make any sense to me. about 2 hours ago from TweetDeck #better2012movietitles about 2 hours ago from web Universe is working against me Today. Why my #better2012movietitles tweets are not showing in search? @mostlybob 's twits are showing . about 2 hours ago from TweetDeck I wont be missing a good action RT @jamerz3294: Bad Science, Lame Movie ...that's my entry and I'm sticking to it ;) #better2012movietitles about 2 hours ago from web Is it me or Twitter hashtag search is not wroking right? #better2012movietitles search is not returning my twits. about 2 hours ago from web The Higgs Hell #better2012movietitles about 2 hours ago from web When The LHC Finally Worked #better2012movietitles about 2 hours ago from web On Nov 11, 1:36 pm, John Kalucki jkalu...@gmail.com wrote: http://help.twitter.com/forums/10713/entries/42646 On Nov 11, 9:54 am, Zehra Nasif zehra.na...@gmail.com wrote: Twitter programmer crew;what is the logic behind that my hashtags arent showing in search results and others' do. My tweets arent protected. My account is ZN_Moment.
[twitter-dev] Re: GET list members/subscribers - variant that returns ids only?
Yup. Ids everywhere of everything! On Wed, Nov 11, 2009 at 11:23 AM, Steve Farrell st...@farrell.org wrote: That's great news! An analogous request: how about getting a set of list ids instead of list objects for subscriptions/memberships? On Nov 11, 11:18 am, Marcel Molina mar...@twitter.com wrote: This has been brought up before and is on the list of things to implement. Thanks for the suggestion. On Wed, Nov 11, 2009 at 12:11 AM, Steve Farrell st...@farrell.org wrote: The social graph methods that return a list of ids are very simple and efficient. For example:http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-friends%C2%A0ids. Are there plans for offering analogous queries for Lists? The existing functions for paging through user *objects* using cursors is considerably less efficient when you simply are looking for ids. Thanks! -- Marcel Molina Twitter Platform Teamhttp://twitter.com/noradio -- Marcel Molina Twitter Platform Team http://twitter.com/noradio
[twitter-dev] Re: Weird Twitter Search Behaviour
Contact support, all of your statuses are excluded from Search. All seems well and correct at first glance. On Nov 11, 10:57 am, Zehra Nasif zehra.na...@gmail.com wrote: I am aware of thehttp://bit.ly/5EmmcI think there is a bug in Twitter search algorithm. Please see my latest tweets -- Well, if @shitmydadsays is not being filtered by Twitter geniuses, WTF are they looking for to filter? I am ANNOYED as hell. about 1 hour ago from web hmmm...Chances are that your account has been filtered by our search metricshttp://help.twitter.com/for... about 1 hour ago from web Twitter programmer crew;what is the logic behind that my hashtags arent showing in search results and others' do. My tweets arent protected about 1 hour ago from web @ammaryasir they are not protected. about 1 hour ago from TweetDeck in reply to ammaryasir @ammaryasir Thanks! I just CANT believe how this can happen. Your twit showed up in the search, but still not mine. about 1 hour ago from web in reply to ammaryasir #UniverseDontFreakingTestMeNOW!!! about 1 hour ago from web @ammaryasir hey ammar, can you please give me a favor and twit #better2012movietitles . I am curious whether it will come up in search. about 1 hour ago from web in reply to ammaryasir WTF! Why my #better2012movietitles are not in the search results? As a programmer, this does not make any sense to me. about 2 hours ago from TweetDeck #better2012movietitles about 2 hours ago from web Universe is working against me Today. Why my #better2012movietitles tweets are not showing in search? @mostlybob 's twits are showing . about 2 hours ago from TweetDeck I wont be missing a good action RT @jamerz3294: Bad Science, Lame Movie ...that's my entry and I'm sticking to it ;) #better2012movietitles about 2 hours ago from web Is it me or Twitter hashtag search is not wroking right? #better2012movietitles search is not returning my twits. about 2 hours ago from web The Higgs Hell #better2012movietitles about 2 hours ago from web When The LHC Finally Worked #better2012movietitles about 2 hours ago from web On Nov 11, 1:36 pm, John Kalucki jkalu...@gmail.com wrote: http://help.twitter.com/forums/10713/entries/42646 On Nov 11, 9:54 am, Zehra Nasif zehra.na...@gmail.com wrote: Twitter programmer crew;what is the logic behind that my hashtags arent showing in search results and others' do. My tweets arent protected. My account is ZN_Moment.
[twitter-dev] Re: MGTwitterEngine - anyone added list support yet?
I give mgtwitterengine credit for being there (was there for me in a snap once) and being there first for cocoa devs to drop in, but there are some nasties to it. It's async callback/delegate pattern is odd (try supporting multiple accounts with it and you understand quickly that you don't where the data is coming from because there is no handle back to the account). Twitter's api isn't overly complicated so it's easy enough to roll your own API wrapper, which is what did in my own project. Zac Bowling @zbowling On Nov 10, 2009 3:01 PM, Tim Haines tmhai...@gmail.com wrote: Hey guys, Has anyone added list support to @mattgemmell's MGTwitterEngine yet? Cheers, Tim.
[twitter-dev] Re: MGTwitterEngine - anyone added list support yet?
Hey Zac, That's what I decided to do too. Interested in your point of concern given as an example though. MGTwitterEngine gives you a UUID for each request right? So you should be dropping those into an array for your tracking purposes so you know where they came from and what for (and which account), and then respond appropriately? One of the things I didn't like about it is that I couldn't find an easy way to gain access to the response body if an error occurs. I realized the subset of API calls I need is so small that I should just roll my own anyway though.. Tim. On Thu, Nov 12, 2009 at 10:26 AM, Zac Bowling zbowl...@gmail.com wrote: I give mgtwitterengine credit for being there (was there for me in a snap once) and being there first for cocoa devs to drop in, but there are some nasties to it. It's async callback/delegate pattern is odd (try supporting multiple accounts with it and you understand quickly that you don't where the data is coming from because there is no handle back to the account). Twitter's api isn't overly complicated so it's easy enough to roll your own API wrapper, which is what did in my own project. Zac Bowling @zbowling On Nov 10, 2009 3:01 PM, Tim Haines tmhai...@gmail.com wrote: Hey guys, Has anyone added list support to @mattgemmell's MGTwitterEngine yet? Cheers, Tim.
[twitter-dev] Re: MGTwitterEngine - anyone added list support yet?
My opinions are more from using an older version of it and things may have changed in the last few months. They never used to give a source (an object handle or ID or anything that could hold on too) that gave you and idea of the account the data was coming from to your callback delegate (made very difficult to support multiple accounts). I'm recalling this from memory, but there was also a dictionary at its core IIRC that was tracking things by string rather then just giving me an object pointer that I could hold on too that really bothered me. Too long ago and to many brain cells spent since then to remember exactly that issue. :-) It also was written before Objective-C 2.0 ;-) Zac Bowling @zbowling On Wed, Nov 11, 2009 at 1:35 PM, Tim Haines tmhai...@gmail.com wrote: Hey Zac, That's what I decided to do too. Interested in your point of concern given as an example though. MGTwitterEngine gives you a UUID for each request right? So you should be dropping those into an array for your tracking purposes so you know where they came from and what for (and which account), and then respond appropriately? One of the things I didn't like about it is that I couldn't find an easy way to gain access to the response body if an error occurs. I realized the subset of API calls I need is so small that I should just roll my own anyway though.. Tim. On Thu, Nov 12, 2009 at 10:26 AM, Zac Bowling zbowl...@gmail.com wrote: I give mgtwitterengine credit for being there (was there for me in a snap once) and being there first for cocoa devs to drop in, but there are some nasties to it. It's async callback/delegate pattern is odd (try supporting multiple accounts with it and you understand quickly that you don't where the data is coming from because there is no handle back to the account). Twitter's api isn't overly complicated so it's easy enough to roll your own API wrapper, which is what did in my own project. Zac Bowling @zbowling On Nov 10, 2009 3:01 PM, Tim Haines tmhai...@gmail.com wrote: Hey guys, Has anyone added list support to @mattgemmell's MGTwitterEngine yet? Cheers, Tim.
[twitter-dev] Re: OAuth success but getting intermittent 500 Internal Server Error requesting access token
Getting the same thing, 500's from access token requests. This is affecting all of our new users. Any insight would be lovely! Sean Ping.fm On Nov 11, 12:29 pm, Yu-Shan Fung ambivale...@gmail.com wrote: Hi All, I've been getting a high number of 500 errors (about 50% of the time yesterday) after user authenticated via oauth, and I try to get the access token from twitter. The weird thing is that the error is not consistent, and the exact same code/setup works about half the time, with the same test user acocunt. I'm using the ruby oauth gem and here's the error it returns 500 Internal Server Error /usr/lib/ruby/1.8/net/http.rb:2097:in `error!' [RAILS_ROOT]/vendor/gems/oauth-0.3.5/lib/oauth/consumer.rb:199:in `token_request' [RAILS_ROOT]/vendor/gems/oauth-0.3.5/lib/oauth/tokens/request_token.rb:18:in `get_access_token' Any idea what could be causing this? Thanks, much appreciated! Yu-Shan -- “When nothing seems to help, I go look at a stonecutter hammering away at his rock perhaps a hundred times without as much as a crack showing in it. Yet at the hundred and first blow it will split in two, and I know it was not that blow that did it, but all that had gone before.” — Jacob Riis
[twitter-dev] Streaming apis for follows/following?
Hey, Have you guys given any thought to a streaming api for follows/ following? So, specifically, you'd name a set of people (or get a firehose), and you'd get pushed a notification in real time every time a one of those users follows / is followed? Of course, one could generalize such a feature to include any events, including list events, attribute changes (updating user description text), etc.
[twitter-dev] Re: OAuth success but getting intermittent 500 Internal Server Error requesting access token
We're looking into the 500s on oAuth requests. -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Nov 11, 3:39 pm, Sean rag...@gmail.com wrote: Getting the same thing, 500's from access token requests. This is affecting all of our new users. Any insight would be lovely! Sean Ping.fm On Nov 11, 12:29 pm, Yu-Shan Fung ambivale...@gmail.com wrote: Hi All, I've been getting a high number of 500 errors (about 50% of the time yesterday) after user authenticated via oauth, and I try to get the access token from twitter. The weird thing is that the error is not consistent, and the exact same code/setup works about half the time, with the same test user acocunt. I'm using the ruby oauth gem and here's the error it returns 500 Internal Server Error /usr/lib/ruby/1.8/net/http.rb:2097:in `error!' [RAILS_ROOT]/vendor/gems/oauth-0.3.5/lib/oauth/consumer.rb:199:in `token_request' [RAILS_ROOT]/vendor/gems/oauth-0.3.5/lib/oauth/tokens/request_token.rb:18:in `get_access_token' Any idea what could be causing this? Thanks, much appreciated! Yu-Shan -- “When nothing seems to help, I go look at a stonecutter hammering away at his rock perhaps a hundred times without as much as a crack showing in it. Yet at the hundred and first blow it will split in two, and I know it was not that blow that did it, but all that had gone before.” — Jacob Riis
[twitter-dev] Getting protected user followers
Hi folks, I own @unfollowr bot and it needs to get its followers followers by social graph methods, but some users have protected updates and twitter gives me 401 error. I don't understand why do I can view user followers on the web and can't do that via api call? User followers are public anyway. So maybe there's way to request user for getting his followers and statuses _without_ following him? Afair, currently requst automatically adds user to my followers. I don't need such behavior. Thanks for any feedback and sorry for my English.
[twitter-dev] Re: Streaming apis for follows/following?
We've thought about it, scoped it, and been careful to build various components in such a way to eventually trivially support streaming social graph changes over the Streaming API. This data would probably lead to very interesting things, and we're excited about the possibilities. But, social graph changes are not the highest priority item at the moment, other items must come first. -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Nov 11, 3:43 pm, Steve Farrell st...@farrell.org wrote: Hey, Have you guys given any thought to a streaming api for follows/ following? So, specifically, you'd name a set of people (or get a firehose), and you'd get pushed a notification in real time every time a one of those users follows / is followed? Of course, one could generalize such a feature to include any events, including list events, attribute changes (updating user description text), etc.
[twitter-dev] Twitter message with html entities get truncated
I store my content in a MySQL database. The website is using PHP. Data fields are encoded so that html tags are using entities; i.e. p = lt;pgt; When I query the database I decode the entities, and then strip the tags. That works fine. But some entities don't get converted. So nbsp; causes a problem for a cURL message. The message is truncated at the ampersand. So I did a string replace where nbsp; becomes a space. So that solved one problem. But ampersand is still a problem. Neither amp; or simply work. The both result in a truncated message. A string replace of amp; with 'and' seems to work. But is kind of weird. I have also tried utf8_encode($message) but I don't see any difference in the output or the result with the API. All of the API help and samples I have seen use a very simple message example. I have not seen any help on how to format the actual message. I saw some where that it should be UTF-8. Mostly the messages are plain text, but these two characters cause problems. So do quotes and single quotes as far as that goes. If I add slashes the slashes come through in the final message. Is there any real help for these problems?
[twitter-dev] Re: Retrieving infomation from twitter search api
the raw file is in atom format and looks like this: entry idtag:search.twitter.com,2005:5607828675/id published2009-11-11T02:43:13Z/published link type=text/html href=http://twitter.com/green_stormroqr/ statuses/5607828675 rel=alternate/ titlejust voted quot;Selena Gomezquot; on quot;Who's your favorite Disney star?quot;! Vote now #10148; http://bit.ly/o2wGh/title content type=htmljust voted amp;quot;Selena Gomezamp;quot; on amp;quot;Whoamp;apos;s your favorite lt;bgt;Disneylt;/bgt; star? amp;quot;! Vote now #10148; lt;a href=quot;http://bit.ly/ o2wGhquot;gt;http://bit.ly/o2wGhlt;/agt;/content updated2009-11-11T02:43:13Z/updated link type=image/png href=http://a3.twimg.com/profile_images/ 467518411/061403-1wt_normal.jpg rel=image/ twitter:geo /twitter:geo twitter:sourcelt;a href=quot;http://lolquiz.comquot; rel=quot;nofollowquot;gt;LOL quizlt;/agt;/twitter:source twitter:langen/twitter:lang author namegreen_stormroqr (stormie verrett)/name urihttp://twitter.com/green_stormroqr/uri /author /entry On Nov 12, 12:37 am, Andrew Badera and...@badera.us wrote: What does the RAW XML response look like? Reduce variables. Examine your inputs. ∞ Andy Badera ∞ +1 518-641-1280+1 518-641-1280Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me:http://www.google.com/search?q=andrew%20badera On Wed, Nov 11, 2009 at 1:15 AM, pipigu85 pipig...@gmail.com wrote: I'm not sure. The code is basically what i put with it getting some other data like the date, link. All seems fine except this ommitting content problem. Even when i change to event.toString() in place of asCharacters(), it still ommits out the information so it should not be due to asCharacters() right? Sorry, I'm still very new to all these Java, hoping someone could help enlighten me.- Hide quoted text - - Show quoted text -
[twitter-dev] Re: Retrieving infomation from twitter search api
So, is the message complete in the raw XML response but not after the Java toCharacters() call? ∞ Andy Badera ∞ +1 518-641-1280 Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Wed, Nov 11, 2009 at 7:35 PM, pipigu85 pipig...@gmail.com wrote: the raw file is in atom format and looks like this: entry idtag:search.twitter.com,2005:5607828675/id published2009-11-11T02:43:13Z/published link type=text/html href=http://twitter.com/green_stormroqr/ statuses/5607828675 rel=alternate/ titlejust voted quot;Selena Gomezquot; on quot;Who's your favorite Disney star?quot;! Vote now #10148; http://bit.ly/o2wGh/title content type=htmljust voted amp;quot;Selena Gomezamp;quot; on amp;quot;Whoamp;apos;s your favorite lt;bgt;Disneylt;/bgt; star? amp;quot;! Vote now #10148; lt;a href=quot;http://bit.ly/ o2wGhquot;gt;http://bit.ly/o2wGhlt;/agt;/content updated2009-11-11T02:43:13Z/updated link type=image/png href=http://a3.twimg.com/profile_images/ 467518411/061403-1wt_normal.jpg rel=image/ twitter:geo /twitter:geo twitter:sourcelt;a href=quot;http://lolquiz.comquot; rel=quot;nofollowquot;gt;LOL quizlt;/agt;/twitter:source twitter:langen/twitter:lang author namegreen_stormroqr (stormie verrett)/name urihttp://twitter.com/green_stormroqr/uri /author /entry On Nov 12, 12:37 am, Andrew Badera and...@badera.us wrote: What does the RAW XML response look like? Reduce variables. Examine your inputs. ∞ Andy Badera ∞ +1 518-641-1280+1 518-641-1280Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me:http://www.google.com/search?q=andrew%20badera On Wed, Nov 11, 2009 at 1:15 AM, pipigu85 pipig...@gmail.com wrote: I'm not sure. The code is basically what i put with it getting some other data like the date, link. All seems fine except this ommitting content problem. Even when i change to event.toString() in place of asCharacters(), it still ommits out the information so it should not be due to asCharacters() right? Sorry, I'm still very new to all these Java, hoping someone could help enlighten me.- Hide quoted text - - Show quoted text -
[twitter-dev] Re: Retrieving infomation from twitter search api
Yes so was thinking something went wrong with the code that results in it ommitting out those response with the double quotation Tried to print out the items retrieved. When i reach here while (eventReader.hasNext()) { XMLEvent event = eventReader.nextEvent(); Tried System.out.println(event); the full content can still be seen. But when i reach here: if (event.isStartElement()) { StartElement startElement = event.asStartElement(); The sentences with the double quotation seems to have disappeared. On Nov 12, 8:44 am, Andrew Badera and...@badera.us wrote: So, is the message complete in the raw XML response but not after the Java toCharacters() call? ∞ Andy Badera ∞ +1 518-641-1280 Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me:http://www.google.com/search?q=andrew%20badera On Wed, Nov 11, 2009 at 7:35 PM, pipigu85 pipig...@gmail.com wrote: the raw file is in atom format and looks like this: entry idtag:search.twitter.com,2005:5607828675/id published2009-11-11T02:43:13Z/published link type=text/html href=http://twitter.com/green_stormroqr/ statuses/5607828675 rel=alternate/ titlejust voted quot;Selena Gomezquot; on quot;Who's your favorite Disney star?quot;! Vote now #10148;http://bit.ly/o2wGh/title content type=htmljust voted amp;quot;Selena Gomezamp;quot; on amp;quot;Whoamp;apos;s your favorite lt;bgt;Disneylt;/bgt; star? amp;quot;! Vote now #10148; lt;a href=quot;http://bit.ly/ o2wGhquot;gt;http://bit.ly/o2wGh/a/content updated2009-11-11T02:43:13Z/updated link type=image/png href=http://a3.twimg.com/profile_images/ 467518411/061403-1wt_normal.jpg rel=image/ twitter:geo /twitter:geo twitter:sourcelt;a href=quot;http://lolquiz.com; rel=quot;nofollowquot;gt;LOL quizlt;/agt;/twitter:source twitter:langen/twitter:lang author namegreen_stormroqr (stormie verrett)/name urihttp://twitter.com/green_stormroqr/uri /author /entry On Nov 12, 12:37 am, Andrew Badera and...@badera.us wrote: What does the RAW XML response look like? Reduce variables. Examine your inputs. ∞ Andy Badera ∞ +1 518-641-1280+1 518-641-1280Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me:http://www.google.com/search?q=andrew%20badera On Wed, Nov 11, 2009 at 1:15 AM, pipigu85 pipig...@gmail.com wrote: I'm not sure. The code is basically what i put with it getting some other data like the date, link. All seems fine except this ommitting content problem. Even when i change to event.toString() in place of asCharacters(), it still ommits out the information so it should not be due to asCharacters() right? Sorry, I'm still very new to all these Java, hoping someone could help enlighten me.- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text -
[twitter-dev] Re: OAuth success but getting intermittent 500 Internal Server Error requesting access token
We have identified the issue and deployed a fix. Please let us know if you continue to see high error rates on oauth URLs. ---Mark On Wed, Nov 11, 2009 at 3:54 PM, John Kalucki jkalu...@gmail.com wrote: We're looking into the 500s on oAuth requests. -John Kalucki http://twitter.com/jkalucki Services, Twitter Inc. On Nov 11, 3:39 pm, Sean rag...@gmail.com wrote: Getting the same thing, 500's from access token requests. This is affecting all of our new users. Any insight would be lovely! Sean Ping.fm On Nov 11, 12:29 pm, Yu-Shan Fung ambivale...@gmail.com wrote: Hi All, I've been getting a high number of 500 errors (about 50% of the time yesterday) after user authenticated via oauth, and I try to get the access token from twitter. The weird thing is that the error is not consistent, and the exact same code/setup works about half the time, with the same test user acocunt. I'm using the ruby oauth gem and here's the error it returns 500 Internal Server Error /usr/lib/ruby/1.8/net/http.rb:2097:in `error!' [RAILS_ROOT]/vendor/gems/oauth-0.3.5/lib/oauth/consumer.rb:199:in `token_request' [RAILS_ROOT]/vendor/gems/oauth-0.3.5/lib/oauth/tokens/request_token.rb:18:in `get_access_token' Any idea what could be causing this? Thanks, much appreciated! Yu-Shan -- “When nothing seems to help, I go look at a stonecutter hammering away at his rock perhaps a hundred times without as much as a crack showing in it. Yet at the hundred and first blow it will split in two, and I know it was not that blow that did it, but all that had gone before.” — Jacob Riis
[twitter-dev] Re: Since_ID and Search Problem
I've been seeing this problem for the last couple of weeks too. I thought I was going crazy. Most of the time when I do a search with since_id, it returns zero results. My searches always include to:screenname in addition to since_id. For example: With since_id: curl http://api.twitter.com/1/search.json? since_id=5627135528q=to%3APogue result: { results: [], max_id: 5637056671, since_id: 5627135528, refresh_url: ?since_id=5637056671q=to%3APogue, results_per_page: 15, page: 1, completed_in: 0.012596, query: to%3APogue } Without since_id: curl http://api.twitter.com/1/search.json?q=to %3APogue (notice that the ids are higher than the since_id I passed in): result: { results: [{ profile_image_url: http://a3.twimg.com/profile_images/ 351653493/IMG_7001_normal.JPG, created_at: Thu, 12 Nov 2009 03:52:08 +, from_user: timstratton, to_user_id: 2053065, text: @Pogue You have seen this right ? http://twitter.com/big_ben_clock, I have been laughing all day. Odd though, wife does not agree at all., id: 5639849021, from_user_id: 5772395, to_user: pogue, geo: null, iso_language_code: en, source: lt;a href=quot;http://twitter.com/ quot;gt;weblt;/agt; }, { profile_image_url: http://a3.twimg.com/profile_images/ 242892621/Jombi_Ambigram_Square_normal.jpg, created_at: Thu, 12 Nov 2009 03:32:15 +, from_user: JombiDotNet, to_user_id: 2053065, text: @Pogue Google Suggest and Sociology http://www.slate.com/id/2234019;, id: 5639382121, from_user_id: 30310966, to_user: pogue, geo: null, iso_language_code: fr, source: lt;a href=quot;http://twitter.com/ quot;gt;weblt;/agt; }, { profile_image_url: http://a1.twimg.com/profile_images/ 335299002/IMG_0030_normal.JPG, created_at: Thu, 12 Nov 2009 01:07:06 +, from_user: AaronIsaacs, to_user_id: 2053065, text: @Pogue google quot;where can I find Chuck Norrisquot; and click quot;I'm feeling luckyquot;, id: 5635640329, from_user_id: 21018646, to_user: pogue, geo: null, iso_language_code: en, source: lt;a href=quot;http://www.atebits.com/quot; rel=quot;nofollowquot;gt;Tweetielt;/agt; }, etc. etc. etc. [ ... snip ... ] My only workaround is to ignore the results I've already seen before but no one wins--Twitter has to send me more results and I have to process more results. A fix soon would be very much appreciated. Thanks! Brian Morearty On Nov 4, 10:50 am, twitter-development emmanuel@gmail.com wrote: I think a few people including myself have seen this. Best guess is that it's a caching issue on the twitter server side. Here are some other threads with similar issues: http://groups.google.com/group/twitter-development-talk/browse_thread... http://groups.google.com/group/twitter-development-talk/browse_thread... http://groups.google.com/group/twitter-development-talk/browse_thread... On Nov 4, 3:45 am, Spode sp...@justfdi.com wrote: Hi, I've been noticing some strange behaviour since last night - but that's not to say it's not been going on longer. http://search.twitter.com/search.json?q=JournoTwitrpp=100since_id=5... Performing this search turns up 0 results when it should show 4. http://search.twitter.com/search.json?q=JournoTwitrpp=100since_id= Run it with nosince_idand it works. Then straight away run the original query... http://search.twitter.com/search.json?q=JournoTwitrpp=100since_id=5... And you get the expected 4 results. What's going on? Spode (journotwit.com)
[twitter-dev] Finding tweets from Zipcode
Hey all Is there any way I can get all the tweets from a zipcode? Eg:- all the tweets from 10019 Let me know if I can do that. Thanks
[twitter-dev] Dynamic redirect URL after OAuth login
Hi, Is there a way to support dynamic URLs being loaded after OAuth login? My website has multiple URLs from where a user can sign-in. I want the user to come back to same Url where they were before clicking on the Sign_in button. Can I ask Twitter OAuth to redirect to an Url of my choice by supplying it as a parameter in my OAuth login request. Thanks, Amitabh Follow Twaller @mytwaller
[twitter-dev] Re: Dynamic redirect URL after OAuth login
Please read the documentation and look for the oauth_callback parameter... Don't forget to pass the oauth_verifier... On 11/11/09 11:16 PM, Amitab hiamita...@gmail.com wrote: Hi, Is there a way to support dynamic URLs being loaded after OAuth login? My website has multiple URLs from where a user can sign-in. I want the user to come back to same Url where they were before clicking on the Sign_in button. Can I ask Twitter OAuth to redirect to an Url of my choice by supplying it as a parameter in my OAuth login request. Thanks, Amitabh Follow Twaller @mytwaller