[twitter-dev] Sending geo-tagged tweets is broken? 502 Bad Gateway Error ...
Hi, I cannot send geotagged tweets via Gravity anymore. I'm always getting an HTTP 502 Bad Gateway error. Without attaching the lat/long vars, it's working. Strangely, I cannot send updates via the website either (twitter.com). @janole -- Jan Ole Suhr / Gravity S60 Twitter Client o...@mobileways.de
[twitter-dev] Re: Sending geo-tagged tweets is broken? 502 Bad Gateway Error ...
I'm seeing this too, whenever I send a lat or long parameter I get a 502 error and can't post any geo location tweets On Mar 12, 8:59 am, janole s...@mobileways.de wrote: Hi, I cannot send geotagged tweets via Gravity anymore. I'm always getting an HTTP 502 Bad Gateway error. Without attaching the lat/long vars, it's working. Strangely, I cannot send updates via the website either (twitter.com). @janole -- Jan Ole Suhr / Gravity S60 Twitter Client o...@mobileways.de
[twitter-dev] Re: Incorrect favorited value for home_timeline
I'm probably wrong but I suspect it could be that if the original user has favorited that tweet then it'll show as the current user's favorite too? On Mar 12, 12:38 am, Tim Haines tmhai...@gmail.com wrote: Hi, There's been an issue open for this since December and it's assigned to Raffi. http://code.google.com/p/twitter-api/issues/detail?id=1270 Tim. On Thu, Mar 11, 2010 at 3:35 PM, _ado adri...@tijsseling.com wrote: I queried home_timeline and got an incorrect favorited status for a retweet. The tweet in question was not favorited at all by me. The call to home_timeline was authenticated, so according to the api docs on favorited (boolean indicating if a status has been marked as a favorite by the authenticating user), the value for favorited in this case should be 'false'. I'm I understanding it wrong or is the data incorrect? status created_atThu Mar 11 01:16:30 + 2010/created_at id10298971327/id textRT @MrBigFists: Oh, I'm not going to cry over spilled milk. But make no mistake, if you spill my steamed milk with two shots of espresso .../text sourcelt;a href=quot;http://favstar.fm; rel=quot;nofollowquot;gt;Favstar.FMlt;/agt;/source truncatedtrue/truncated in_reply_to_status_id/in_reply_to_status_id in_reply_to_user_id/in_reply_to_user_id favoritedtrue/favorited in_reply_to_screen_name/in_reply_to_screen_name retweeted_status created_atWed Mar 10 14:54:22 + 2010/created_at id10274344282/id textOh, I'm not going to cry over spilled milk. But make no mistake, if you spill my steamed milk with two shots of espresso... I will cut you./text sourceweb/source truncatedfalse/truncated in_reply_to_status_id/in_reply_to_status_id in_reply_to_user_id/in_reply_to_user_id favoritedtrue/favorited in_reply_to_screen_name/in_reply_to_screen_name user id47569242/id nameJonathan/name screen_nameMrBigFists/screen_name ... snip ...
Re: [twitter-dev] Re: Sending geo-tagged tweets is broken? 502 Bad Gateway Error ...
Yes, we're (TweetDeck) having the same issues, and it looks like Tweetie is as well - looks like something may have broken last night when rolling out the new geo features? Tom On Fri, Mar 12, 2010 at 10:20 AM, Rich rhyl...@gmail.com wrote: I'm seeing this too, whenever I send a lat or long parameter I get a 502 error and can't post any geo location tweets On Mar 12, 8:59 am, janole s...@mobileways.de wrote: Hi, I cannot send geotagged tweets via Gravity anymore. I'm always getting an HTTP 502 Bad Gateway error. Without attaching the lat/long vars, it's working. Strangely, I cannot send updates via the website either (twitter.com). @janole -- Jan Ole Suhr / Gravity S60 Twitter Client o...@mobileways.de
Re: [twitter-dev] Re: Sending geo-tagged tweets is broken? 502 Bad Gateway Error ...
This is also preventing posting from web UI if user has location option checked in settings. ∞ 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 Fri, Mar 12, 2010 at 6:49 AM, Thomas Woolway tswool...@gmail.com wrote: Yes, we're (TweetDeck) having the same issues, and it looks like Tweetie is as well - looks like something may have broken last night when rolling out the new geo features? Tom On Fri, Mar 12, 2010 at 10:20 AM, Rich rhyl...@gmail.com wrote: I'm seeing this too, whenever I send a lat or long parameter I get a 502 error and can't post any geo location tweets On Mar 12, 8:59 am, janole s...@mobileways.de wrote: Hi, I cannot send geotagged tweets via Gravity anymore. I'm always getting an HTTP 502 Bad Gateway error. Without attaching the lat/long vars, it's working. Strangely, I cannot send updates via the website either (twitter.com). @janole -- Jan Ole Suhr / Gravity S60 Twitter Client o...@mobileways.de
Re: [twitter-dev] Re: Sending geo-tagged tweets is broken? 502 Bad Gateway Error ...
Note some users also appear to have to clear cookies and sign back in, in addition to unchecking the location option. --ab On Fri, Mar 12, 2010 at 6:56 AM, Andrew Badera and...@badera.us wrote: This is also preventing posting from web UI if user has location option checked in settings. ∞ 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 Fri, Mar 12, 2010 at 6:49 AM, Thomas Woolway tswool...@gmail.com wrote: Yes, we're (TweetDeck) having the same issues, and it looks like Tweetie is as well - looks like something may have broken last night when rolling out the new geo features? Tom On Fri, Mar 12, 2010 at 10:20 AM, Rich rhyl...@gmail.com wrote: I'm seeing this too, whenever I send a lat or long parameter I get a 502 error and can't post any geo location tweets On Mar 12, 8:59 am, janole s...@mobileways.de wrote: Hi, I cannot send geotagged tweets via Gravity anymore. I'm always getting an HTTP 502 Bad Gateway error. Without attaching the lat/long vars, it's working. Strangely, I cannot send updates via the website either (twitter.com). @janole -- Jan Ole Suhr / Gravity S60 Twitter Client o...@mobileways.de
Re: [twitter-dev] Re: Sending geo-tagged tweets is broken? 502 Bad Gateway Error ...
This seems to be working ok again, at least API wise. Tom On Fri, Mar 12, 2010 at 12:02 PM, Andrew Badera and...@badera.us wrote: Note some users also appear to have to clear cookies and sign back in, in addition to unchecking the location option. --ab On Fri, Mar 12, 2010 at 6:56 AM, Andrew Badera and...@badera.us wrote: This is also preventing posting from web UI if user has location option checked in settings. ∞ 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 Fri, Mar 12, 2010 at 6:49 AM, Thomas Woolway tswool...@gmail.com wrote: Yes, we're (TweetDeck) having the same issues, and it looks like Tweetie is as well - looks like something may have broken last night when rolling out the new geo features? Tom On Fri, Mar 12, 2010 at 10:20 AM, Rich rhyl...@gmail.com wrote: I'm seeing this too, whenever I send a lat or long parameter I get a 502 error and can't post any geo location tweets On Mar 12, 8:59 am, janole s...@mobileways.de wrote: Hi, I cannot send geotagged tweets via Gravity anymore. I'm always getting an HTTP 502 Bad Gateway error. Without attaching the lat/long vars, it's working. Strangely, I cannot send updates via the website either (twitter.com ). @janole -- Jan Ole Suhr / Gravity S60 Twitter Client o...@mobileways.de
[twitter-dev] We're rolling back the Content-Type header correction on OAuth responses to text/html today - Deprecation Notice
Hello Developers, Though it certainly would be more correct for us to properly set the Content-Type HTTP header throughout the OAuth token acquisition process to application/x-www-form-urlencoded, it has caused some issues with a number of applications. This afternoon we will restore the original behavior of setting the Content-Type header to text/ html. Being in compliance with the OAuth specification is important to us. Consider our old behavior now on deprecation notice. In four weeks or so we'll begin setting the Content-Type header correctly again. We'll announce a more formal deprecation date within a week of deployment. We invite you to do the right thing with us. Thanks! Taylor http://twitter.com/episod
[twitter-dev] Re: Introduce yourself!
Hi I'm Joe Bowman @joerussbowman and I'm actually a systems administrator who does web application development as a hobby. I'm currently working on a large project that will involve twitter, facebook, and other social and search apis to create a tool for enterprise customers. While making it and trying to discuss things via Twitter, I threw together a side project to side project at http://www.choip.me which allows you create a page of tweets with Disqus powered comments on the page, making it easier to handle those large conversations. I'm trying to wrap up choip.me so i can get back to my real project now, funny how things work.
[twitter-dev] Re: Application based on Search API
On 3月10日, 午後10:22, Andrew Badera and...@badera.us wrote: Not sure about the REST/Search API, but on the Streaming side: http://twitter.com/pdfs/streaming_api_eula.pdf ... see Restrictions ... Reading the Content License Agreement for the streaming API I am confused by how the granting of a license to publicly display the content from the streams (1i. Content License) works with the obligation to use only for internal purposes. What does internal purposes mean here? Does the unless expressly authorized herein part negate the restriction to not release the data publicly? Or this just to prevent people from reselling the data? from CLA start -- 1. Content License. Twitter grants you a nonexclusive, revocable license to use the Content to: (i) use, reproduce, distribute, transmit, publicly display and publicly perform the Content thereof, solely on and through your Service. 5. Your Obligations. (e) User Data. You may only use the Content and Content Feed and any data resulting or provided therefrom for internal purposes only and, unless expressly authorized herein, you may not publicly release or disclose any data or usage statistics or other information (in the aggregate or otherwise) regarding the Content. You agree to and will make available to Twitter any data, usage statistics or other information (in the aggregate) regarding the access and use of the Content. from CLA end -- - Steve Rife DIgital Garage http://twitter.com/melobubu
[twitter-dev] PHP class to interact with Twitter API on behalf of OAuth
Hi, I have written a PHP class (OAuth_Twitter.php GPL 3 ) works with OAuth, which authenticate with twitter API and provides methods to interact with Twitter API to update and retrieve list and user data like updates, followers, friends etc. If thecode base has OAuth, by including this single file class, you can do all actions using the methods of this class. All further development and contributions to this library would be appreciated. Download this class from PHPClasses.org http://www.phpclasses.org/browse/package/5941.html Bloghttp://basilsjournal.wordpress.com/2010/01/24/easy-steps-to-your-twitter-app-in-php-oauth_twitter-php/ GitHUB http://github.com/basilbthoppil/oauth_twitter -- thanks $ regards, ___ Basil B Thoppil ___ twitter handle twitter.com/BasilBThoppil ___ basilbthoppil[at]gmail[dot]com ___ +919538055505 Injoos Teamware - Online Group Collaboration for Knowledge Sharing and Document Management www.injoos.com
Re: [twitter-dev] Getting IP of user from Tweets
If user has provided permissions in that case which API method can provide me this information. Is it provided by new GEO functions created by Twitter. Can you please let me know the use of these functions also to get thte IP. Thanks. On Fri, Mar 12, 2010 at 9:47 AM, TJ Luoma luo...@luomat.net wrote: On Thu, Mar 11, 2010 at 10:08 PM, PRAVEEN KUMAR erpraveen2...@gmail.com wrote: I want to get IP address of user based on the last tweet sent by him. Message may be sent from machine or from mobile but in both the cases whatever IP he has used I need that in my application to find out user's current location. Please help me in getting this detail.Which API function can solve my problem ? None. That information isn't available via the API, nor should it be as it would be a major issue of privacy that I'm sure Twitter wouldn't want to open up without explicit permission from the users. TjL
[twitter-dev] Beginner pretty confused with rate limits...
Hi guys, I'm a french beginner Twitter API developper, coming from a COCOA/Obj- C background. I'm planning on working on a web site which will integrate with Twitter to retrieve the social graph of the logged user. But I don't understand how I'm supposed to retrieve the social graph, my user being limited to 150 requests per hour. Let's say one of my user have 10 followers. Just to retrieve the list of followers IDs, I would need 20 calls (followers/ids returns 5000 IDs). Then, I want to retrieve user details and here come the pain : user/ lookup only returns 20 users ! For the 10 followers, that would mean 5000 calls !!! Of course, I could use status/followers but this method returns 100 users at a time and I would need to make 1000 calls to retrieve the followers social graph.. And 10 followers/friends is not even that big. Some user have much bigger social graphs... So, I wonder how I am supposed to retrieve the social graph and how are you, experienced Twitter developpers, dealing with this problem. I have probably missed something obvious here. Thanks by advance for your help, Eric.
[twitter-dev] PHP class to interact with Twitter API on behalf of OAuth
Hi, I have written a PHP class (OAuth_Twitter.php GPL 3 ) works with OAuth, which authenticate with twitter API and provides methods to interact with Twitter API to update and retrieve list and user data like updates, followers, friends etc. If thecode base has OAuth, by including this single file class, you can do all actions using the methods of this class. All further development and contributions to this library would be appreciated. Download this class from http://www.phpclasses.org/browse/package/5941.html http://basilsjournal.wordpress.com/2010/01/24/easy-steps-to-your-twitter-app-in-php-oauth_twitter-php/ Also you can check out from GIT HUB http://github.com/basilbthoppil/oauth_twitter
[twitter-dev] Re: Impossible to make a reliable cursor on timelines using query args
Hi Zero, I'm with you on this one. I was about to posy a thread about this subject because I fail to understand how we are supposed to retrieve a consistent timeline with the current API. I'm also probably missing something here, being a beginner. Any help appreciated, Eric.
Re: [twitter-dev] Getting IP of user from Tweets
Hi Zac, can you please suggest how I can use these two new URLs. I mean what are the parameters need to be passed. Thanks. On Fri, Mar 12, 2010 at 1:12 PM, Zac Bowling zbowl...@gmail.com wrote: The user's IP isn't available. Would be a huge security and privacy issue. However location is possible using the new geo features. It's opt in and it requires the user use client that supports sending location data, but the accuracy is far greater then any kind of geo-ip lookup could offer. Zac Bowling On Thu, Mar 11, 2010 at 7:08 PM, PRAVEEN KUMAR erpraveen2...@gmail.comwrote: Hi All, I want to get IP address of user based on the last tweet sent by him. Message may be sent from machine or from mobile but in both the cases whatever IP he has used I need that in my application to find out user's current location. Please help me in getting this detail.Which API function can solve my problem ? Thanks. (Praveen Kumar)
[twitter-dev] Retweet parent
Is there a way of identify the root tweet by a retweet?
Re: [twitter-dev] Getting IP of user from Tweets
Nope. There is no API to retrieve the IP address of a user. On Mar 11, 2010, at 11:01 PM, PRAVEEN KUMAR erpraveen2...@gmail.com wrote: If user has provided permissions in that case which API method can provide me this information. Is it provided by new GEO functions created by Twitter. Can you please let me know the use of these functions also to get thte IP. Thanks. On Fri, Mar 12, 2010 at 9:47 AM, TJ Luoma luo...@luomat.net wrote: On Thu, Mar 11, 2010 at 10:08 PM, PRAVEEN KUMAR erpraveen2...@gmail.com wrote: I want to get IP address of user based on the last tweet sent by him. Message may be sent from machine or from mobile but in both the cases whatever IP he has used I need that in my application to find out user's current location. Please help me in getting this detail.Which API function can solve my problem ? None. That information isn't available via the API, nor should it be as it would be a major issue of privacy that I'm sure Twitter wouldn't want to open up without explicit permission from the users. TjL
[twitter-dev] Re: We're rolling back the Content-Type header correction on OAuth responses to text/html today - Deprecation Notice
I'll expand a bit on how you can prepare for this change. The steps of the OAuth flow where you make a connection to Twitter's OAuth endpoints to ask for request tokens or exchange a request tokens for access tokens respond with query-parameter key/value pairs like oauth_token and oauth_token_secret and sometimes other interesting bits of miscellany. Responses (and requests!) that involve query parameter key/value pairs have a Content-Type of application/x-www- form-urlencoded. Content-Types help HTTP clients interpret what's being sent to them. If you hand me a rock but call it a poodle, I'm going to be pretty confused. Right now, our Content-Type on OAuth responses is returning a poodle, text/html -- but we're not sending you HTML. We're sending you url-encoded query parameters. If your client broke as a result of this change, look deeply at your own code or any OAuth library or HTTP library that you use. Is there anything conditional where you are explicitly looking for a text/html response? Some query parameter processing libraries automatically dereference URL entities when processing. Maybe when you implementation was receiving text/html responses it didn't de-reference the entities, and so you wrote a routine to dereference them yourself. Now you're double dereferencing or not dereferencing at all, and then you store your request token or access token in a state that's different than you did before and when you hand your tokens off to the Twitter API they are malformed. That'd be bad. We'll explore some options that will allow you to test this in advance. Look deeply at your code. Challenge assumptions you made based on behavior that might not be to OAuth spec. This goes for everything OAuth related. If you find something that we do that isn't to the OAuth spec, let us know. And while you're at it, don't forget to switch all your OAuth end point URLs to using HTTPs: request_token, authorization, and access_token. Thanks! Taylor http://twitter.com/episod On Mar 12, 7:28 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hello Developers, Though it certainly would be more correct for us to properly set the Content-Type HTTP header throughout the OAuth token acquisition process to application/x-www-form-urlencoded, it has caused some issues with a number of applications. This afternoon we will restore the original behavior of setting the Content-Type header to text/ html. Being in compliance with the OAuth specification is important to us. Consider our old behavior now on deprecation notice. In four weeks or so we'll begin setting the Content-Type header correctly again. We'll announce a more formal deprecation date within a week of deployment. We invite you to do the right thing with us. Thanks! Taylorhttp://twitter.com/episod
Re: [twitter-dev] Getting IP of user from Tweets
http://dev.w3.org/geo/api/spec-source.html On Thu, Mar 11, 2010 at 11:46 PM, M. Edward (Ed) Borasky zzn...@gmail.comwrote: Actually, the native Twitter web page does use your IP address to geolocate. I haven't been able to make it work yet with Chrome, and I haven't tried it on Windows with IE8, but on Linux, with Firefox 3.6, Twitter asks the browser to determine location. Firefox does it thusly: http://www.mozilla.com/en-US/firefox/geolocation/ Curiously enough, I haven't found where Firefox announces what it has figured out for your location to you. I saw the menu that *Twitter* had of possible locations, but I didn't see anything in *Firefox* with that list! It must be there, but I haven't found it. -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erdos Quoting Zac Bowling zbowl...@gmail.com: The user's IP isn't available. Would be a huge security and privacy issue. However location is possible using the new geo features. It's opt in and it requires the user use client that supports sending location data, but the accuracy is far greater then any kind of geo-ip lookup could offer. Zac Bowling On Thu, Mar 11, 2010 at 7:08 PM, PRAVEEN KUMAR erpraveen2...@gmail.com wrote: Hi All, I want to get IP address of user based on the last tweet sent by him. Message may be sent from machine or from mobile but in both the cases whatever IP he has used I need that in my application to find out user's current location. Please help me in getting this detail.Which API function can solve my problem ? Thanks. (Praveen Kumar) -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Impossible to make a reliable cursor on timelines using query args
Zero wrote: 1. Assume we are at since_id = 1000. This was the last (highest) message id we had previously seen, which we have saved. 2. There is a sudden spiked and 2000 tweets come in. 3. We now try to query with since_id=1000, count=200 (the max). Unfortunately, we have missed 1800 tweets, because we only get the most recent 200 tweets. In step 3, you will get the 200 newest statuses, statuses 2801-3000. If you want 200 most recent statuses that are older than the ones you just got (that is, you want statuses 2601-2800), then you can query using max_id=2800, count=200, since_id=1000. You can keep doing this until Twitter returns zero tweets (which means it is refusing to give you any older tweets) or until Twitter returns the tweet with id=1000. (Note: You might be tempted to set since_id=1001 in order to avoid downloading the tweet with id 1000 twice; however, doing so will just cause problems and complications, and I don't recommend it.) Twitter is designed to be about what is happening right now, and not so much to be about everything that happened between the last time you checked (could be weeks ago) and right now. That's why there's no API call to get new tweets oldest-first, and that's why you can't even get access to tweets older than the most recent ~3000 or so. Although there are Twitter users that really want to read every tweet in their timelines, Twitter's design--especially the website UI--doesn't facilitate that behavior. If you are developing an end-user client, be aware that the user probably doesn't want to read every tweet and almost definitely doesn't want to wait for dozens of API calls to complete before they see the refreshed timeline. I recommend optimizing apps for showing what's happening right now, whenever it is practical to do so. When I first started using Twitter I treated it more like a self-organizing forum for having conversations with people (so reading every tweet would be important), but I gave up as Twitter simply doesn't work well for that now. Regards, Brian
[twitter-dev] 401 Unauthorized
Hi everyone, I am developing an application using Twitter API and I have encountered into a strange behavior connected with 401 error. I am using basic auth. When I run my application locally, it works just fine and I never get any 401 errors. However, when I run my application on another environment, I get 401 error in approximately 80% cases. I am completely sure that the credentials are correct. What makes this situation even more weird is that I am working with several accounts, and most of them work fine in both environments. I am experiencing problems only with one account. All accounts I work with are whitelisted, so rate limit should not be an issue here. I have no idea what may cause this behavior. Could you please explain me the possible reasons I am getting 401? Thanks, Uladzimir
Re: [twitter-dev] Retweet parent
Yes, look at the retweeted_status element contained in the status element ---Mark http://twitter.com/mccv 2010/3/12 Otávio Augusto Soares otavi...@gmail.com Is there a way of identify the root tweet by a retweet?
Re: [twitter-dev] Re: Application based on Search API
5e is intended to cover publication of general statistics about the streams, such as Tweets per second, etc., not the display of Tweets themselves. The new Commercial License should be a lot clearer. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Thu, Mar 11, 2010 at 9:51 PM, Stephen Rife stephenr...@gmail.com wrote: On 3月10日, 午後10:22, Andrew Badera and...@badera.us wrote: Not sure about the REST/Search API, but on the Streaming side: http://twitter.com/pdfs/streaming_api_eula.pdf ... see Restrictions ... Reading the Content License Agreement for the streaming API I am confused by how the granting of a license to publicly display the content from the streams (1i. Content License) works with the obligation to use only for internal purposes. What does internal purposes mean here? Does the unless expressly authorized herein part negate the restriction to not release the data publicly? Or this just to prevent people from reselling the data? from CLA start -- 1. Content License. Twitter grants you a nonexclusive, revocable license to use the Content to: (i) use, reproduce, distribute, transmit, publicly display and publicly perform the Content thereof, solely on and through your Service. 5. Your Obligations. (e) User Data. You may only use the Content and Content Feed and any data resulting or provided therefrom for internal purposes only and, unless expressly authorized herein, you may not publicly release or disclose any data or usage statistics or other information (in the aggregate or otherwise) regarding the Content. You agree to and will make available to Twitter any data, usage statistics or other information (in the aggregate) regarding the access and use of the Content. from CLA end -- - Steve Rife DIgital Garage http://twitter.com/melobubu
Re: [twitter-dev] Getting IP of user from Tweets
Thanks!! Incidentally, the Firefox documentation says that Firefox doesn't store the retrieved location info anywhere, either on my client or on Mozilla servers. It's passing whatever it got from Google's service directly to Twitter. So we have essentially Google and Twitter and my ISP all talking to each other trying to figure out where I am and mostly getting it wrong. Out of the three options Twitter gave me, two were totally wrong and one was right only in the broadest sense - technically, my zip code matches. -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erdos Quoting Raffi Krikorian ra...@twitter.com: http://dev.w3.org/geo/api/spec-source.html On Thu, Mar 11, 2010 at 11:46 PM, M. Edward (Ed) Borasky zzn...@gmail.comwrote: Actually, the native Twitter web page does use your IP address to geolocate. I haven't been able to make it work yet with Chrome, and I haven't tried it on Windows with IE8, but on Linux, with Firefox 3.6, Twitter asks the browser to determine location. Firefox does it thusly: http://www.mozilla.com/en-US/firefox/geolocation/ Curiously enough, I haven't found where Firefox announces what it has figured out for your location to you. I saw the menu that *Twitter* had of possible locations, but I didn't see anything in *Firefox* with that list! It must be there, but I haven't found it. -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erdos Quoting Zac Bowling zbowl...@gmail.com: The user's IP isn't available. Would be a huge security and privacy issue. However location is possible using the new geo features. It's opt in and it requires the user use client that supports sending location data, but the accuracy is far greater then any kind of geo-ip lookup could offer. Zac Bowling On Thu, Mar 11, 2010 at 7:08 PM, PRAVEEN KUMAR erpraveen2...@gmail.com wrote: Hi All, I want to get IP address of user based on the last tweet sent by him. Message may be sent from machine or from mobile but in both the cases whatever IP he has used I need that in my application to find out user's current location. Please help me in getting this detail.Which API function can solve my problem ? Thanks. (Praveen Kumar) -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Retweet parent
If the retweet was accomplished with the built-in retweet button, the original tweet is embedded inside the tweet - it's a status object value with the key retweeted_status. -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erd?s Quoting Otávio Augusto Soares otavi...@gmail.com: Is there a way of identify the root tweet by a retweet?
Re: [twitter-dev] Re: Application based on Search API
Am I to assume then that those who comment on tweet volume in the trade press by simply looking at status IDs as they go by, using the *REST* API, are exempt from this? I keep running into blog posts by social media scientists who are using status ID as a proxy for total tweet volume - there's even a web site that just displays the status ID counting up! What about people who are using the publicly-available sample and filter streams? Is it a violation of TOS to publish statistics derived from those? I ask because I've actually done that - right here on this list! If I'm not supposed to do that, I apologize. But it's stuff that people are insanely curious about, both for business reasons and for the sheer entertainment value of the Twitter phenomenon. -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erdos Quoting John Kalucki j...@twitter.com: 5e is intended to cover publication of general statistics about the streams, such as Tweets per second, etc., not the display of Tweets themselves. The new Commercial License should be a lot clearer. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Thu, Mar 11, 2010 at 9:51 PM, Stephen Rife stephenr...@gmail.com wrote: On 3月10日, 午後10:22, Andrew Badera and...@badera.us wrote: Not sure about the REST/Search API, but on the Streaming side: http://twitter.com/pdfs/streaming_api_eula.pdf ... see Restrictions ... Reading the Content License Agreement for the streaming API I am confused by how the granting of a license to publicly display the content from the streams (1i. Content License) works with the obligation to use only for internal purposes. What does internal purposes mean here? Does the unless expressly authorized herein part negate the restriction to not release the data publicly? Or this just to prevent people from reselling the data? from CLA start -- 1. Content License. Twitter grants you a nonexclusive, revocable license to use the Content to: (i) use, reproduce, distribute, transmit, publicly display and publicly perform the Content thereof, solely on and through your Service. 5. Your Obligations. (e) User Data. You may only use the Content and Content Feed and any data resulting or provided therefrom for internal purposes only and, unless expressly authorized herein, you may not publicly release or disclose any data or usage statistics or other information (in the aggregate or otherwise) regarding the Content. You agree to and will make available to Twitter any data, usage statistics or other information (in the aggregate) regarding the access and use of the Content. from CLA end -- - Steve Rife DIgital Garage http://twitter.com/melobubu
Re: [twitter-dev] Re: Application based on Search API
There is considerable inconsistency, ambiguity and change in these areas. For example, we announced the 50mm tweets/day thing recently. This is frustrating. We're working to rationalize all of this. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Fri, Mar 12, 2010 at 10:42 AM, M. Edward (Ed) Borasky zzn...@gmail.comwrote: Am I to assume then that those who comment on tweet volume in the trade press by simply looking at status IDs as they go by, using the *REST* API, are exempt from this? I keep running into blog posts by social media scientists who are using status ID as a proxy for total tweet volume - there's even a web site that just displays the status ID counting up! What about people who are using the publicly-available sample and filter streams? Is it a violation of TOS to publish statistics derived from those? I ask because I've actually done that - right here on this list! If I'm not supposed to do that, I apologize. But it's stuff that people are insanely curious about, both for business reasons and for the sheer entertainment value of the Twitter phenomenon. -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erdos Quoting John Kalucki j...@twitter.com: 5e is intended to cover publication of general statistics about the streams, such as Tweets per second, etc., not the display of Tweets themselves. The new Commercial License should be a lot clearer. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Thu, Mar 11, 2010 at 9:51 PM, Stephen Rife stephenr...@gmail.com wrote: On 3月10日, 午後10:22, Andrew Badera and...@badera.us wrote: Not sure about the REST/Search API, but on the Streaming side: http://twitter.com/pdfs/streaming_api_eula.pdf ... see Restrictions ... Reading the Content License Agreement for the streaming API I am confused by how the granting of a license to publicly display the content from the streams (1i. Content License) works with the obligation to use only for internal purposes. What does internal purposes mean here? Does the unless expressly authorized herein part negate the restriction to not release the data publicly? Or this just to prevent people from reselling the data? from CLA start -- 1. Content License. Twitter grants you a nonexclusive, revocable license to use the Content to: (i) use, reproduce, distribute, transmit, publicly display and publicly perform the Content thereof, solely on and through your Service. 5. Your Obligations. (e) User Data. You may only use the Content and Content Feed and any data resulting or provided therefrom for internal purposes only and, unless expressly authorized herein, you may not publicly release or disclose any data or usage statistics or other information (in the aggregate or otherwise) regarding the Content. You agree to and will make available to Twitter any data, usage statistics or other information (in the aggregate) regarding the access and use of the Content. from CLA end -- - Steve Rife DIgital Garage http://twitter.com/melobubu
Re: [twitter-dev] Re: Application based on Search API
Yeah - I totally understand, being a recovering capacity planner. ;-) -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erdos Quoting John Kalucki j...@twitter.com: There is considerable inconsistency, ambiguity and change in these areas. For example, we announced the 50mm tweets/day thing recently. This is frustrating. We're working to rationalize all of this. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Fri, Mar 12, 2010 at 10:42 AM, M. Edward (Ed) Borasky zzn...@gmail.comwrote: Am I to assume then that those who comment on tweet volume in the trade press by simply looking at status IDs as they go by, using the *REST* API, are exempt from this? I keep running into blog posts by social media scientists who are using status ID as a proxy for total tweet volume - there's even a web site that just displays the status ID counting up! What about people who are using the publicly-available sample and filter streams? Is it a violation of TOS to publish statistics derived from those? I ask because I've actually done that - right here on this list! If I'm not supposed to do that, I apologize. But it's stuff that people are insanely curious about, both for business reasons and for the sheer entertainment value of the Twitter phenomenon. -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky/ A mathematician is a device for turning coffee into theorems. ~ Paul Erdos Quoting John Kalucki j...@twitter.com: 5e is intended to cover publication of general statistics about the streams, such as Tweets per second, etc., not the display of Tweets themselves. The new Commercial License should be a lot clearer. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Thu, Mar 11, 2010 at 9:51 PM, Stephen Rife stephenr...@gmail.com wrote: On 3月10日, 午後10:22, Andrew Badera and...@badera.us wrote: Not sure about the REST/Search API, but on the Streaming side: http://twitter.com/pdfs/streaming_api_eula.pdf ... see Restrictions ... Reading the Content License Agreement for the streaming API I am confused by how the granting of a license to publicly display the content from the streams (1i. Content License) works with the obligation to use only for internal purposes. What does internal purposes mean here? Does the unless expressly authorized herein part negate the restriction to not release the data publicly? Or this just to prevent people from reselling the data? from CLA start -- 1. Content License. Twitter grants you a nonexclusive, revocable license to use the Content to: (i) use, reproduce, distribute, transmit, publicly display and publicly perform the Content thereof, solely on and through your Service. 5. Your Obligations. (e) User Data. You may only use the Content and Content Feed and any data resulting or provided therefrom for internal purposes only and, unless expressly authorized herein, you may not publicly release or disclose any data or usage statistics or other information (in the aggregate or otherwise) regarding the Content. You agree to and will make available to Twitter any data, usage statistics or other information (in the aggregate) regarding the access and use of the Content. from CLA end -- - Steve Rife DIgital Garage http://twitter.com/melobubu
Re: [twitter-dev] Impossible to make a reliable cursor on timelines using query args
Brian, Thanks for your reply. I suspected that the freshness was the reason that this was done. Also the fact that twitter started as a service for humans, and now is being used programatically. However, from an API standpoint this makes no sense. It's typical to want to crawl forward through a stream without missing anything. The current API creates a problem with reliability and also baroqueness of implementation. For those people thinking of Twitter as a messaging API, it seems incredibly unnatural to not be able to easily and reliably process things in chronological order without worrying about the rate being slightly too high. This exhibits itself as messages dropping once you have more than 200 in a sample period. True, you're not dropping messages, but that's the way it'll be perceived. The fact that the ids are non-sequential (for a stream), means that you have to bend over backward to do this simple thing. Note that the algorithm you give actually has to be altered. Since the ids are non-sequential, we'll have to backtrack by using the entire previous sequence (-200), and then find the message that is 200 back (it won't be N-200). So we'll start out with the largest range and then revise it as we discover the newest low water mark. This fact is hidden by the simpler numbers I chose to use. Also note that 3200 200. So I potentially have to do this backtracking 16 times to get all my (undropped) messages. Anyone who has a decent programming background will think this is lame. People who have less background will simply be confused (I've seen a fair amount of Twitter drops my tweets bug reports which could be due to this simple misunderstanding). Also, If I write out the full algorithm to do reliable forward iteration, I'd bet you'd get a double take from most people. Although I don't know the twitter code, this is really just determined by the sort order of your result set (whether you get the most recent results or least recent). It would be easy enough to put another switch that gives you the least recent, and default to most recent. That provides you will the result you want (people automatically get most recent), but allows anyone who needs the ability (most programmers), to scan forward easily. Respectfully, Zero. On Fri, Mar 12, 2010 at 8:47 AM, Brian Smith br...@briansmith.org wrote: Zero wrote: 1. Assume we are at since_id = 1000. This was the last (highest) message id we had previously seen, which we have saved. 2. There is a sudden spiked and 2000 tweets come in. 3. We now try to query with since_id=1000, count=200 (the max). Unfortunately, we have missed 1800 tweets, because we only get the most recent 200 tweets. In step 3, you will get the 200 newest statuses, statuses 2801-3000. If you want 200 most recent statuses that are older than the ones you just got (that is, you want statuses 2601-2800), then you can query using max_id=2800, count=200, since_id=1000. You can keep doing this until Twitter returns zero tweets (which means it is refusing to give you any older tweets) or until Twitter returns the tweet with id=1000. (Note: You might be tempted to set since_id=1001 in order to avoid downloading the tweet with id 1000 twice; however, doing so will just cause problems and complications, and I don't recommend it.) Twitter is designed to be about what is happening right now, and not so much to be about everything that happened between the last time you checked (could be weeks ago) and right now. That's why there's no API call to get new tweets oldest-first, and that's why you can't even get access to tweets older than the most recent ~3000 or so. Although there are Twitter users that really want to read every tweet in their timelines, Twitter's design--especially the website UI--doesn't facilitate that behavior. If you are developing an end-user client, be aware that the user probably doesn't want to read every tweet and almost definitely doesn't want to wait for dozens of API calls to complete before they see the refreshed timeline. I recommend optimizing apps for showing what's happening right now, whenever it is practical to do so. When I first started using Twitter I treated it more like a self-organizing forum for having conversations with people (so reading every tweet would be important), but I gave up as Twitter simply doesn't work well for that now. Regards, Brian
[twitter-dev] OAuth POST gets 401 with no data/error message returned
My desktop app uses Adobe AIR with Javascript. I'm using the OAuth javascript library from here: http://oauth.googlecode.com/svn/code/javascript/ I am able to POST with xAuth to get the token/token_secret. I am then able to GET timelines using the received tokens. However, so far I am unable to POST to send updates or create/destroy favorites. When I compare the Authorization header my code generates with the one you can generate manually at this site: http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/ they are identical. Nevertheless, I am getting a 401 status back but no JSON data telling me what the error is. First question: any idea what might be going on here? Second question: Under what conditions would one get a 401 status, but no data describing the error? Stumped!
Re: [twitter-dev] OAuth POST gets 401 with no data/error message returned
Can you present an example of you POSTing to a resource? An example signature base string of what you're trying to accomplish and the example POST body you are sending? Thanks! Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Fri, Mar 12, 2010 at 12:22 PM, SM sanja...@gmail.com wrote: My desktop app uses Adobe AIR with Javascript. I'm using the OAuth javascript library from here: http://oauth.googlecode.com/svn/code/javascript/ I am able to POST with xAuth to get the token/token_secret. I am then able to GET timelines using the received tokens. However, so far I am unable to POST to send updates or create/destroy favorites. When I compare the Authorization header my code generates with the one you can generate manually at this site: http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signing-requests/ they are identical. Nevertheless, I am getting a 401 status back but no JSON data telling me what the error is. First question: any idea what might be going on here? Second question: Under what conditions would one get a 401 status, but no data describing the error? Stumped!
[twitter-dev] Re: OAuth POST gets 401 with no data/error message returned
Is this issue perhaps related to the one I raised two days ago? http://bit.ly/9dG7jk On Mar 12, 4:55 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Can you present an example of you POSTing to a resource? An example signature base string of what you're trying to accomplish and the example POST body you are sending? Thanks! Taylor Singletary Developer Advocate, Twitterhttp://twitter.com/episod On Fri, Mar 12, 2010 at 12:22 PM, SM sanja...@gmail.com wrote: My desktop app uses Adobe AIR with Javascript. I'm using the OAuth javascript library from here: http://oauth.googlecode.com/svn/code/javascript/ I am able to POST with xAuth to get the token/token_secret. I am then able to GET timelines using the received tokens. However, so far I am unable to POST to send updates or create/destroy favorites. When I compare the Authorization header my code generates with the one you can generate manually at this site: http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signin... they are identical. Nevertheless, I am getting a 401 status back but no JSON data telling me what the error is. First question: any idea what might be going on here? Second question: Under what conditions would one get a 401 status, but no data describing the error? Stumped!
Re: [twitter-dev] Impossible to make a reliable cursor on timelines using query args
Am I missing something regarding the complexity of doing this? Ruby pseudo-code: my_unread_tweets = [] page = 1 count = 200 since_id = 123098485120985 while(page_of_tweets = get_tweets( http://api.twitter.com/1/statuses/home_timeline.json?page=#{page}count=#{count}since_id=#{since_id};)) do my_unread_tweets page_of_tweets end I agree it's more complex than get_all_my_tweets_disregarding_the_size_of_the_actual_list_since(since_id)... however implementing such a method in a scalable way is pretty rough. ---Mark http://twitter.com/mccv On Fri, Mar 12, 2010 at 11:11 AM, Zero Hero zeroh...@qoobly.com wrote: Brian, Thanks for your reply. I suspected that the freshness was the reason that this was done. Also the fact that twitter started as a service for humans, and now is being used programatically. However, from an API standpoint this makes no sense. It's typical to want to crawl forward through a stream without missing anything. The current API creates a problem with reliability and also baroqueness of implementation. For those people thinking of Twitter as a messaging API, it seems incredibly unnatural to not be able to easily and reliably process things in chronological order without worrying about the rate being slightly too high. This exhibits itself as messages dropping once you have more than 200 in a sample period. True, you're not dropping messages, but that's the way it'll be perceived. The fact that the ids are non-sequential (for a stream), means that you have to bend over backward to do this simple thing. Note that the algorithm you give actually has to be altered. Since the ids are non-sequential, we'll have to backtrack by using the entire previous sequence (-200), and then find the message that is 200 back (it won't be N-200). So we'll start out with the largest range and then revise it as we discover the newest low water mark. This fact is hidden by the simpler numbers I chose to use. Also note that 3200 200. So I potentially have to do this backtracking 16 times to get all my (undropped) messages. Anyone who has a decent programming background will think this is lame. People who have less background will simply be confused (I've seen a fair amount of Twitter drops my tweets bug reports which could be due to this simple misunderstanding). Also, If I write out the full algorithm to do reliable forward iteration, I'd bet you'd get a double take from most people. Although I don't know the twitter code, this is really just determined by the sort order of your result set (whether you get the most recent results or least recent). It would be easy enough to put another switch that gives you the least recent, and default to most recent. That provides you will the result you want (people automatically get most recent), but allows anyone who needs the ability (most programmers), to scan forward easily. Respectfully, Zero. On Fri, Mar 12, 2010 at 8:47 AM, Brian Smith br...@briansmith.org wrote: Zero wrote: 1. Assume we are at since_id = 1000. This was the last (highest) message id we had previously seen, which we have saved. 2. There is a sudden spiked and 2000 tweets come in. 3. We now try to query with since_id=1000, count=200 (the max). Unfortunately, we have missed 1800 tweets, because we only get the most recent 200 tweets. In step 3, you will get the 200 newest statuses, statuses 2801-3000. If you want 200 most recent statuses that are older than the ones you just got (that is, you want statuses 2601-2800), then you can query using max_id=2800, count=200, since_id=1000. You can keep doing this until Twitter returns zero tweets (which means it is refusing to give you any older tweets) or until Twitter returns the tweet with id=1000. (Note: You might be tempted to set since_id=1001 in order to avoid downloading the tweet with id 1000 twice; however, doing so will just cause problems and complications, and I don't recommend it.) Twitter is designed to be about what is happening right now, and not so much to be about everything that happened between the last time you checked (could be weeks ago) and right now. That's why there's no API call to get new tweets oldest-first, and that's why you can't even get access to tweets older than the most recent ~3000 or so. Although there are Twitter users that really want to read every tweet in their timelines, Twitter's design--especially the website UI--doesn't facilitate that behavior. If you are developing an end-user client, be aware that the user probably doesn't want to read every tweet and almost definitely doesn't want to wait for dozens of API calls to complete before they see the refreshed timeline. I recommend optimizing apps for showing what's happening right now, whenever it is practical to do so. When I first started using Twitter I treated it more like a self-organizing forum for having conversations with people (so
[twitter-dev] Re: OAuth POST gets 401 with no data/error message returned
Hi Taylor, Here is an example of trying to create a favorite on status 10390395026. Here is the base string: POSThttps%3A%2F%2Fapi.twitter.com%2F1%2Ffavorites%2Fcreate %2F10390395026.jsonid%3D10390395026%26oauth_consumer_key %3DoVpGXZGmqq7NyScJTLd7Xg%26oauth_nonce %3DogJ8y0%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp %3D1268428713%26oauth_token%3D10881- YdTJEhpXTBk2NJyg3juPXV8rq05jfGLp6HA1rk6MvI%26oauth_version%3D1.0 Here is the Authorization header: OAuth realm=,oauth_version=1.0,oauth_signature_method=HMAC- SHA1,oauth_nonce=ogJ8y0,oauth_token=10881- YdTJEhpXTBk2NJyg3juPXV8rq05jfGLp6HA1rk6MvI,oauth_timestamp=1268428713,oauth_signature=4EM %2FeX8xCFnW77zWtTTKFQoftaQ %3D,oauth_consumer_key=oVpGXZGmqq7NyScJTLd7Xg The POST body is just: id=10390395026 The URL is: https://api.twitter.com/1/favorites/create/10390395026.json Thanks. On Mar 12, 12:55 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Can you present an example of you POSTing to a resource? An example signature base string of what you're trying to accomplish and the example POST body you are sending? Thanks! Taylor Singletary Developer Advocate, Twitterhttp://twitter.com/episod On Fri, Mar 12, 2010 at 12:22 PM, SM sanja...@gmail.com wrote: My desktop app uses Adobe AIR with Javascript. I'm using the OAuth javascript library from here: http://oauth.googlecode.com/svn/code/javascript/ I am able to POST with xAuth to get the token/token_secret. I am then able to GET timelines using the received tokens. However, so far I am unable to POST to send updates or create/destroy favorites. When I compare the Authorization header my code generates with the one you can generate manually at this site: http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signin... they are identical. Nevertheless, I am getting a 401 status back but no JSON data telling me what the error is. First question: any idea what might be going on here? Second question: Under what conditions would one get a 401 status, but no data describing the error? Stumped!
[twitter-dev] Re: OAuth POST gets 401 with no data/error message returned
Taylor, Under what circumstances does your system return a 401 HTTP status code but does not include a properly formed XML or JSON error construct to explain the 401? Find that, and I think you will find the problem. On Mar 12, 4:22 pm, SM sanja...@gmail.com wrote: My desktop app uses Adobe AIR with Javascript. I'm using the OAuth javascript library from here: http://oauth.googlecode.com/svn/code/javascript/ I am able to POST with xAuth to get the token/token_secret. I am then able to GET timelines using the received tokens. However, so far I am unable to POST to send updates or create/destroy favorites. When I compare the Authorization header my code generates with the one you can generate manually at this site: http://hueniverse.com/2008/10/beginners-guide-to-oauth-part-iv-signin... they are identical. Nevertheless, I am getting a 401 status back but no JSON data telling me what the error is. First question: any idea what might be going on here? Second question: Under what conditions would one get a 401 status, but no data describing the error? Stumped!
Re: [twitter-dev] Impossible to make a reliable cursor on timelines using query args
* Mark McBride mmcbr...@twitter.com [100312 13:24]: Am I missing something regarding the complexity of doing this? Ruby pseudo-code: my_unread_tweets = [] page = 1 count = 200 since_id = 123098485120985 while(page_of_tweets = get_tweets( http://api.twitter.com/1/statuses/home_timeline.json?page=#{page}count=#{count}since_id=#{since_id};)) do my_unread_tweets page_of_tweets end I agree it's more complex than get_all_my_tweets_disregarding_the_size_of_the_actual_list_since(since_id)... however implementing such a method in a scalable way is pretty rough. I've never found since_id reliable. If I read the home timeline and save the most recent since_id, I often discover that new (i.e., statuses I've never seen) get posted out of sequence---they have lower IDs than the most recent since_id I saved. I think that's what makes using since_id as a cursor difficult. As a work-around, I keep a list of the most recent 200 ids I've seen and always get some overlap on a new call so I can pick up any recent statuses delivered out of order. -Marc
[twitter-dev] Refresh page via the API
Hey all, I'm using the Twitter API for a desktop application. Is there a way of sending a POST header (or something) that will automatically refresh the page after an action has been performed? For example, I can update the user's profile picture via my app, but the change can't be seen until I manually refresh the page. Is there a way, maybe with AJAX (?), to update the page automatically once the profile picture has been changed? Thanks for any help P Louw
[twitter-dev] Re: Sign Out no longer works
I can also confirm this in Chrome, but was fine in FireFox. In order to get rid of the issue, I deleted the Twitter cookie from Chrome's options menu and now it works fine.
[twitter-dev] Re: Search tweets from users in list
That feature does not exist yet. -Doug On Mar 11, 10:32 am, Lukas Müller webmas...@muellerlukas.de wrote: Hello, is there any possibility to search tweets from users that are on list xyz/123 (as example ;-)) via the twitter search RSS feed? Already tried the following queries with no result: @xyz/123 from:xyz/123 Thank you and greetings from germany :-) Lukas
Re: [twitter-dev] Refresh page via the API
1) No, don't think there is ... 2) Why do you need to refresh the page in a forced fashion in a desktop app? If you're running a web control with the page in it, refresh it ... if you're talking about any/all instances of the browser page ... well, why? ∞ 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 Fri, Mar 12, 2010 at 5:02 PM, P L homerthesimp...@gmail.com wrote: Hey all, I'm using the Twitter API for a desktop application. Is there a way of sending a POST header (or something) that will automatically refresh the page after an action has been performed? For example, I can update the user's profile picture via my app, but the change can't be seen until I manually refresh the page. Is there a way, maybe with AJAX (?), to update the page automatically once the profile picture has been changed? Thanks for any help P Louw
[twitter-dev] Re: We're rolling back the Content-Type header correction on OAuth responses to text/html today - Deprecation Notice
We'll be correcting this on Monday instead of today, folks. Have a great weekend. Taylor On Friday, March 12, 2010, Taylor Singletary taylorsinglet...@twitter.com wrote: Hello Developers, Though it certainly would be more correct for us to properly set the Content-Type HTTP header throughout the OAuth token acquisition process to application/x-www-form-urlencoded, it has caused some issues with a number of applications. This afternoon we will restore the original behavior of setting the Content-Type header to text/ html. Being in compliance with the OAuth specification is important to us. Consider our old behavior now on deprecation notice. In four weeks or so we'll begin setting the Content-Type header correctly again. We'll announce a more formal deprecation date within a week of deployment. We invite you to do the right thing with us. Thanks! Taylor http://twitter.com/episod -- Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod
[twitter-dev] Re: Refresh page via the API
Hi, The desktop application I'm working on is used to customize your Twitter page. Therefore, any changes you make in the app can be seen in your Twitter page. However, at the moment, everytime the user makes a change, they have to open the browser and refresh. I thought it would be nicer to simply show the changes in real time without the updating. On Mar 13, 12:17 am, Andrew Badera and...@badera.us wrote: 1) No, don't think there is ... 2) Why do you need to refresh the page in a forced fashion in a desktop app? If you're running a web control with the page in it, refresh it ... if you're talking about any/all instances of the browser page ... well, why? ∞ 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 Fri, Mar 12, 2010 at 5:02 PM, P L homerthesimp...@gmail.com wrote: Hey all, I'm using the Twitter API for a desktop application. Is there a way of sending a POST header (or something) that will automatically refresh the page after an action has been performed? For example, I can update the user's profile picture via my app, but the change can't be seen until I manually refresh the page. Is there a way, maybe with AJAX (?), to update the page automatically once the profile picture has been changed? Thanks for any help P Louw
Re: [twitter-dev] Re: Refresh page via the API
Host a webpage in your desktop app for those purposes. --ab On Fri, Mar 12, 2010 at 7:36 PM, P L homerthesimp...@gmail.com wrote: Hi, The desktop application I'm working on is used to customize your Twitter page. Therefore, any changes you make in the app can be seen in your Twitter page. However, at the moment, everytime the user makes a change, they have to open the browser and refresh. I thought it would be nicer to simply show the changes in real time without the updating. On Mar 13, 12:17 am, Andrew Badera and...@badera.us wrote: 1) No, don't think there is ... 2) Why do you need to refresh the page in a forced fashion in a desktop app? If you're running a web control with the page in it, refresh it ... if you're talking about any/all instances of the browser page ... well, why? ∞ 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 Fri, Mar 12, 2010 at 5:02 PM, P L homerthesimp...@gmail.com wrote: Hey all, I'm using the Twitter API for a desktop application. Is there a way of sending a POST header (or something) that will automatically refresh the page after an action has been performed? For example, I can update the user's profile picture via my app, but the change can't be seen until I manually refresh the page. Is there a way, maybe with AJAX (?), to update the page automatically once the profile picture has been changed? Thanks for any help P Louw
Re: [twitter-dev] Impossible to make a reliable cursor on timelines using query args
Not complex, just not obvious. When things are done in an unconventional way, you need more explaining, unfortunately. As mentioned before the only difference between what you're doing now and this is the order of the results. You return the top, and sometimes you need the bottom. Is that really hard to do in a scalable way? The disadvantage of not providing this is you now have to buffer, possibly 3200 messages, just to make sure things are correct. Also, we now have a potentially large latency (16 calls), to begin processing. None of this is a huge deal. It's cool you guys provide an API. If it can't be changed, it could be solved with docs. I'm not whining, I'm just sayin... Zero On Fri, Mar 12, 2010 at 1:24 PM, Mark McBride mmcbr...@twitter.com wrote: Am I missing something regarding the complexity of doing this? Ruby pseudo-code: my_unread_tweets = [] page = 1 count = 200 since_id = 123098485120985 while(page_of_tweets = get_tweets( http://api.twitter.com/1/statuses/home_timeline.json?page=#{page}count=#{count}since_id=#{since_id};)) do my_unread_tweets page_of_tweets end I agree it's more complex than get_all_my_tweets_disregarding_the_size_of_the_actual_list_since(since_id)... however implementing such a method in a scalable way is pretty rough. ---Mark http://twitter.com/mccv On Fri, Mar 12, 2010 at 11:11 AM, Zero Hero zeroh...@qoobly.com wrote: Brian, Thanks for your reply. I suspected that the freshness was the reason that this was done. Also the fact that twitter started as a service for humans, and now is being used programatically. However, from an API standpoint this makes no sense. It's typical to want to crawl forward through a stream without missing anything. The current API creates a problem with reliability and also baroqueness of implementation. For those people thinking of Twitter as a messaging API, it seems incredibly unnatural to not be able to easily and reliably process things in chronological order without worrying about the rate being slightly too high. This exhibits itself as messages dropping once you have more than 200 in a sample period. True, you're not dropping messages, but that's the way it'll be perceived. The fact that the ids are non-sequential (for a stream), means that you have to bend over backward to do this simple thing. Note that the algorithm you give actually has to be altered. Since the ids are non-sequential, we'll have to backtrack by using the entire previous sequence (-200), and then find the message that is 200 back (it won't be N-200). So we'll start out with the largest range and then revise it as we discover the newest low water mark. This fact is hidden by the simpler numbers I chose to use. Also note that 3200 200. So I potentially have to do this backtracking 16 times to get all my (undropped) messages. Anyone who has a decent programming background will think this is lame. People who have less background will simply be confused (I've seen a fair amount of Twitter drops my tweets bug reports which could be due to this simple misunderstanding). Also, If I write out the full algorithm to do reliable forward iteration, I'd bet you'd get a double take from most people. Although I don't know the twitter code, this is really just determined by the sort order of your result set (whether you get the most recent results or least recent). It would be easy enough to put another switch that gives you the least recent, and default to most recent. That provides you will the result you want (people automatically get most recent), but allows anyone who needs the ability (most programmers), to scan forward easily. Respectfully, Zero. On Fri, Mar 12, 2010 at 8:47 AM, Brian Smith br...@briansmith.orgwrote: Zero wrote: 1. Assume we are at since_id = 1000. This was the last (highest) message id we had previously seen, which we have saved. 2. There is a sudden spiked and 2000 tweets come in. 3. We now try to query with since_id=1000, count=200 (the max). Unfortunately, we have missed 1800 tweets, because we only get the most recent 200 tweets. In step 3, you will get the 200 newest statuses, statuses 2801-3000. If you want 200 most recent statuses that are older than the ones you just got (that is, you want statuses 2601-2800), then you can query using max_id=2800, count=200, since_id=1000. You can keep doing this until Twitter returns zero tweets (which means it is refusing to give you any older tweets) or until Twitter returns the tweet with id=1000. (Note: You might be tempted to set since_id=1001 in order to avoid downloading the tweet with id 1000 twice; however, doing so will just cause problems and complications, and I don't recommend it.) Twitter is designed to be about what is happening right now, and not so much to be about everything that happened between the last time you checked (could be weeks ago) and right
[twitter-dev] Re: Refresh page via the API
If this was a web application, would there be another way of doing this? Or would the web application also have to host the page in an iFrame or something? On Mar 13, 12:45 am, Andrew Badera and...@badera.us wrote: Host a webpage in your desktop app for those purposes. --ab On Fri, Mar 12, 2010 at 7:36 PM, P L homerthesimp...@gmail.com wrote: Hi, The desktop application I'm working on is used to customize your Twitter page. Therefore, any changes you make in the app can be seen in your Twitter page. However, at the moment, everytime the user makes a change, they have to open the browser and refresh. I thought it would be nicer to simply show the changes in real time without the updating. On Mar 13, 12:17 am, Andrew Badera and...@badera.us wrote: 1) No, don't think there is ... 2) Why do you need to refresh the page in a forced fashion in a desktop app? If you're running a web control with the page in it, refresh it ... if you're talking about any/all instances of the browser page ... well, why? ∞ 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 Fri, Mar 12, 2010 at 5:02 PM, P L homerthesimp...@gmail.com wrote: Hey all, I'm using the Twitter API for a desktop application. Is there a way of sending a POST header (or something) that will automatically refresh the page after an action has been performed? For example, I can update the user's profile picture via my app, but the change can't be seen until I manually refresh the page. Is there a way, maybe with AJAX (?), to update the page automatically once the profile picture has been changed? Thanks for any help P Louw
Re: [twitter-dev] Re: Refresh page via the API
iframe, or pop a new window ... --ab On Fri, Mar 12, 2010 at 8:02 PM, P L homerthesimp...@gmail.com wrote: If this was a web application, would there be another way of doing this? Or would the web application also have to host the page in an iFrame or something? On Mar 13, 12:45 am, Andrew Badera and...@badera.us wrote: Host a webpage in your desktop app for those purposes. --ab On Fri, Mar 12, 2010 at 7:36 PM, P L homerthesimp...@gmail.com wrote: Hi, The desktop application I'm working on is used to customize your Twitter page. Therefore, any changes you make in the app can be seen in your Twitter page. However, at the moment, everytime the user makes a change, they have to open the browser and refresh. I thought it would be nicer to simply show the changes in real time without the updating. On Mar 13, 12:17 am, Andrew Badera and...@badera.us wrote: 1) No, don't think there is ... 2) Why do you need to refresh the page in a forced fashion in a desktop app? If you're running a web control with the page in it, refresh it ... if you're talking about any/all instances of the browser page ... well, why? ∞ 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 Fri, Mar 12, 2010 at 5:02 PM, P L homerthesimp...@gmail.com wrote: Hey all, I'm using the Twitter API for a desktop application. Is there a way of sending a POST header (or something) that will automatically refresh the page after an action has been performed? For example, I can update the user's profile picture via my app, but the change can't be seen until I manually refresh the page. Is there a way, maybe with AJAX (?), to update the page automatically once the profile picture has been changed? Thanks for any help P Louw
[twitter-dev] Search API...searching for videos
Hi Currently in beat and viewable at http://www.tweetmasher.com, I am building a Twitter search application and slowly adding new features. One thing I would like to add is the ability to search for video links. Can anyone offer suggestions on what I would use in my search query? I assume the links would be mostly youtube videos.
[twitter-dev] Search API...searching for videos
Hi Currently in beta and viewable at http://www.tweetmasher.com, I am building a Twitter search application and slowly adding new features. One thing I would like to add is the ability to search for video links. Can anyone offer suggestions on what I would use in my search query? I assume the links would be mostly youtube videos.
Re: [twitter-dev] Impossible to make a reliable cursor on timelines using query args
Marc Mims wrote: I've never found since_id reliable. If I read the home timeline and save the most recent since_id, I often discover that new (i.e., statuses I've never seen) get posted out of sequence---they have lower IDs than the most recent since_id I saved. Do you have some example of this that you could point out? I know if the user follows new people then what you described might happen. Otherwise, AFAICT, it should/must work, so if it doesn't then a bug should be filed. Some (interactive, mobile) clients cannot afford to re-download lots of tweets just to double-check whether some slipped through the cracks somehow. I know a few weeks ago, Twitter said that status_ids will stop being strictly increasing at some point. If so, a new paging mechanism (not based on since_id or max_id) must also be deployed before that change happens. Regards, Brian
[twitter-dev] Search API from:username performance issues?
Hi dev team, I've gotten progressively more complaints from TweetGrid users about searches in the form of from:username not updating in a timely fashion. I haven't changed my code in a while, so after investigating it appears that the search index does lag behind a bit for from: searches as compared to just keywords. Is this a bug, or intentional? Example (if you read this in time): http://twitter.com/resourcefulmom compared to http://search.twitter.com/search?q=from:resourcefulmom Thanks, -Chad
[twitter-dev] Re: Refresh page via the API
Ah, I see. Thanks for the help Andrew! On Mar 13, 1:25 am, Andrew Badera and...@badera.us wrote: iframe, or pop a new window ... --ab On Fri, Mar 12, 2010 at 8:02 PM, P L homerthesimp...@gmail.com wrote: If this was a web application, would there be another way of doing this? Or would the web application also have to host the page in an iFrame or something? On Mar 13, 12:45 am, Andrew Badera and...@badera.us wrote: Host a webpage in your desktop app for those purposes. --ab On Fri, Mar 12, 2010 at 7:36 PM, P L homerthesimp...@gmail.com wrote: Hi, The desktop application I'm working on is used to customize your Twitter page. Therefore, any changes you make in the app can be seen in your Twitter page. However, at the moment, everytime the user makes a change, they have to open the browser and refresh. I thought it would be nicer to simply show the changes in real time without the updating. On Mar 13, 12:17 am, Andrew Badera and...@badera.us wrote: 1) No, don't think there is ... 2) Why do you need to refresh the page in a forced fashion in a desktop app? If you're running a web control with the page in it, refresh it ... if you're talking about any/all instances of the browser page ... well, why? ∞ 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 Fri, Mar 12, 2010 at 5:02 PM, P L homerthesimp...@gmail.com wrote: Hey all, I'm using the Twitter API for a desktop application. Is there a way of sending a POST header (or something) that will automatically refresh the page after an action has been performed? For example, I can update the user's profile picture via my app, but the change can't be seen until I manually refresh the page. Is there a way, maybe with AJAX (?), to update the page automatically once the profile picture has been changed? Thanks for any help P Louw
[twitter-dev] DM's limit for whitelisted user
I have one question for whitelisted user's rate limit. Are how many DM whitelisted user can send in a day understood? I manage the web service that uses DM, and want to transmit a lot of DM. My best regards.