[twitter-dev] Retweeted status redirects to original status in browser
Hi I have noticed this problem from my app as well as in browser. Lets say userA logs into twitter and hits the link for retweeted status of his by userB say http://twitter.com/userB/status/retweetedStatusID , this actually redirects to http://twitter.com/userA/status/OriginalStatusID (i.e, users own original status) if userA signs out then it won't redirect. Basically i am trying to see who retweeted my tweets in Retweets of Me' tab from my app then i tried to click the status of that user but it is redirecting to my own original status (because users sign in with twitter to grant access to my app and usually they wont sign out from browser after grating access to app). It works fine when the user is not required to signin (i.e, after storing their access tokens). Looks odd to me. I always want to see the retweeted status not my own status. Is this intended or a bug? Srikanth
[twitter-dev] 401 - Unauthorized error when diacritics in status
I am getting an error message when posting accent marks and other diacritics in a status update. I saw that there was an issue [1] posted in April of last year about this problem. It seems to be with the signature generation for OAuth with the encoding of accent marks. I am using .Net(C#), and I can't figure out how to fix this. Do I use a different encoding? Anybody have any ideas on how to fix this in .Net? [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 Ryan
[twitter-dev] Search API..receiving the refresh_url
Hi If you do a search from the official twitter search page, every 10-20 seconds or so, you receive a json response with a refresh_url. I'm building my own Twitter search appliance and want to incorporate this feature. How can I receive this refresh url after every search and is there a way to change the interval that it updates?
[twitter-dev] search api and until parameter
Hi; Is there a date limit for until parameter in search API? Is so what is it? For example following gives nothing. http://search.twitter.com/search.atom?q=googleuntil=2010-01-21 -- Enes Akar http://www.linkedin.com/pub/enes-akar/7/835/3aa
Re: [twitter-dev] What's expected in a good User Agent?
Hi, I'd at least place an email address is useful incase your client has an issue, they can then contact you to resolve it. Scott. On 23 Feb 2010, at 01:30, enderp wrote: Hi all, I'm using the search API with CURL and I know how to set a user agent. My question is, what does twitter want to see there? A unique English word name? A random string (so it's sure to be unique)? An email? Something else? Thanks for any help. smime.p7s Description: S/MIME cryptographic signature
[twitter-dev] Re: Introduce yourself!
Hi, I'm Alex. London-based. Currently working on a conversation tracking application. My tools are .Net specific, thanks Mayo for LinqToTwitter library! Thanks to all of you for providing great advice! On Feb 21, 11:03 pm, Anton Krasovsky anton.krasov...@gmail.com wrote: Hi Guys, @ak1394 Anton Krasovsky, Dublin, Ireland. Author of PavoMe (twitter client for java mobiles). I've been working with twitter for about half a year, and my efforts are split between working on client application and backend server (which handles all communication between handset and Twitter servers, and is written in Erlang). So far the only twitter opensource released by me was an Erlang client library. I don't think anyone except me actually uses it. I'm looking forward to see xAuth avaiable - few users in China will appreciate not having to struggle with GFW to get their oauth tokens. http://github.com/ak1394/twerl http://pavo.me Regards, Anton On Fri, Feb 19, 2010 at 8:20 PM, Abraham Williams 4bra...@gmail.com wrote: We have not had an introductions thread in a long time (or ever that I could find) so I'm starting one. Don't forget to add an answer to the tools thread [1](Gmail link [2]) as well. I'm Abraham Williams, I've been working with the Twitter API and this group since early 2008. I do mostly freelance Drupal and Twitter API integration and personal projects. I love seeing the creative projects developers build or integrate with the API and look forward to meeting many of you at Chirp. TwitterOAuth [3] the first PHP library to support OAuth is built and maintained by me, and will hopefully see a new release soon. I also built a fun Chrome extension [4] that integrates common friends and followers into Twitter profiles. The feature I would most like added to the API is a conversation method to get replies to a specific status. So. Who are you, what do you do, what have you built, and what feature do you most want to see added? @Abraham [1] http://groups.google.com/group/twitter-development-talk/browse_thread... [2] https://mail.google.com/mail/#inbox/12680cd0fa59011e [3] https://chrome.google.com/extensions/detail/npdjhmblakdjfnnajeomfbogo... [4] http://code.google.com/p/twitter-api/issues/detail?id=142 -- Abraham Williams | Community Advocate |http://abrah.am Project | Out Loud |http://outloud.labs.poseurtech.com This email is: [ ] shareable [x] ask first [ ] private. Sent from Seattle, WA, United States
Re: [twitter-dev] Search API..receiving the refresh_url
If you are performing repeated automated searches and/or looking for low-latency results, you should be using the Streaming API. http://groups.google.com/group/twitter-api-announce/browse_thread/thread/c8c713bb63fac24c -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Tue, Feb 23, 2010 at 8:55 AM, eco_bach bac...@gmail.com wrote: Hi If you do a search from the official twitter search page, every 10-20 seconds or so, you receive a json response with a refresh_url. I'm building my own Twitter search appliance and want to incorporate this feature. How can I receive this refresh url after every search and is there a way to change the interval that it updates?
Re: [twitter-dev] Permanent Profile URL
You could make a custom TinyURL. Or you could buy a domain name and have it forward to your Twitter profile.
Re: [twitter-dev] Permanent Profile URL
On Mon, Feb 22, 2010 at 11:10 PM, Paul Tarjan ptar...@gmail.com wrote: Is there a permanent profile URL for users? Something like http://twitter.com/account/profile?user_id=14757201 I'd like something that is ID based (since users can change their short form) but is guaranteed to resolve for a while. Possibly even 302ing to the http://twitter.com/name I could use http://api.twitter.com/1/users/show.xml?user_id=14757201 but it is rather long and doesn't return any nice HTML You could make a custom TinyURL.
Re: [twitter-dev] search api and until parameter
Search results are kept for a fairly short period of time... definitely not a full month. This URL http://search.twitter.com/search.json?q=googleuntil=2010-02-20 Does return results. ---Mark http://twitter.com/mccv On Tue, Feb 23, 2010 at 1:04 AM, enes akar enesa...@gmail.com wrote: Hi; Is there a date limit for until parameter in search API? Is so what is it? For example following gives nothing. http://search.twitter.com/search.atom?q=googleuntil=2010-01-21 -- Enes Akar http://www.linkedin.com/pub/enes-akar/7/835/3aa
Re: [twitter-dev] Permanent Profile URL
so - i'm confused are you asking about a place to get API data? if so, then, for example, http://twitter.com/users/show/8285392.xml works for me. On Mon, Feb 22, 2010 at 9:10 PM, Paul Tarjan ptar...@gmail.com wrote: Is there a permanent profile URL for users? Something like http://twitter.com/account/profile?user_id=14757201 I'd like something that is ID based (since users can change their short form) but is guaranteed to resolve for a while. Possibly even 302ing to the http://twitter.com/name I could use http://api.twitter.com/1/users/show.xml?user_id=14757201 but it is rather long and doesn't return any nice HTML Thanks Paul -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Permanent Profile URL
* Lil Peck lilp...@gmail.com [100223 10:48]: On Mon, Feb 22, 2010 at 11:10 PM, Paul Tarjan ptar...@gmail.com wrote: Is there a permanent profile URL for users? Something like http://twitter.com/account/profile?user_id=14757201 I'd like something that is ID based (since users can change their short form) but is guaranteed to resolve for a while. Possibly even 302ing to the http://twitter.com/name I could use http://api.twitter.com/1/users/show.xml?user_id=14757201 but it is rather long and doesn't return any nice HTML You could make a custom TinyURL. http://twitter.com/account/redirect_by_id?id=14757201 -Marc
Re: [twitter-dev] 401 - Unauthorized error when diacritics in status
Ooh, if this is the case then it will definitely stop me from using oAuth for Feathers (http://feathersapp.com) since diacritics are an essential part of Unicode art. Very interested in hearing what you find out. All the best, Aral On Tue, Feb 23, 2010 at 1:44 PM, eclipsed4utoo ryanalford...@gmail.comwrote: I am getting an error message when posting accent marks and other diacritics in a status update. I saw that there was an issue [1] posted in April of last year about this problem. It seems to be with the signature generation for OAuth with the encoding of accent marks. I am using .Net(C#), and I can't figure out how to fix this. Do I use a different encoding? Anybody have any ideas on how to fix this in .Net? [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 Ryan
Re: [twitter-dev] Re: Introduce yourself!
Hello folks. I'm Jen. Just moved to SF from Scotland where I ran a data intelligence startup which dug into Twitter sentiment analysis (see festbuzz.com for an example). I'm consulting, writing, speaking and doing a day job at a Silicon Valley tech co. for now, but I have a list as long as my arm of Twitter NLP stuff to play with. I'm going to chime in on the consensus for get replies to a specific tweet. Would certainly help with the anaphora resolution stuff I'm working on. j On Tue, Feb 23, 2010 at 7:54 AM, alexro arodyg...@gmail.com wrote: Hi, I'm Alex. London-based. Currently working on a conversation tracking application. My tools are .Net specific, thanks Mayo for LinqToTwitter library! Thanks to all of you for providing great advice! On Feb 21, 11:03 pm, Anton Krasovsky anton.krasov...@gmail.com wrote: Hi Guys, @ak1394 Anton Krasovsky, Dublin, Ireland. Author of PavoMe (twitter client for java mobiles). I've been working with twitter for about half a year, and my efforts are split between working on client application and backend server (which handles all communication between handset and Twitter servers, and is written in Erlang). So far the only twitter opensource released by me was an Erlang client library. I don't think anyone except me actually uses it. I'm looking forward to see xAuth avaiable - few users in China will appreciate not having to struggle with GFW to get their oauth tokens. http://github.com/ak1394/twerl http://pavo.me Regards, Anton On Fri, Feb 19, 2010 at 8:20 PM, Abraham Williams 4bra...@gmail.com wrote: We have not had an introductions thread in a long time (or ever that I could find) so I'm starting one. Don't forget to add an answer to the tools thread [1](Gmail link [2]) as well. I'm Abraham Williams, I've been working with the Twitter API and this group since early 2008. I do mostly freelance Drupal and Twitter API integration and personal projects. I love seeing the creative projects developers build or integrate with the API and look forward to meeting many of you at Chirp. TwitterOAuth [3] the first PHP library to support OAuth is built and maintained by me, and will hopefully see a new release soon. I also built a fun Chrome extension [4] that integrates common friends and followers into Twitter profiles. The feature I would most like added to the API is a conversation method to get replies to a specific status. So. Who are you, what do you do, what have you built, and what feature do you most want to see added? @Abraham [1] http://groups.google.com/group/twitter-development-talk/browse_thread... [2] https://mail.google.com/mail/#inbox/12680cd0fa59011e [3] https://chrome.google.com/extensions/detail/npdjhmblakdjfnnajeomfbogo... [4] http://code.google.com/p/twitter-api/issues/detail?id=142 -- Abraham Williams | Community Advocate |http://abrah.am Project | Out Loud |http://outloud.labs.poseurtech.com This email is: [ ] shareable [x] ask first [ ] private. Sent from Seattle, WA, United States
[twitter-dev] Re: Introduce yourself!
Hello folks. I'm @johnkeyes and am located in the Boston area. By day, I am involved in an enterprise Twitter-related project for my employer. By night, I am building a couple different Twitter projects, using PHP and C#. This list has been a great source of information, and it's fantastic to hear what everyone is working on -- thanks! I'm looking forward to meeting folks at Chirp. John
Re: [twitter-dev] 401 - Unauthorized error when diacritics in status
I believe it has been fixed in some libraries in other programming languages, but I can't figure out how to do it in .Net. Ryan On Tue, Feb 23, 2010 at 12:38 PM, Aral Balkan aralbal...@gmail.com wrote: Ooh, if this is the case then it will definitely stop me from using oAuth for Feathers (http://feathersapp.com) since diacritics are an essential part of Unicode art. Very interested in hearing what you find out. All the best, Aral On Tue, Feb 23, 2010 at 1:44 PM, eclipsed4utoo ryanalford...@gmail.comwrote: I am getting an error message when posting accent marks and other diacritics in a status update. I saw that there was an issue [1] posted in April of last year about this problem. It seems to be with the signature generation for OAuth with the encoding of accent marks. I am using .Net(C#), and I can't figure out how to fix this. Do I use a different encoding? Anybody have any ideas on how to fix this in .Net? [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 Ryan
Re: [twitter-dev] 401 - Unauthorized error when diacritics in status
this would be news to me - if you have a way to replicate this, and you are confident its not your oauth libraries, then please let me know. On Tue, Feb 23, 2010 at 11:04 AM, Ryan Alford ryanalford...@gmail.comwrote: I believe it has been fixed in some libraries in other programming languages, but I can't figure out how to do it in .Net. Ryan On Tue, Feb 23, 2010 at 12:38 PM, Aral Balkan aralbal...@gmail.comwrote: Ooh, if this is the case then it will definitely stop me from using oAuth for Feathers (http://feathersapp.com) since diacritics are an essential part of Unicode art. Very interested in hearing what you find out. All the best, Aral On Tue, Feb 23, 2010 at 1:44 PM, eclipsed4utoo ryanalford...@gmail.comwrote: I am getting an error message when posting accent marks and other diacritics in a status update. I saw that there was an issue [1] posted in April of last year about this problem. It seems to be with the signature generation for OAuth with the encoding of accent marks. I am using .Net(C#), and I can't figure out how to fix this. Do I use a different encoding? Anybody have any ideas on how to fix this in .Net? [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 Ryan -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
Re: [twitter-dev] Re: Streaming API connection abandonment separation anxiety issues
On 02/23/2010 09:37 AM, John Kalucki wrote: Judging my some additional data found yesterday, this drop apparently happens most often at around say 14:30 and 16:00 UTC, a time period that we also happen to steeply climb into our daily peak traffic. By our monitoring, we have not experienced a connection drop so far this morning. But, I have no confidence that all streams are dropped during all events, and it's possible that our monitoring streams were just lucky -- and any true client drops were lost in the organic connection churn noise. If you have data to the contrary between say 14:00 UTC and 18:00 UTC today, please let us know. Otherwise, we're going to keep watching and waiting for this to happen again. Once we have a drop, we have a team of networking engineers at the ready to run through a pre-planned sequence of investigatory steps. With any luck, we'll identify the issue. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. My sample client is still running. I could write a script to go through the huge files and look for gaps, since it apparently detected the gap yesterday. Or I could just ship you the code - I think it's in one of my open source repos on Github. ;-) On Mon, Feb 22, 2010 at 4:30 PM, Sergi sdepab...@gmail.com wrote: I experienced the problem for the last time today - in fact now yesterday - at 15:55 and after 5 minutes Phirehose reconnected. [22-Feb-2010 15:55:25] Phirehose: Consume rate: 0 status/sec (1 total), avg enqueueStatus(): 0.05ms, avg checkFilterPredicates(): 0.01ms (3 total) over 60 seconds. [22-Feb-2010 16:01:22] Phirehose: Idle timeout: No statuses received for 300 seconds. Reconnecting. Sergi On Feb 22, 7:51 pm, John Kalucki j...@twitter.com wrote: A number of developers have reported abandoned connection issues on the Streaming API starting, perhaps, about two weeks ago. The symptoms include a long-established TCP connection to stream.twitter.com going quiet, with the connection mysteriously held open for perhaps hours afterward. After sorting through a lot of conflicting data and chasing a few wild geese, I finally reproduced this problem at Feb 22 15:55 UTC (7:55am PST). I'd imagine that a number of streams were abandoned at this time. If you had a correlative experience within a minute or so of 15:55 UTC, please respond to this message. We currently suspect an infrequent hardware load balancer issue, perhaps related to a recent configuration change. The appearance is that the load balancer is, for whatever reason, dropping valid connections, closing the connection to the Streaming API servers, but not sending a TCP FIN or TCP RST to the client. This is bad. We're treating this as a critical production issue and working through the details with network operations. I'll follow up as we learn more. -John Kaluckihttp://twitter.com/jkalucki Infrastructure, Twitter Inc. -- M. Edward (Ed) Borasky borasky-research.net/m-edward-ed-borasky A mathematician is a device for turning coffee into theorems. ~ Paul Erdős
Re: [twitter-dev] 401 - Unauthorized error when diacritics in status
I think it is the way that .Net handles encoding of the diacritics. I don't think it's a Twitter api issue. I was hoping that another .Net developer had run into this issue and had fixed it. Ryan On Tue, Feb 23, 2010 at 2:07 PM, Raffi Krikorian ra...@twitter.com wrote: this would be news to me - if you have a way to replicate this, and you are confident its not your oauth libraries, then please let me know. On Tue, Feb 23, 2010 at 11:04 AM, Ryan Alford ryanalford...@gmail.comwrote: I believe it has been fixed in some libraries in other programming languages, but I can't figure out how to do it in .Net. Ryan On Tue, Feb 23, 2010 at 12:38 PM, Aral Balkan aralbal...@gmail.comwrote: Ooh, if this is the case then it will definitely stop me from using oAuth for Feathers (http://feathersapp.com) since diacritics are an essential part of Unicode art. Very interested in hearing what you find out. All the best, Aral On Tue, Feb 23, 2010 at 1:44 PM, eclipsed4utoo ryanalford...@gmail.comwrote: I am getting an error message when posting accent marks and other diacritics in a status update. I saw that there was an issue [1] posted in April of last year about this problem. It seems to be with the signature generation for OAuth with the encoding of accent marks. I am using .Net(C#), and I can't figure out how to fix this. Do I use a different encoding? Anybody have any ideas on how to fix this in .Net? [1] - http://code.google.com/p/twitter-api/issues/detail?id=433 Ryan -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
[twitter-dev] Re: 401 - Unauthorized error when diacritics in status
I'm not sure if this is the same issue you are encountering, but I had a similar issue in my C# twitter app. The post I made is here: http://groups.google.com/group/twitter-development-talk/browse_thread/thread/ef11efdd0a9cf194/6950ce9721a48609#6950ce9721a48609 On Feb 23, 2:13 pm, Ryan Alford ryanalford...@gmail.com wrote: I think it is the way that .Net handles encoding of the diacritics. I don't think it's a Twitter api issue. I was hoping that another .Net developer had run into this issue and had fixed it. Ryan On Tue, Feb 23, 2010 at 2:07 PM, Raffi Krikorian ra...@twitter.com wrote: this would be news to me - if you have a way to replicate this, and you are confident its not your oauth libraries, then please let me know. On Tue, Feb 23, 2010 at 11:04 AM, Ryan Alford ryanalford...@gmail.comwrote: I believe it has been fixed in some libraries in other programming languages, but I can't figure out how to do it in .Net. Ryan On Tue, Feb 23, 2010 at 12:38 PM, Aral Balkan aralbal...@gmail.comwrote: Ooh, if this is the case then it will definitely stop me from using oAuth for Feathers (http://feathersapp.com) since diacritics are an essential part of Unicode art. Very interested in hearing what you find out. All the best, Aral On Tue, Feb 23, 2010 at 1:44 PM, eclipsed4utoo ryanalford...@gmail.comwrote: I am getting an error message when posting accent marks and other diacritics in a status update. I saw that there was an issue [1] posted in April of last year about this problem. It seems to be with the signature generation for OAuth with the encoding of accent marks. I am using .Net(C#), and I can't figure out how to fix this. Do I use a different encoding? Anybody have any ideas on how to fix this in .Net? [1] -http://code.google.com/p/twitter-api/issues/detail?id=433 Ryan -- Raffi Krikorian Twitter Platform Team http://twitter.com/raffi
[twitter-dev] Re: Permanent Profile URL
Perfect, Marc hit the nail on the head. Thank you. http://twitter.com/account/redirect_by_id?id=14757201 On Feb 23, 10:53 am, Marc Mims marc.m...@gmail.com wrote: * Lil Peck lilp...@gmail.com [100223 10:48]: On Mon, Feb 22, 2010 at 11:10 PM, Paul Tarjan ptar...@gmail.com wrote: Is there a permanent profile URL for users? Something like http://twitter.com/account/profile?user_id=14757201 I'd like something that is ID based (since users can change their short form) but is guaranteed to resolve for a while. Possibly even 302ing to thehttp://twitter.com/name I could use http://api.twitter.com/1/users/show.xml?user_id=14757201 but it is rather long and doesn't return any nice HTML You could make a custom TinyURL. http://twitter.com/account/redirect_by_id?id=14757201 -Marc
[twitter-dev] Why No Chinese in advanced search site?
Just curious why chinese is not a language option in the advanced search page?
[twitter-dev] Quality Filter in Streaming API with follow predicates
From http://apiwiki.twitter.com/Streaming-API-Documentation#ResultQuality: Removing the quality filter from streams with follow predicates is, quite reasonably, an often requested feature. Does anyone have any ideas on the status of this feature or any suggested workarounds? We are working on a new version of TweetPo.st powered by the Streaming API. However, some of our beta testers are apparently being quality filtered and we are trying to figure out a way to get their tweets. They are OAuthed, so we can in theory poll their accounts directly for updates. However, we don't have a systematic way of figuring out whether they are being quality filtered in the first place or if that status changes subsequently. So, our specific questions are: A) Is there any update on the status of removing the quality filter from streams with follow predicates? B) Is there any way to programmatically check if a given user is being quality filtered? C) Is there any way to be notified when a given user's quality filter status changes? Any help here would be greatly appreciated as we would ideally like to use the Streaming API as much as possible and it's hard to explain to users when their tweets don't show up. Thanks! -jonathan = Jonathan Strauss, Co-Founder http://snowballfactory.com Campaign tracking for social media - http://awe.sm A smarter way to update Facebook from Twitter - http://tweetpo.st Sharecount button for Facebook - http://www.fbshare.me
[twitter-dev] Sorry
Please ignore my previous post request, i meant to post in Abraham Williams Introduce Yourself thread. First time with Google Groups, sorry.
[twitter-dev] Introduction: Zapp Jackson
I am Zapp Jackson - I love the Twitter API, and have a jailbroken twitter client for the iPhone and iPod touch called TwitLock. I also am working on a TwitLock phone edition, which utilizes the Twilio API, and allows you to post Twitter statuses via your phone. I have applied for a job with Twitter as well, as Software Engineer - Platform/APIs.
[twitter-dev] Re: Twitter API and ETags - No 304s?
On Feb 22, 1:31 pm, Tim Haines tmhai...@gmail.com wrote: The Twitter API returns ETags, that seem to change when the content changes and otherwise not. It doesn't seem to return 304's when the same ETag is sent back to it though. Has anyone seen it send 304s? The API always seem to return no-cache and past expiry headers, it *does* send 304's when you pass the etag in a If-None-Match header: $ curl --head http://twitter.com/users/show.xml?screen_name=philoye HTTP/1.1 200 OK Date: Wed, 24 Feb 2010 01:13:10 GMT Server: hi X-RateLimit-Limit: 150 X-Transaction: 1266973990-97869-341 Status: 200 OK ETag: 3022db84cebe898b561a397c20063f5e Last-Modified: Wed, 24 Feb 2010 01:13:10 GMT X-RateLimit-Remaining: 136 X-Runtime: 0.02109 Content-Type: application/xml; charset=utf-8 Pragma: no-cache Content-Length: 2057 X-RateLimit-Class: api Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post- check=0 Expires: Tue, 31 Mar 1981 05:00:00 GMT X-Revision: DEV X-RateLimit-Reset: 1266976693 Set-Cookie: _twitter_sess=BAh7CDoRdHJhbnNfcHJvbXB0MDoHaWQiJTA0MWYzMTQyNGZjMjU5MTJlYWQz %250AOWU1MzhhMmYxZTkzIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz %250AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA-- ba31f1ea9e0800e1b4c3d564484c8fdf6885183d; domain=.twitter.com; path=/ Vary: Accept-Encoding Connection: close $ curl --head --header 'If-None-Match: 3022db84cebe898b561a397c20063f5e' http://twitter.com/users/show.xml?screen_name=philoye HTTP/1.1 304 Not Modified Date: Wed, 24 Feb 2010 01:13:41 GMT Server: hi Connection: close ETag: 3022db84cebe898b561a397c20063f5e Expires: Tue, 31 Mar 1981 05:00:00 GMT Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post- check=0 Vary: Accept-Encoding Set-Cookie: _twitter_sess=BAh7CDoHaWQiJTRiYTlkN2RlODVhN2NlNmMzMWM3MWY4Y2FhNGUwZjc4Igpm %250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG %250AOgpAdXNlZHsAOhF0cmFuc19wcm9tcHQw-- fce6e5410dc71d9720ac35c5470bc7220e8b4ceb; domain=.twitter.com; path=/ The key is to send the ETag in a If-None-Match header, not an ETag header. I still don't understand why the Cache-Control and Expires headers are set this way though. Cheers, p.
Re: [twitter-dev] Re: Twitter API and ETags - No 304s?
Hi Phil, Thanks for sending through the examples. I must have been setting the header incorrectly - missing the quotes or something. It does indeed work for favorites too, whether authenticated or not.. Tim. On Wed, Feb 24, 2010 at 2:15 PM, philoye phil...@gmail.com wrote: On Feb 22, 1:31 pm, Tim Haines tmhai...@gmail.com wrote: The Twitter API returns ETags, that seem to change when the content changes and otherwise not. It doesn't seem to return 304's when the same ETag is sent back to it though. Has anyone seen it send 304s? The API always seem to return no-cache and past expiry headers, it *does* send 304's when you pass the etag in a If-None-Match header: $ curl --head http://twitter.com/users/show.xml?screen_name=philoye HTTP/1.1 200 OK Date: Wed, 24 Feb 2010 01:13:10 GMT Server: hi X-RateLimit-Limit: 150 X-Transaction: 1266973990-97869-341 Status: 200 OK ETag: 3022db84cebe898b561a397c20063f5e Last-Modified: Wed, 24 Feb 2010 01:13:10 GMT X-RateLimit-Remaining: 136 X-Runtime: 0.02109 Content-Type: application/xml; charset=utf-8 Pragma: no-cache Content-Length: 2057 X-RateLimit-Class: api Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post- check=0 Expires: Tue, 31 Mar 1981 05:00:00 GMT X-Revision: DEV X-RateLimit-Reset: 1266976693 Set-Cookie: _twitter_sess=BAh7CDoRdHJhbnNfcHJvbXB0MDoHaWQiJTA0MWYzMTQyNGZjMjU5MTJlYWQz %250AOWU1MzhhMmYxZTkzIgpmbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFz %250AaDo6Rmxhc2hIYXNoewAGOgpAdXNlZHsA-- ba31f1ea9e0800e1b4c3d564484c8fdf6885183d; domain=.twitter.com; path=/ Vary: Accept-Encoding Connection: close $ curl --head --header 'If-None-Match: 3022db84cebe898b561a397c20063f5e' http://twitter.com/users/show.xml?screen_name=philoye HTTP/1.1 304 Not Modified Date: Wed, 24 Feb 2010 01:13:41 GMT Server: hi Connection: close ETag: 3022db84cebe898b561a397c20063f5e Expires: Tue, 31 Mar 1981 05:00:00 GMT Cache-Control: no-cache, no-store, must-revalidate, pre-check=0, post- check=0 Vary: Accept-Encoding Set-Cookie: _twitter_sess=BAh7CDoHaWQiJTRiYTlkN2RlODVhN2NlNmMzMWM3MWY4Y2FhNGUwZjc4Igpm %250AbGFzaElDOidBY3Rpb25Db250cm9sbGVyOjpGbGFzaDo6Rmxhc2hIYXNoewAG %250AOgpAdXNlZHsAOhF0cmFuc19wcm9tcHQw-- fce6e5410dc71d9720ac35c5470bc7220e8b4ceb; domain=.twitter.com; path=/ The key is to send the ETag in a If-None-Match header, not an ETag header. I still don't understand why the Cache-Control and Expires headers are set this way though. Cheers, p.
Re: [twitter-dev] Update count by source?
You will have to incorporate some sort of statistics collection within your application. Abraham On Tue, Feb 23, 2010 at 15:03, Christopher Finke cfi...@gmail.com wrote: Is there a way that I, as a Twitter client developer, can find out how many tweets were sent by my application in a given day/week/month? -- Abraham Williams | Community Advocate | http://abrah.am Project | Out Loud | http://outloud.labs.poseurtech.com This email is: [ ] shareable [x] ask first [ ] private. Sent from Seattle, WA, United States
Re: [twitter-dev] What's expected in a good User Agent?
I've noticed this question come up a couple of times. I think a more detailed example is in order for the docs. Abraham On Tue, Feb 23, 2010 at 01:18, Scott Wilcox sc...@tig.gr wrote: Hi, I'd at least place an email address is useful incase your client has an issue, they can then contact you to resolve it. Scott. On 23 Feb 2010, at 01:30, enderp wrote: Hi all, I'm using the search API with CURL and I know how to set a user agent. My question is, what does twitter want to see there? A unique English word name? A random string (so it's sure to be unique)? An email? Something else? Thanks for any help. -- Abraham Williams | Community Advocate | http://abrah.am Project | Out Loud | http://outloud.labs.poseurtech.com This email is: [ ] shareable [x] ask first [ ] private. Sent from Seattle, WA, United States
[twitter-dev] Re: Twitter API and ETags - No 304s?
On Feb 24, 1:20 pm, Tim Haines tmhai...@gmail.com wrote: Thanks for sending through the examples. I must have been setting the header incorrectly - missing the quotes or something. It does indeed work for favorites too, whether authenticated or not.. Good to hear... I was having the same problem. First I was stupidly sending the ETag header instead of If-None-Match, then I wrapped quotes incorrectly. For anyone else, via curl, you need to wrap the ETag in double quotes and the whole header in single quotes. Or at least I did on my box, like so (extra spaces added for clarity). --header ' If-None-Match: 3022db84cebe898b561a397c20063f5e '
[twitter-dev] Re: Introduce yourself!
Hi, I'm Patrick Kennedy, and I grew up in Hawaii. I have worked with Department of State for several years now, currently in Vietnam, and next up, Laos - definitely your S/E Asian connection - come and visit anytime. :-) Anyways, I created a buggy twitter client in PHP (Basic Auth), and I am becoming very capable with OAuth coding now. I hope to release something cool by June, but who knows. While I may not be the best programmer in the world, I find Twitter to be a super fun way to get into coding. Often my shortcomings are with things that are difficult for many - like regex, etc - and if I had more access and code, I'd be 100 times better. Even so, I enjoy the open API twitter fun of it, and I hope to make something useful and cool in the not-too- distant future. Most of my coding is with PHP, but I am going to try out RoR pretty soon.
Re: [twitter-dev] Quality Filter in Streaming API with follow predicates
This has been the next generally scheduled user-facing feature for quite some time on the Streaming API. We've been pushing scale, operational and efficiency branches recently, and haven't exposed anything user-facing in quite some time. If we can't keep well ahead of the organic tweet growth, we're in a tough spot. I hope that we can transition back to features soon enough, and this feature should be near, if not at the top of, the list. There's a git branch that has this feature largely working, but I'm afraid that the merge back to master is going to be a very painful one. The bits, they rot. As far as programmatic detection, there are significant policy issues in play around filtered users. Getting this feature shipped is the real solution. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Tue, Feb 23, 2010 at 4:25 PM, Jonathan Strauss jonat...@snowballfactory.com wrote: From http://apiwiki.twitter.com/Streaming-API-Documentation#ResultQuality: Removing the quality filter from streams with follow predicates is, quite reasonably, an often requested feature. Does anyone have any ideas on the status of this feature or any suggested workarounds? We are working on a new version of TweetPo.st powered by the Streaming API. However, some of our beta testers are apparently being quality filtered and we are trying to figure out a way to get their tweets. They are OAuthed, so we can in theory poll their accounts directly for updates. However, we don't have a systematic way of figuring out whether they are being quality filtered in the first place or if that status changes subsequently. So, our specific questions are: A) Is there any update on the status of removing the quality filter from streams with follow predicates? B) Is there any way to programmatically check if a given user is being quality filtered? C) Is there any way to be notified when a given user's quality filter status changes? Any help here would be greatly appreciated as we would ideally like to use the Streaming API as much as possible and it's hard to explain to users when their tweets don't show up. Thanks! -jonathan = Jonathan Strauss, Co-Founder http://snowballfactory.com Campaign tracking for social media - http://awe.sm A smarter way to update Facebook from Twitter - http://tweetpo.st Sharecount button for Facebook - http://www.fbshare.me