[twitter-dev] Re: Sudden OAuth failures from a specific IP address
Hey Ryan I think I've found the problem. Our app was making two calls to get a request token in very quick succession which resulted in the same nonce. I think this explains the 401, so not an IP problem at all. Sorry if I wasted your time. On Nov 26, 10:16 am, timwhitlock tim.whitl...@publicreative.com wrote: Thanks Ryan. The IP that results in failures is 87.224.88.186 I've run the exact same code on three other servers and the response is fine. We recently mucked about with some DNS settings, so perhaps you run some kind of reverse lookup, and something looks suspicious? Let me know if there's anything I can sort out there. The IP is static, but it's not a hosting provider. This is our office development server's public facing address. Tim.
[twitter-dev] Re: Blocking vs non-blocking list creation: list streams are different
Any resolution or news? On Nov 10, 11:07 pm, Eric Gilbert eegilb...@gmail.com wrote: Great. Thanks, Marcel. Looking forward to the answer. My guess: limit on concurrent follows as countermeasure against bots? On Nov 10, 12:41 pm, Marcel Molina mar...@twitter.com wrote: Indeed something looks strange there. I've brought this to the attention of the team working on the lists backend. I'll let you know what they discover. On Mon, Nov 9, 2009 at 10:20 PM, Eric Gilbert eegilb...@gmail.com wrote: I'm developing an app that builds a few lists. Since it seems the only way to add users to lists is one id per call (please let me know if I'm mistaken), I experimented with populating the lists asynchronously. Both seem to build the list fine, and of course async is much faster. Here's the strange thing: although the lists created with each method have the same membership list, the lists streams are not the same. (Sync seems to be doing the right thing, but I haven't verified this rigorously.) For example, see http://twitter.com/eegilbert/right vs http://twitter.com/eegilbert/notsoright Strange. Cheers, Eric -- Marcel Molina Twitter Platform Teamhttp://twitter.com/noradio
[twitter-dev] Re: Search API questions
@Abraham I actually use the geocode with the search api for my script, so using the search api isn't my problem. My problem is that I get stale results from the search cache, even when querying after a sufficient interval. Also the stale results seem hours old (at times, in fact yesterday at 23:00 hours I got a few results that were from 22:00-22:30 hours. Didn't have the problem when using twitter search from the browser). To overcome this Raffi Krikorian suggested using the streaming api instead of the search api. My question was - how do i get a location specific stream using the streaming api. From the streaming api docs, there doesn't seem a way to do this at the moment, which kind of defeats my purpose as I need to the deploy the script in the next one week or so. Guess I'll have to live with the stale results... Anyway thanks for the help. On Nov 28, 12:40 am, Abraham Williams 4bra...@gmail.com wrote: On Fri, Nov 27, 2009 at 12:38, enygmatic enygma...@gmail.com wrote: From what I have gone through so far, there doesn't seem to be a way to query for status updates from a certain geographical location, say limited to a city. I may be mistaken here, so do correct me if I am wrong. Check out the search operators:http://search.twitter.com/operators For example:http://search.twitter.com/search?q=near:NYC+within:15mi Abraham -- Abraham Williams | Community Evangelist |http://web608.org Hacker |http://abrah.am|http://twitter.com/abraham Project | Awesome Lists |http://twitterli.st This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States
Re: [twitter-dev] Re: Search API questions
unfortunately, there is no (current) way to subscribe to the streaming API for a particular location. as for the caching issue on the search, that's unfortunate, and i'll try to raise the issue with the search team next week. @Abraham I actually use the geocode with the search api for my script, so using the search api isn't my problem. My problem is that I get stale results from the search cache, even when querying after a sufficient interval. Also the stale results seem hours old (at times, in fact yesterday at 23:00 hours I got a few results that were from 22:00-22:30 hours. Didn't have the problem when using twitter search from the browser). To overcome this Raffi Krikorian suggested using the streaming api instead of the search api. My question was - how do i get a location specific stream using the streaming api. From the streaming api docs, there doesn't seem a way to do this at the moment, which kind of defeats my purpose as I need to the deploy the script in the next one week or so. Guess I'll have to live with the stale results... Anyway thanks for the help. On Nov 28, 12:40 am, Abraham Williams 4bra...@gmail.com wrote: On Fri, Nov 27, 2009 at 12:38, enygmatic enygma...@gmail.com wrote: From what I have gone through so far, there doesn't seem to be a way to query for status updates from a certain geographical location, say limited to a city. I may be mistaken here, so do correct me if I am wrong. Check out the search operators:http://search.twitter.com/operators For example:http://search.twitter.com/search?q=near:NYC+within:15mi Abraham -- Abraham Williams | Community Evangelist |http://web608.org Hacker |http://abrah.am|http://twitter.com/abraham Project | Awesome Lists |http://twitterli.st This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi
[twitter-dev] Re: Search API questions
the streaming API would be ideal for my purposes, so will eagerly wait and see what new features the twitter api dev team adds before the final release. Till then, search api is what I will use. Thanks a lot Raffi, for trying to raise the issue with the search team. Regards, Elroy On Nov 28, 7:45 pm, Raffi Krikorian ra...@twitter.com wrote: unfortunately, there is no (current) way to subscribe to the streaming API for a particular location. as for the caching issue on the search, that's unfortunate, and i'll try to raise the issue with the search team next week. @Abraham I actually use the geocode with the search api for my script, so using the search api isn't my problem. My problem is that I get stale results from the search cache, even when querying after a sufficient interval. Also the stale results seem hours old (at times, in fact yesterday at 23:00 hours I got a few results that were from 22:00-22:30 hours. Didn't have the problem when using twitter search from the browser). To overcome this Raffi Krikorian suggested using the streaming api instead of the search api. My question was - how do i get a location specific stream using the streaming api. From the streaming api docs, there doesn't seem a way to do this at the moment, which kind of defeats my purpose as I need to the deploy the script in the next one week or so. Guess I'll have to live with the stale results... Anyway thanks for the help. On Nov 28, 12:40 am, Abraham Williams 4bra...@gmail.com wrote: On Fri, Nov 27, 2009 at 12:38, enygmatic enygma...@gmail.com wrote: From what I have gone through so far, there doesn't seem to be a way to query for status updates from a certain geographical location, say limited to a city. I may be mistaken here, so do correct me if I am wrong. Check out the search operators:http://search.twitter.com/operators For example:http://search.twitter.com/search?q=near:NYC+within:15mi Abraham -- Abraham Williams | Community Evangelist |http://web608.org Hacker |http://abrah.am|http://twitter.com/abraham Project | Awesome Lists |http://twitterli.st This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi
[twitter-dev] Re: Search API questions
I got some requests to post the query that I am using: here is the query : http://search.twitter.com/search.atom?geocode=19.017656%2C72.856178%2C15.0mirpp=25 Do correct me if I am not querying or using the API correctly. (Should have been my first question actually :) ) Also here is a sample of the output from my ruby script. It will give you an idea of the stale results that I am getting. The script was run at approximately 21:37 IST. As you can see, I'm getting tweets all the way back to 14:00 hours in the afternoon. I'm pretty sure there are more tweets for my location. I'm querying for tweets originating out of Mumbai, and by querying through twitter search I have noticed that there are at least 40-50 tweets posted every 2 minutes or so. Output follows: Date-Day-Hour-Minute-Tweet-User-Hashtags(csv, if any)- source of tweet (All date/time info below is in IST) 2009-11-28 Saturday21 27 @Abhishek_Rai I too am huge fan of quizzing.. do let me kno if u find anythin interesting. ty Shakti_Shetty (Shakti Shetty) web 2009-11-28 Saturday21 21 @surubhi hallow darlin, 'm fine doin great...how about u?dacku87 (darshan thacker) mobile web 2009-11-28 Saturday20 40 powai mocha so full of people, smaloe conversations and music.. sumagambs (Sumit Singh Gambhir) web 2009-11-28 Saturday20 25 @thetruboy idk we'll see. Ari should be home by then ronniebaby010 (Princess)UberTwitter 2009-11-28 Saturday19 54 friends do look up www.clickthehorror.com - the website for my new film distirbuted by PNC has been launched - look 4ward to feedbacks sangeethsivan (sangeeth sivan) web 2009-11-28 Saturday19 54 I'm guessing @Netra and @prolificd are the two few Twitterers who've had multi-city tweetups. How cool is that. National figures! b50 (Bombay Addict) Tweetie 2009-11-28 Saturday19 36 RT: Trupti's Blog: What Commercial Floor Mats Offer: One of the best ways to keep any p.. http://bit.ly/6sZWJg #blog MishraNatty (Natasha Mishra)blogtwitterfeed 2009-11-28 Saturday19 09 @mattyza when launched back in 2005, the Xbox 360 was available in Core and Pro. Now it's Arcade and Elite. Same difference!aalaap (Aalaap Ghag)Tweetie 2009-11-28 Saturday19 05 Profit with Google, Twitter amp; affiliate marketing http://snipurl.com/tet1r Tiifani_Lurid (Tiifani Lurid) API 2009-11-28 Saturday18 35 Just voted OOiZiT.com for Best Online Music Label http://mashable.com/owa #openwebawardsankit_9oct (Ankit Khandelwal) openwebawards Mashable Connect 2009-11-28 Saturday18 35 @reginafetalvero HAHA. YUHH. Gift ko ah? :quot;gt; Jhoriiliee (Jorylie Cando) web 2009-11-28 Saturday18 24 @Tweet_Words JAGGERY PALM gannirules (gaanish) Snaptu 2009-11-28 Saturday17 34 @Karan_Talwar pls post that if you get an answer. champbox (champbox) Tweets60 2009-11-28 Saturday17 34 Just Got Home! :) Wee. Had FUN tonight! :) HBD kathy! Sayang wala si Beb, complete na sana.Jhoriiliee (Jorylie Cando) web 2009-11-28 Saturday17 34 I'm listening to Kurbaan: Kurbaan Hua (Soundtrack) - @Spinlet kmadvani (Kunal M Advani) API 2009-11-28 Saturday17 03 Eastern Province Under-19s 322/7 amp; 185/5 v South Western Districts Under-19s 92/10 amp; 152/10 *: Eastern Province.. http://bit.ly/4rS1iA venky888 (venkatesh iyer) twitterfeed 2009-11-28 Saturday16 52 Hey tweeps..Rocket Singh pics http://www.yashrajfilms.com/microsites/rocketsingh/fullpage.html check them out! ShazahnPadamsee (Shazahn Padamsee) web 2009-11-28 Saturday16 08 Started IE assignment jyotiswaroopr (Jyoti Swaroop Repaka) Digsby 2009-11-28 Saturday15 24 @PaulaAbdul Love you more than anything in this world. Thanks for being a huge part of my life. lt;3 LuvPaula (Anahita Abdul Cowell) web 2009-11-28 Saturday15 18 @richa_august84 fan of purane hindi gaane, hmm? me too!! sonali_k (sonali_k) web 2009-11-28 Saturday14 54 Fruits and Vegetables for energyzing the Solar Plexus Chakra: http://bit.ly/4NQV9M AnamikaS (Anamika S) web 2009-11-28 Saturday14 52 I'm off to read and then sleep. Don't dare disturb my slumber. eyemanut87 (Moo)Snaptu 2009-11-28 Saturday14 52 White House gate-crashers met Obama, PM: American couple Michaele and Tareq Salahi, who gate-crashed into a State D...
[twitter-dev] Re: Search API questions
Hi Elroy, I tried your query from python several times within the same minute. After running the query several times in a row I start getting fresh results and they remain fresh for a while. I tried changing the least significant decimal to make it a different query and I get stale results immediately. Switching back yields fresh results. This to me suggests that there may be two search tiers: one for low- frequency queries that probably searches a subset of tweets, and another one for frequent ones that searches everything and has an LRU cache of important queries. It seems that we can force queries into the LRU cache of the good tier by querying frequently enough. When I stop querying for three minutes or so I see the old results again. The question for the search team is how to have your query treated as an important one without abusing the API. Diego Diego On Nov 28, 1:18 pm, enygmatic enygma...@gmail.com wrote: I got some requests to post the query that I am using: here is the query :http://search.twitter.com/search.atom?geocode=19.017656%2C72.856178%2... Do correct me if I am not querying or using the API correctly. (Should have been my first question actually :) ) Also here is a sample of the output from my ruby script. It will give you an idea of the stale results that I am getting. The script was run at approximately 21:37 IST. As you can see, I'm getting tweets all the way back to 14:00 hours in the afternoon. I'm pretty sure there are more tweets for my location. I'm querying for tweets originating out of Mumbai, and by querying through twitter search I have noticed that there are at least 40-50 tweets posted every 2 minutes or so. Output follows: Date-Day-Hour-Minute-Tweet-User-Hashtags(csv, if any)- source of tweet (All date/time info below is in IST) 2009-11-28 Saturday 21 27 �...@abhishek_rai I too am huge fan of quizzing.. do let me kno if u find anythin interesting. ty Shakti_Shetty (Shakti Shetty) web 2009-11-28 Saturday 21 21 �...@surubhi hallow darlin, 'm fine doin great...how about u? dacku87 (darshan thacker) mobile web 2009-11-28 Saturday 20 40 powai mocha so full of people, smaloe conversations and music.. sumagambs (Sumit Singh Gambhir) web 2009-11-28 Saturday 20 25 �...@thetruboy idk we'll see. Ari should be home by then ronniebaby010 (Princess) UberTwitter 2009-11-28 Saturday 19 54 friends do look upwww.clickthehorror.com- the website for my new film distirbuted by PNC has been launched - look 4ward to feedbacks sangeethsivan (sangeeth sivan) web 2009-11-28 Saturday 19 54 I'm guessing @Netra and @prolificd are the two few Twitterers who've had multi-city tweetups. How cool is that. National figures! b50 (Bombay Addict) Tweetie 2009-11-28 Saturday 19 36 RT: Trupti's Blog: What Commercial Floor Mats Offer: One of the best ways to keep any p..http://bit.ly/6sZWJg #blog MishraNatty (Natasha Mishra) blog twitterfeed 2009-11-28 Saturday 19 09 �...@mattyza when launched back in 2005, the Xbox 360 was available in Core and Pro. Now it's Arcade and Elite. Same difference! aalaap (Aalaap Ghag) Tweetie 2009-11-28 Saturday 19 05 Profit with Google, Twitter amp; affiliate marketinghttp://snipurl.com/tet1r Tiifani_Lurid (Tiifani Lurid) API 2009-11-28 Saturday 18 35 Just voted OOiZiT.com for Best Online Music Labelhttp://mashable.com/owa#openwebawards ankit_9oct (Ankit Khandelwal) openwebawards Mashable Connect 2009-11-28 Saturday 18 35 �...@reginafetalvero HAHA. YUHH. Gift ko ah? :quot;gt; Jhoriiliee (Jorylie Cando) web 2009-11-28 Saturday 18 24 �...@tweet_words JAGGERY PALM gannirules (gaanish) Snaptu 2009-11-28 Saturday 17 34 �...@karan_talwar pls post that if you get an answer. champbox (champbox) Tweets60 2009-11-28 Saturday 17 34 Just Got Home! :) Wee. Had FUN tonight! :) HBD kathy! Sayang wala si Beb, complete na sana. Jhoriiliee (Jorylie Cando) web 2009-11-28 Saturday 17 34 I'm listening to Kurbaan: Kurbaan Hua (Soundtrack) - @Spinlet kmadvani (Kunal M Advani) API 2009-11-28 Saturday 17 03 Eastern Province Under-19s 322/7 amp; 185/5 v South Western Districts Under-19s 92/10 amp; 152/10 *: Eastern Province..http://bit.ly/4rS1iAvenky888 (venkatesh iyer) twitterfeed 2009-11-28 Saturday 16 52 Hey tweeps..Rocket Singh picshttp://www.yashrajfilms.com/microsites/rocketsingh/fullpage.html check them out! ShazahnPadamsee (Shazahn
[twitter-dev] getting older tweets
I am using the search api and want to get tweets from, say, one year ago. the 'since', parameter seems not to be working. e.g. http://search.twitter.com/search.atom?q=obamauntil=2009-03-24 returns no results. Am I doing something wrong?
Re: [twitter-dev] getting older tweets
there is currently no way to search for tweets that are that old. I am using the search api and want to get tweets from, say, one year ago. the 'since', parameter seems not to be working. e.g. http://search.twitter.com/search.atom?q=obamauntil=2009-03-24 returns no results. Am I doing something wrong? -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi
Re: [twitter-dev] getting older tweets
What are the oldest tweets I can search for? Is use of 'since' the only way? On Sat, Nov 28, 2009 at 1:09 PM, Raffi Krikorian ra...@twitter.com wrote: there is currently no way to search for tweets that are that old. I am using the search api and want to get tweets from, say, one year ago. the 'since', parameter seems not to be working. e.g. http://search.twitter.com/search.atom?q=obamauntil=2009-03-24 returns no results. Am I doing something wrong? -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi
[twitter-dev] Re: Trying to trouble shoot DELETE list members with the Twitter gem.
I have given up with trying to make it work with DELETE and tired sending _method=DELETE along with the body.. no success. i get Unauthorized - Incorrect signature Any ideas? On Nov 28, 12:13 am, Michael magic6...@gmail.com wrote: I know that i should post on the Twitter gem group(and i have) but that place is dead and also i think my problem is not with the gem but understanding how the oauth and REST works. I could be looking down the wrong path tho seeing as how i kinda feel like Alice down the rabbit hole. Everything dealing with lists works on the twitter gem but one thing and that's list_remove_user which is using the DELETE list members API. Now when i use it as planned i get this error. Twitter::RateLimitExceeded: (400): Bad Request - You must specify a member Which is the same error you get if you use the api via curl and leave off the id http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-DELETE-list-mem... It has nothing to do with the rate limit. twitter gem just returns all 400's as a ratelimitexceded. There is no rate limit for adding and removing list items and also my account is whitelisted. Then i moved on and noticed that the delete method was only passing the uri and header options meanwhile post and put had an extra body option. def perform_post send(:post, uri, options[:body], options[:headers]) end def perform_delete send(:delete, uri, options[:headers]) end From that i assumed that the id that gets passed for the users id must be inside of the options[:body] and that's why twitter was telling me You must specify a member When oauth gem creates the url's to query it does it like so and once again they do not include body def post(path, body = '', headers = {}) request(:post, path, body, headers) end def delete(path, headers = {}) request(:delete, path, headers) end But that all blows up when i add body to delete. So after all of this i guess what I'm wondering is.. is there something to do with oauth and REST that will not let you pass along extra params and do i need to look into using a POST method and passing _method=DELETE. I have not tried that yet because i have no idea how to attempt that in the confines of ruby using oauth. thanks for any help, this is driving me nuts. Mike.
[twitter-dev] Re: getting older tweets
Jack I don't know if this will be useful to you but we have a representative sample of tweets from past months in our search tool. Right now it goes back to February. See for example: http://search.trendistic.com/iran/_on-2009-02-01 Change the date and query for any date between February and today. Diego On Nov 28, 3:12 pm, Jack Widman jack.wid...@gmail.com wrote: What are the oldest tweets I can search for? Is use of 'since' the only way? On Sat, Nov 28, 2009 at 1:09 PM, Raffi Krikorian ra...@twitter.com wrote: there is currently no way to search for tweets that are that old. I am using the search api and want to get tweets from, say, one year ago. the 'since', parameter seems not to be working. e.g. http://search.twitter.com/search.atom?q=obamauntil=2009-03-24 returns no results. Am I doing something wrong? -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi
Re: [twitter-dev] Re: getting older tweets
Yes. Thanks Diego, that is useful. On Sat, Nov 28, 2009 at 1:29 PM, dbasch dba...@gmail.com wrote: Jack I don't know if this will be useful to you but we have a representative sample of tweets from past months in our search tool. Right now it goes back to February. See for example: http://search.trendistic.com/iran/_on-2009-02-01 Change the date and query for any date between February and today. Diego On Nov 28, 3:12 pm, Jack Widman jack.wid...@gmail.com wrote: What are the oldest tweets I can search for? Is use of 'since' the only way? On Sat, Nov 28, 2009 at 1:09 PM, Raffi Krikorian ra...@twitter.com wrote: there is currently no way to search for tweets that are that old. I am using the search api and want to get tweets from, say, one year ago. the 'since', parameter seems not to be working. e.g. http://search.twitter.com/search.atom?q=obamauntil=2009-03-24 returns no results. Am I doing something wrong? -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi
[twitter-dev] Twitter OAuth works fine in my app then I get error when trying to login to Twitter.com site
OAuth works fine in my application but then when I open a new tab to login to twitter, I login and I get this message: Woah there! This page requires some information that was not provided. Please return to the site that sent you to this page and try again … it was probably an honest mistake. When I hit back on the browser, the error message goes away and I am at my home page. This looks to be a bug with Twitter's OAuth. Here are the steps to reproduce: 1) Make sure you are logged out of twitter.com 2) Use a third party app to login to twitter: (you can use this demo: http://twitteroauth.appspot.com/) 3) Open a second tab, go to twitter.com and login. You should get the error message above? I am not too familiar with OAuth but I have used a few different code libraries for python and they all seem to have the same issue. Any one experience similar?
Re: [twitter-dev] Twitter OAuth works fine in my app then I get error when trying to login to Twitter.com site
Following up to myself: Yes I experience the same. Not sure what causes it... I see the same thing. The browser location bar shows http://twitter.com/oauth/authorize when you have the error page up. So something is redirecting us to the /oauth when we try a normal web login. Digging a little, I see a twitter.com _twitter_sess cookie is pushed to my browser by Twitter when I'm redirected to the auth page in step 2. The cookie is set to expire at end of session. Maybe that should be changed to have it expire in a couple of minutes, or maybe that cookie shouldn't be pushed to us at all. Does it interfere with signing in with a second 3rd party app? If I remove that cookie before going to Twitter in step 3, it all works fine. 1) Make sure you are logged out of twitter.com 2) Use a third party app to login to twitter 3) Open a second tab, go to twitter.com and login. You should get the error message above? Terry
Re: [twitter-dev] Re: Trying to trouble shoot DELETE list members with the Twitter gem.
This is the twitter gem at http://github.com/jnunemaker/twitter? The problem seems to be that the list_remove_member in base.rb is trying to pass parameters in with :body in the last hash def list_remove_member(list_owner_username, slug, id) perform_delete(/#{list_owner_username}/#{slug}/members.json, :body = {:id = id}) end However perform_delete in request.rb completely ignores this option def perform_delete send(:delete, uri, options[:headers]) end You might try adding :headers = {:_method = DELETE} to your call, but the best path seems to be to get the gem fixed up. ---Mark On Sat, Nov 28, 2009 at 10:20 AM, Michael magic6...@gmail.com wrote: I have given up with trying to make it work with DELETE and tired sending _method=DELETE along with the body.. no success. i get Unauthorized - Incorrect signature Any ideas? On Nov 28, 12:13 am, Michael magic6...@gmail.com wrote: I know that i should post on the Twitter gem group(and i have) but that place is dead and also i think my problem is not with the gem but understanding how the oauth and REST works. I could be looking down the wrong path tho seeing as how i kinda feel like Alice down the rabbit hole. Everything dealing with lists works on the twitter gem but one thing and that's list_remove_user which is using the DELETE list members API. Now when i use it as planned i get this error. Twitter::RateLimitExceeded: (400): Bad Request - You must specify a member Which is the same error you get if you use the api via curl and leave off the id http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-DELETE-list-mem... It has nothing to do with the rate limit. twitter gem just returns all 400's as a ratelimitexceded. There is no rate limit for adding and removing list items and also my account is whitelisted. Then i moved on and noticed that the delete method was only passing the uri and header options meanwhile post and put had an extra body option. def perform_post send(:post, uri, options[:body], options[:headers]) end def perform_delete send(:delete, uri, options[:headers]) end From that i assumed that the id that gets passed for the users id must be inside of the options[:body] and that's why twitter was telling me You must specify a member When oauth gem creates the url's to query it does it like so and once again they do not include body def post(path, body = '', headers = {}) request(:post, path, body, headers) end def delete(path, headers = {}) request(:delete, path, headers) end But that all blows up when i add body to delete. So after all of this i guess what I'm wondering is.. is there something to do with oauth and REST that will not let you pass along extra params and do i need to look into using a POST method and passing _method=DELETE. I have not tried that yet because i have no idea how to attempt that in the confines of ruby using oauth. thanks for any help, this is driving me nuts. Mike.
[twitter-dev] 401 API Authentication Error
Hi We have a program that uses the Twitter API that we wrote and it (used to) work fine but recently we had to change the computer date we were calling our program from to 2018 instead of 2009 - this was done as a temporary test for another application we were running on that same computer unrelated to Twitter. Anyway, after we changed the date to 2018 - the Twitter API program still ran OK but when we then put the date back to 2009 our Twitter program wont run and is now reporting the following. The remote server returned an error: (401) Unauthorized. But when we switch back to 2018 ..it runs fine. Can anyone shed some light on thsi please ? Is ther some date related switch we are missing in our Twitter program ? Thanks !
Re: [twitter-dev] 401 API Authentication Error
that's intriguing - but you'll have to provide a lot more information: are you using oauth, or basic auth? what endpoints are you calling when you are getting the error? Hi We have a program that uses the Twitter API that we wrote and it (used to) work fine but recently we had to change the computer date we were calling our program from to 2018 instead of 2009 - this was done as a temporary test for another application we were running on that same computer unrelated to Twitter. Anyway, after we changed the date to 2018 - the Twitter API program still ran OK but when we then put the date back to 2009 our Twitter program wont run and is now reporting the following. The remote server returned an error: (401) Unauthorized. But when we switch back to 2018 ..it runs fine. Can anyone shed some light on thsi please ? Is ther some date related switch we are missing in our Twitter program ? Thanks ! -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi
Re: [twitter-dev] Twitter OAuth works fine in my app then I get error when trying to login to Twitter.com site
There is an issue open for this: http://code.google.com/p/twitter-api/issues/detail?id=1199 Abraham On Sat, Nov 28, 2009 at 14:30, Terry Jones te...@jon.es wrote: Following up to myself: Yes I experience the same. Not sure what causes it... I see the same thing. The browser location bar shows http://twitter.com/oauth/authorize when you have the error page up. So something is redirecting us to the /oauth when we try a normal web login. Digging a little, I see a twitter.com _twitter_sess cookie is pushed to my browser by Twitter when I'm redirected to the auth page in step 2. The cookie is set to expire at end of session. Maybe that should be changed to have it expire in a couple of minutes, or maybe that cookie shouldn't be pushed to us at all. Does it interfere with signing in with a second 3rd party app? If I remove that cookie before going to Twitter in step 3, it all works fine. 1) Make sure you are logged out of twitter.com 2) Use a third party app to login to twitter 3) Open a second tab, go to twitter.com and login. You should get the error message above? Terry -- Abraham Williams | Community Evangelist | http://web608.org Hacker | http://abrah.am | http://twitter.com/abraham Project | Awesome Lists | http://twitterli.st This email is: [ ] blogable [x] ask first [ ] private.
Re: [twitter-dev] Adding more languages to lang parameter in Search API
Could somebody from the Twitter team please address my question about language recognition in the search API? Many thanks in advance. T. 25.11.2009, в 10:00, Toma написал(а): Hi there. I am working on a WordNet-based Serbian-English dictionary (part of Transpoetika Project at the Belgrade Center for Digital Humanities, http://humanistika.org) I've implemented a LiveQuote system with Twitter, where we get most recent tweets exemplifying the use of a given dictionary entry. We also have several other ideas on how to integrate Twitter in our dictionary application, both on the production and reception ends. But we're facing a serious performance issue: Twitter's language parameter (lang) does not recognize Serbian (sr). My workaround has been to use Google Translate's API to check tweets to make sure they are really Serbian. It works, Google is pretty good about this (not 101%, but close enough), but this has considerably slowed down the process -- every tweet we get for a certain word has to be checked with Google before being displayed. Without a language check, however, we run into cases where certain Russian, Bulgarian, Macedonian etc. tweets will sometimes sneak into our results thanks to interlingual homographs. For eg. живот in Serbian means life, while in Russian it means stomach. I am curious how you guys check for language identity on your backend, and whether there was any chance you could include Serbian in the list? All best, Toma
Re: [twitter-dev] Adding more languages to lang parameter in Search API
I'm sorry, but adding Serbian to the list is probably not a high priority for search right now. On Nov 28, 2009, at 8:30 PM, Тома Тасовац transpoet...@gmail.com wrote: Could somebody from the Twitter team please address my question about language recognition in the search API? Many thanks in advance. T. 25.11.2009, в 10:00, Toma написал(а): Hi there. I am working on a WordNet-based Serbian-English dictionary (part of Transpoetika Project at the Belgrade Center for Digital Humanities, http://humanistika.org) I've implemented a LiveQuote system with Twitter, where we get most recent tweets exemplifying the use of a given dictionary entry. We also have several other ideas on how to integrate Twitter in our dictionary application, both on the production and reception ends. But we're facing a serious performance issue: Twitter's language parameter (lang) does not recognize Serbian (sr). My workaround has been to use Google Translate's API to check tweets to make sure they are really Serbian. It works, Google is pretty good about this (not 101%, but close enough), but this has considerably slowed down the process -- every tweet we get for a certain word has to be checked with Google before being displayed. Without a language check, however, we run into cases where certain Russian, Bulgarian, Macedonian etc. tweets will sometimes sneak into our results thanks to interlingual homographs. For eg. живот in Serbian means life, while in Russian it means stomach. I am curious how you guys check for language identity on your backend, and whether there was any chance you could include Serbian in the list? All best, Toma
Re: [twitter-dev] Adding more languages to lang parameter in Search API
That's disappointing. Thanks for your answer. T. 29.11.2009, в 5:46, Raffi Krikorian написал(а): I'm sorry, but adding Serbian to the list is probably not a high priority for search right now. On Nov 28, 2009, at 8:30 PM, Тома Тасовац transpoet...@gmail.com wrote: Could somebody from the Twitter team please address my question about language recognition in the search API? Many thanks in advance. T. 25.11.2009, в 10:00, Toma написал(а): Hi there. I am working on a WordNet-based Serbian-English dictionary (part of Transpoetika Project at the Belgrade Center for Digital Humanities, http://humanistika.org) I've implemented a LiveQuote system with Twitter, where we get most recent tweets exemplifying the use of a given dictionary entry. We also have several other ideas on how to integrate Twitter in our dictionary application, both on the production and reception ends. But we're facing a serious performance issue: Twitter's language parameter (lang) does not recognize Serbian (sr). My workaround has been to use Google Translate's API to check tweets to make sure they are really Serbian. It works, Google is pretty good about this (not 101%, but close enough), but this has considerably slowed down the process -- every tweet we get for a certain word has to be checked with Google before being displayed. Without a language check, however, we run into cases where certain Russian, Bulgarian, Macedonian etc. tweets will sometimes sneak into our results thanks to interlingual homographs. For eg. живот in Serbian means life, while in Russian it means stomach. I am curious how you guys check for language identity on your backend, and whether there was any chance you could include Serbian in the list? All best, Toma
Re: [twitter-dev] Re: Adding more languages to lang parameter in Search API
Thanks a lot for your suggestion, Diego! I will look into it. All best, Toma 29.11.2009, в 6:10, dbasch написал(а): Toma, There are tools you could use to do language detection on your side and filter out non-Serbian tweets. I assume what slows you down is the call to Google's Language Detection API: http://code.google.com/apis/ajaxlanguage/documentation/#Detect You should try the n-gram based language identifier that comes with the Nutch search engine. You can build a language model for Serbian relatively quickly (just feed it a file with a fair amount of text in Serbian) and see how well it works: http://wiki.apache.org/nutch/LanguageIdentifier http://lucene.apache.org/nutch/ Diego On Nov 29, 1:30 am, Тома Тасовац transpoet...@gmail.com wrote: Could somebody from the Twitter team please address my question about language recognition in the search API? Many thanks in advance. T. 25.11.2009, Ò 10:00, Toma ÝÐßØáÐÛ(Ð): Hi there. I am working on a WordNet-based Serbian-English dictionary (part of Transpoetika Project at the Belgrade Center for Digital Humanities, http://humanistika.org) I've implemented a LiveQuote system with Twitter, where we get most recent tweets exemplifying the use of a given dictionary entry. We also have several other ideas on how to integrate Twitter in our dictionary application, both on the production and reception ends. But we're facing a serious performance issue: Twitter's language parameter (lang) does not recognize Serbian (sr). My workaround has been to use Google Translate's API to check tweets to make sure they are really Serbian. It works, Google is pretty good about this (not 101%, but close enough), but this has considerably slowed down the process -- every tweet we get for a certain word has to be checked with Google before being displayed. Without a language check, however, we run into cases where certain Russian, Bulgarian, Macedonian etc. tweets will sometimes sneak into our results thanks to interlingual homographs. For eg. ÖØÒÞâ in Serbian means life, while in Russian it means stomach. I am curious how you guys check for language identity on your backend, and whether there was any chance you could include Serbian in the list? All best, Toma
Re: [twitter-dev] 401 API Authentication Error
That's my first bet -- the oauth_timestamps you used when your date is 2018 are newer than the ones you're using now, and that would probably return invalid timestamp / nonce errors. On Sat, Nov 28, 2009 at 16:34, Raffi Krikorian ra...@twitter.com wrote: that's intriguing - but you'll have to provide a lot more information: - are you using oauth, or basic auth? - what endpoints are you calling when you are getting the error? Hi We have a program that uses the Twitter API that we wrote and it (used to) work fine but recently we had to change the computer date we were calling our program from to 2018 instead of 2009 - this was done as a temporary test for another application we were running on that same computer unrelated to Twitter. Anyway, after we changed the date to 2018 - the Twitter API program still ran OK but when we then put the date back to 2009 our Twitter program wont run and is now reporting the following. The remote server returned an error: (401) Unauthorized. But when we switch back to 2018 ..it runs fine. Can anyone shed some light on thsi please ? Is ther some date related switch we are missing in our Twitter program ? Thanks ! -- Raffi Krikorian Twitter Platform Team ra...@twitter.com | @raffi -- Internets. Serious business.
[twitter-dev] Sync Twitter location to Fireeagle
Hi, I have a service up which sync's location published in your tweets to FireEagle. You can try it out here http://tweetaloc.nowwhat.in , this listens to the stream api from twitter [statuses/filter with follow] and updates your fireeagle location when a geocoded tweet from you comes in. Suggestions welcome. @jebui -- Jebu Ittiachen
[twitter-dev] Retweet streams have been frozen for 2 weeks
The retweet streams have been frozen for 2 weeks. See here: http://twitpic.com/rfcjv I thought it was just me, but a coworker is seeing this as well. Don't need this for dev but it would be nice to know what is going on. The pages take a long time to load and then show that above. I wonder if something is failing and just returning some kind of cache maybe? Don't know. A quick search on twitter shows I'm not alone: http://twitter.com/#search?q=retweets%20by%20others Zac Bowling
[twitter-dev] Re: Search API questions
Hi Everyone, I've been running my script as a cron task (every 15 minutes) since last evening. So far I've got about 1375 results logged, out of which 973 are duplicates (meaning stale entries)...a staggering 70.7076% or approximately 71%. This is way more than expected..so a shout out to the development team - Is there anyway to solve this problem, get around it ? @Diego, thanks a lot for confirming what I found. Also I tried querying frequently like you suggested, and yes I do hit good results more frequently. I didn't get the idea of the least significant decimal - are u referring to the geocode? @twitter dev team I do agree with Diego, there is got to be a way of getting good search results without finding ways to trick the API. Even with a cache, I see no reason why I should be getting results from over 6 hours ago for my search query. Regards, Elroy On Nov 28, 10:16 pm, dbasch dba...@gmail.com wrote: Hi Elroy, I tried your query from python several times within the same minute. After running the query several times in a row I start getting fresh results and they remain fresh for a while. I tried changing the least significant decimal to make it a different query and I get stale results immediately. Switching back yields fresh results. This to me suggests that there may be two search tiers: one for low- frequency queries that probably searches a subset of tweets, and another one for frequent ones that searches everything and has an LRU cache of important queries. It seems that we can force queries into the LRU cache of the good tier by querying frequently enough. When I stop querying for three minutes or so I see the old results again. The question for the search team is how to have your query treated as an important one without abusing the API. Diego Diego On Nov 28, 1:18 pm, enygmatic enygma...@gmail.com wrote: I got some requests to post the query that I am using: here is the query :http://search.twitter.com/search.atom?geocode=19.017656%2C72.856178%2... Do correct me if I am not querying or using the API correctly. (Should have been my first question actually :) ) Also here is a sample of the output from my ruby script. It will give you an idea of the stale results that I am getting. The script was run at approximately 21:37 IST. As you can see, I'm getting tweets all the way back to 14:00 hours in the afternoon. I'm pretty sure there are more tweets for my location. I'm querying for tweets originating out of Mumbai, and by querying through twitter search I have noticed that there are at least 40-50 tweets posted every 2 minutes or so. Output follows: Date-Day-Hour-Minute-Tweet-User-Hashtags(csv, if any)- source of tweet (All date/time info below is in IST) 2009-11-28 Saturday 21 27 �...@abhishek_rai I too am huge fan of quizzing.. do let me kno if u find anythin interesting. ty Shakti_Shetty (Shakti Shetty) web 2009-11-28 Saturday 21 21 �...@surubhi hallow darlin, 'm fine doin great...how about u? dacku87 (darshan thacker) mobile web 2009-11-28 Saturday 20 40 powai mocha so full of people, smaloe conversations and music.. sumagambs (Sumit Singh Gambhir) web 2009-11-28 Saturday 20 25 �...@thetruboy idk we'll see. Ari should be home by then ronniebaby010 (Princess) UberTwitter 2009-11-28 Saturday 19 54 friends do look upwww.clickthehorror.com- the website for my new film distirbuted by PNC has been launched - look 4ward to feedbacks sangeethsivan (sangeeth sivan) web 2009-11-28 Saturday 19 54 I'm guessing @Netra and @prolificd are the two few Twitterers who've had multi-city tweetups. How cool is that. National figures! b50 (Bombay Addict) Tweetie 2009-11-28 Saturday 19 36 RT: Trupti's Blog: What Commercial Floor Mats Offer: One of the best ways to keep any p..http://bit.ly/6sZWJg #blog MishraNatty (Natasha Mishra) blog twitterfeed 2009-11-28 Saturday 19 09 �...@mattyza when launched back in 2005, the Xbox 360 was available in Core and Pro. Now it's Arcade and Elite. Same difference! aalaap (Aalaap Ghag) Tweetie 2009-11-28 Saturday 19 05 Profit with Google, Twitter amp; affiliate marketinghttp://snipurl.com/tet1r Tiifani_Lurid (Tiifani Lurid) API 2009-11-28 Saturday 18 35 Just voted OOiZiT.com for Best Online Music Labelhttp://mashable.com/owa#openwebawardsankit_9oct (Ankit Khandelwal) openwebawards Mashable Connect 2009-11-28 Saturday 18 35 �...@reginafetalvero HAHA. YUHH. Gift ko ah? :quot;gt; Jhoriiliee (Jorylie Cando) web 2009-11-28 Saturday 18 24