[twitter-dev] Trending Topics
See guys, there you go again. The Trending Topics is no longer in the sidebar, there's nothing on the Twitter Status blog about it. Do a search for Trending and you'll notice that we are all wondering what's going on. Do we need to have a refresher course in Transparency 101 ? What gives?
[twitter-dev] Re: 500 errors using search API
Hi there, Can you provide some sample URLs giving you trouble so I know where to look? Thanks; – Matt Sanford / @mzsanford Twitter Dev On Apr 29, 2009, at 8:35 PM, rleber wrote: I am getting frequent 500 errors when using the search api. This began at about 7pm Eastern today. The code I am using worked fine prior to that. Any advice or assistance would be appreciated.
[twitter-dev] Re: Trending Topics
Hi there, It looks like there was a problem with that portion of the site causing 500s for everyone with the new sidebar (a small percentage or users). To let those people at least use the site the feature was disabled until it can be fixed. That seem reasonable but I'm not sure why the person turning it off didn't update status.twitter.com. My guess is that it was overlooked rather than actively decided against. I'll figure out who turned off the feature today and pass along the snarky comments. Thanks; — Matt Sanford / @mzsanford On Apr 30, 2009, at 6:57 AM, Mobasoft wrote: See guys, there you go again. The Trending Topics is no longer in the sidebar, there's nothing on the Twitter Status blog about it. Do a search for Trending and you'll notice that we are all wondering what's going on. Do we need to have a refresher course in Transparency 101 ? What gives?
[twitter-dev] Re: account/rate_limit_status API probrem
Hi there, The most common cause of X-RateLimit-Remaining not matching a call to rate_limit_status is that you're not authenticated when calling rate_limit_status but you are when making the call with the different header. This is usually caused by libraries that require a 401 response before they provide credentials, as is the case with .NET unless configured otherwise. Thanks; – Matt Sanford / @mzsanford Twitter Dev On Apr 29, 2009, at 5:46 PM, moz wrote: Hi. Is it only I that such a phenomenon occurs though remaining-hits of returning information seems not to be correct, and to differ from information that returns by the X-RateLimit-Remaining header about API of rate-limit-status? With this, I am embarrassed because it consumes API though there is a method of seeing the X-RateLimit-Remaining header when the method of limiting API is issued, too.
[twitter-dev] Re: 401: Unauthorized application or token on friendship/exists
Getting the same problem for /status/followers.json Request for /verify/credentials.json works but not for /status/ followers.json verify credentials header: GET /account/verify_credentials.json? oauth_nonce=1867266443966123327oauth_timestamp=1241073359oauth_consumer_key=xKG4bNvaxBrHFD7tiLQAoauth_signature_method=HMAC- SHA1oauth_version=1.0oauth_token=20687908- j3YphuX2QGTipIvapvJK4RdHld19meNecc0PtQBvsoauth_signature=Esh %2FToKgEYj6rCVbzBHp5UBan%2Bk%3D HTTP/1.1 Accept-Encoding: identity Host: twitter.com Connection: close User-Agent: Python-urllib/2.5 status followers header: GET /status/followers.json? oauth_nonce=6139498031622514402oauth_timestamp=1241073817oauth_consumer_key=xKG4bNvaxBrHFD7tiLQAoauth_signature_method=HMAC- SHA1oauth_version=1.0oauth_token=20687908- j3YphuX2QGTipIvapvJK4RdHld19meNecc0PtQBvsoauth_signature=iW01C77P %2FjSzzY%2Fnuma3Oq7rzGI%3D HTTP/1.1 Accept-Encoding: identity Host: twitter.com Connection: close User-Agent: Python-urllib/2.5 going to file a bug On Apr 28, 9:06 am, tayknight taykni...@gmail.com wrote: I'm fairly sure I'm getting a proper token. Using the pagehttp://www.hueniverse.com/hueniverse/2008/10/beginners-gui-1.htmlI get the same signature as in my failing url. GET looks like:http://twitter.com/friendship/exists.json? oauth_consumer_key=Rg4VBVUvAoThpl78duF3Rg oauth_nonce=375494971125145587 oauth_signature=xWCdscsa6I4GJphDIQAnsDmjyhM%3D oauth_signature_method=HMAC-SHA1 oauth_timestamp=1240933535 oauth_token=765803-e2mAy2wkQy4wRI9LQC73cZwbiwmmJ7mZJh04MZiWk oauth_version=1.0 user_a=tayknight user_b=wxtweet I must be missing something obvious. Other GETs work. I can provide secrets to TwitterAPI folks if they want to help debug. Thanks.
[twitter-dev] grouping twitter accounts
Hi, I would like to develop some kind of mashup by categorizing a few twitter profiles(the idea would be something like http://tweetminster.co.uk/mps/party/LD) the problem is that I'm not sure how to focus it without hammering the twitter api servers. the first idea was just to perform a search for each profile my application had but this could eventually make a lot of requests. then, the obvious approach would be to use the friends timeline of my own account(we plan to update it, not just leech the content) but then I'm not sure how to search for statuses within a certain category I would have defined before any idea how to approach this? maybe I should organize the content fetched from the friends timeline as far as the api doesn't offer a direct solution? thanks in advance -- def dagi3d(me) case me when :web then http://dagi3d.net; when :twitter then http://twitter.com/dagi3d; end end
[twitter-dev] Re: REST API Not quite following
We're checking by two ways: Manually through the web Through the friends and followers lists of the REST API (The new friends do not exist) We wonder if it might be a problem only with https requests and XML format or if others have this problem with http, JSON, and so on. We checked immediately, after several minutes, after several hours, and now after days. Regards On Apr 29, 3:50 pm, Nick Arnett nick.arn...@gmail.com wrote: On Wed, Apr 29, 2009 at 12:41 PM, CentralB-Dev developm...@central-b.comwrote: Although our app gets expected (successful) responses from both https://twitter.com/friendships/create.xml?user_id= and https://twitter.com/friendships/create/.xml , Neither actually follows (creates a friendship) successfully. Are you sure that this isn't just a cache issue... how are you checking to see if the friendship exists? Did you check again after a while? Nick
[twitter-dev] Re: 500 errors using search API
Never mind -- I found the problem. (Undocumented change to behavior of Ruby twitter gem...) Sorry for wasting anybody's time :-) rl On Apr 29, 11:35 pm, rleber richard.le...@gmail.com wrote: I am getting frequent 500 errors when using the search api. This began at about 7pm Eastern today. The code I am using worked fine prior to that. Any advice or assistance would be appreciated.
[twitter-dev] How to read the result from the search api using java
Hi, I am trying to use the twitter search api jsp file. can you tell me how I can read the data from the atom result. sravs..
[twitter-dev] background image
Hello all, Im am currently making a website that uses the twitter api. I am able to obtain the background image of my twitter profile using the url http://twitter.com/users/show.xml?screen_name=screen_name_here Which returns something like this: http://static.twitter.com/images/themes/theme1/bg.gif On my website, I am wondering if I should save this background image onto my own database and loat it from my server or load it directly from the twitter website. I am thinking that the 'friendliest' way is to save the image onto our server and load it from there. This way, we dont have to use Twitter's bandwidth everytime. What are your opinions on this?
[twitter-dev] Re: Creating a search histogram
Hmmm. Very clever solution to use Google and I agree that unique people MENTIONING a term is more valuable then the actual mention. It's wild to me that the Twitter API has not started to incorporate more stat related metrics. Seems crazy to me that a server as useful as Twitter that has become a mainstream media tool does not yet provide metrics that would be business useful. Hopefully soon I suppose... On Apr 29, 1:27 pm, Nick Arnett nick.arn...@gmail.com wrote: On Wed, Apr 29, 2009 at 8:57 AM, JoshL jlippi...@gmail.com wrote: Does anyone have a good suggestion for how to obtain the data needed to know how many mentions of a specific term occured PER day over a given time period, such as two years? Omniture's SiteCatalyst seems to be doing it somehow. Can't be done right now, since there is nowhere near that much history in Twitter's search index. Even when there is, there will undoubtedly be an upper limit on results, which will prevent you from getting all the history for popular terms. However, if the data were available, the methodology would be fairly simple. You'd search on the terms and then iterate through the search results, counting unique mentions by day. I'll suggest that for most purposes, the number of unique people mentioning a term is more interesting than the number of mentions (I've done a lot of that kind of analysis). I guess there's another possibility - use Google, which has more history. e.g.http://www.google.com/search?hl=enrlz=1C1CHMI_enUS291US307q=site:tw... For that term, there are about 56,000 results... but you can't get more than 10,000 results from Google. And you'd have to either parse the resulting pages to extract the status messages or just capture the screen names and use the Twitter APIs to get the statuses... fairly horrendous amount of work to get the data. For the sake of completeness, I'll note that you can get beyond 10,000 results from Google by excluding terms, but there are also daily limits to Google API queries. And... knowing that Twitter Trends is doing essentially the same thing over the short term, I would suspect that if there's a need for this, Twitter will eventually tackle it. Those who are doing it now must have captured the data earlier if they have a year's worth. Nick
[twitter-dev] Allow ?count= parameter for favorites functions
We're trying to gather meaningful statistics about Twitter favorites, which means we have to crawl a high number of profiles and, worse, a high number of people's favorites' pages. The latter also has to be done regularly to update the statistics. Currently, the /favorites method only always returns 20 favorites per page. It would be useful for our app, and I assume for other apps as well, if the /favorites method also accepted the ?count parameter. From our preliminary testing, few users give more than 150 favs per month, so the max count of 200 should be sufficient to cut down our API usage five- to sixfold. Please star issue 539 if you support this: http://code.google.com/p/twitter-api/issues/detail?id=539 Regards, Matt
[twitter-dev] Inconsistency between different representations of data
Just noticed that the followers count on my profile at twitter.com is different from the count retrieved via the API. The JSON via the API gives the correct count, while the website reflects a false count triggered by someone who must have clicked follow twice, which was also reflected by a doubled email notification.
[twitter-dev] Re: Seeing truncated XML responses again
Received two more similar issues yesterday and one this morning at 10am. In all instances it was a GET request for either statuses/ friends or statuses/followers and the page parameter was always 1. If you need any more info please let me know. On Apr 29, 8:31 pm, Dossy Shiobara do...@panoptic.com wrote: On 4/29/09 8:22 PM, Doug Williams wrote: Operations is going to look in to this. It is apparently a known issue but very difficult to track down given the complexities of our architecture so expect the fix to take a while. For now, please make sure your application has logic to support this error case gracefully. Thanks, Matt. Anything I can do to help? Feel free to have them contact me directly if necessary. I'm fully versed in packet capture and analysis and I've been a sysadmin in various past lives. -- Dossy Shiobara | do...@panoptic.com |http://dossy.org/ Panoptic Computer Network |http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Re: 401: Unauthorized application or token on friendship/exists
friendships/exists.json *not* friendship/exists.json On Tue, Apr 28, 2009 at 11:06, tayknight taykni...@gmail.com wrote: I'm fairly sure I'm getting a proper token. Using the page http://www.hueniverse.com/hueniverse/2008/10/beginners-gui-1.html I get the same signature as in my failing url. GET looks like: http://twitter.com/friendship/exists.json? oauth_consumer_key=Rg4VBVUvAoThpl78duF3Rg oauth_nonce=375494971125145587 oauth_signature=xWCdscsa6I4GJphDIQAnsDmjyhM%3D oauth_signature_method=HMAC-SHA1 oauth_timestamp=1240933535 oauth_token=765803-e2mAy2wkQy4wRI9LQC73cZwbiwmmJ7mZJh04MZiWk oauth_version=1.0 user_a=tayknight user_b=wxtweethttp://twitter.com/friendship/exists.json?%0Aoauth_consumer_key=Rg4VBVUvAoThpl78duF3Rg%0Aoauth_nonce=375494971125145587%0Aoauth_signature=xWCdscsa6I4GJphDIQAnsDmjyhM%3D%0Aoauth_signature_method=HMAC-SHA1%0Aoauth_timestamp=1240933535%0Aoauth_token=765803-e2mAy2wkQy4wRI9LQC73cZwbiwmmJ7mZJh04MZiWk%0Aoauth_version=1.0%0Auser_a=tayknight%0Auser_b=wxtweet I must be missing something obvious. Other GETs work. I can provide secrets to TwitterAPI folks if they want to help debug. Thanks. -- Abraham Williams | http://the.hackerconundrum.com Hacker | http://abrah.am | http://twitter.com/abraham Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States
[twitter-dev] Re: 401: Unauthorized application or token on friendship/exists
statuses/followers.json *not* status/followers.json On Thu, Apr 30, 2009 at 01:47, app apphac...@gmail.com wrote: Getting the same problem for /status/followers.json Request for /verify/credentials.json works but not for /status/ followers.json verify credentials header: GET /account/verify_credentials.json? oauth_nonce=1867266443966123327oauth_timestamp=1241073359oauth_consumer_key=xKG4bNvaxBrHFD7tiLQAoauth_signature_method=HMAC- SHA1oauth_version=1.0oauth_token=20687908- j3YphuX2QGTipIvapvJK4RdHld19meNecc0PtQBvsoauth_signature=Esh %2FToKgEYj6rCVbzBHp5UBan%2Bk%3D HTTP/1.1 Accept-Encoding: identity Host: twitter.com Connection: close User-Agent: Python-urllib/2.5 status followers header: GET /status/followers.json? oauth_nonce=6139498031622514402oauth_timestamp=1241073817oauth_consumer_key=xKG4bNvaxBrHFD7tiLQAoauth_signature_method=HMAC- SHA1oauth_version=1.0oauth_token=20687908- j3YphuX2QGTipIvapvJK4RdHld19meNecc0PtQBvsoauth_signature=iW01C77P %2FjSzzY%2Fnuma3Oq7rzGI%3D HTTP/1.1 Accept-Encoding: identity Host: twitter.com Connection: close User-Agent: Python-urllib/2.5 going to file a bug On Apr 28, 9:06 am, tayknight taykni...@gmail.com wrote: I'm fairly sure I'm getting a proper token. Using the pagehttp:// www.hueniverse.com/hueniverse/2008/10/beginners-gui-1.htmlI get the same signature as in my failing url. GET looks like:http://twitter.com/friendship/exists.json? oauth_consumer_key=Rg4VBVUvAoThpl78duF3Rg oauth_nonce=375494971125145587 oauth_signature=xWCdscsa6I4GJphDIQAnsDmjyhM%3D oauth_signature_method=HMAC-SHA1 oauth_timestamp=1240933535 oauth_token=765803-e2mAy2wkQy4wRI9LQC73cZwbiwmmJ7mZJh04MZiWk oauth_version=1.0 user_a=tayknight user_b=wxtweet I must be missing something obvious. Other GETs work. I can provide secrets to TwitterAPI folks if they want to help debug. Thanks. -- Abraham Williams | http://the.hackerconundrum.com Hacker | http://abrah.am | http://twitter.com/abraham Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States
[twitter-dev] Re: How to read the result from the search api using java
Hi there, That's really up to you, but probably something like the rome library [1]. Thanks; – Matt Sanford / @mzsanford Twitter Dev [1] - https://rome.dev.java.net/ On Apr 30, 2009, at 2:47 AM, sravs.. wrote: Hi, I am trying to use the twitter search api jsp file. can you tell me how I can read the data from the atom result. sravs..
[twitter-dev] Re: REST API Not quite following
On Thu, Apr 30, 2009 at 04:31, CentralB-Dev developm...@central-b.comwrote: We wonder if it might be a problem only with https requests and XML format or if others have this problem with http, JSON, and so on. You could easily test this yourself and know for sure. We checked immediately, after several minutes, after several hours, and now after days. Regards On Apr 29, 3:50 pm, Nick Arnett nick.arn...@gmail.com wrote: On Wed, Apr 29, 2009 at 12:41 PM, CentralB-Dev developm...@central-b.comwrote: Although our app gets expected (successful) responses from both https://twitter.com/friendships/create.xml?user_id= and https://twitter.com/friendships/create/.xml , Neither actually follows (creates a friendship) successfully. Are you sure that this isn't just a cache issue... how are you checking to see if the friendship exists? Did you check again after a while? Nick -- Abraham Williams | http://the.hackerconundrum.com Hacker | http://abrah.am | http://twitter.com/abraham Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States
[twitter-dev] Re: grouping twitter accounts
If you are just pulling all this information from your own account's friends timeline, how would you be hammering the twitter API? I can't imagine you'd need to do that more than once a minute (tops!). That still leaves you with 40+ additional calls / hr you can make. Cache all the data you get back locally, of course. As far as splitting up the categories -- just grab everything you haven't already grabbed from your timeline and do the categorization locally. (twitter doesn't actually have categories, unless you use different accounts -- but that would be kinda silly.) -- Patrick Burrows http://www.CleverHumans.com On Thu, Apr 30, 2009 at 5:05 AM, Borja Martín bor...@dagi3d.net wrote: Hi, I would like to develop some kind of mashup by categorizing a few twitter profiles(the idea would be something like http://tweetminster.co.uk/mps/party/LD) the problem is that I'm not sure how to focus it without hammering the twitter api servers. the first idea was just to perform a search for each profile my application had but this could eventually make a lot of requests. then, the obvious approach would be to use the friends timeline of my own account(we plan to update it, not just leech the content) but then I'm not sure how to search for statuses within a certain category I would have defined before any idea how to approach this? maybe I should organize the content fetched from the friends timeline as far as the api doesn't offer a direct solution? thanks in advance -- def dagi3d(me) case me when :web then http://dagi3d.net; when :twitter then http://twitter.com/dagi3d; end end
[twitter-dev] Re: Trending Topics
Oh thanks Matt, but as you can see I have already removed snarky - I though about it some more and figured that it wasn't any of my business. You guys are doing a good job, I should keep the snarkiness to a low roar, and only when needed. Thanks for the information. By the way, I'm about ready to turn on a huge app, add some antifreeze to your servers, they're gonna get hot. On Apr 30, 9:50 am, Matt Sanford m...@twitter.com wrote: Hi there, It looks like there was a problem with that portion of the site causing 500s for everyone with the new sidebar (a small percentage or users). To let those people at least use the site the feature was disabled until it can be fixed. That seem reasonable but I'm not sure why the person turning it off didn't update status.twitter.com. My guess is that it was overlooked rather than actively decided against. I'll figure out who turned off the feature today and pass along the snarky comments. Thanks; — Matt Sanford / @mzsanford On Apr 30, 2009, at 6:57 AM, Mobasoft wrote: See guys, there you go again. The Trending Topics is no longer in the sidebar, there's nothing on the Twitter Status blog about it. Do a search for Trending and you'll notice that we are all wondering what's going on. Do we need to have a refresher course in Transparency 101 ? What gives?
[twitter-dev] Re: Seeing truncated XML responses again
How big are the friend/follower sets? Are they large? Is there a user you can consistently use to invoke this error? Like I said, this is a difficult one to track do. Details and reproducibility are helpful. Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw On Thu, Apr 30, 2009 at 8:05 AM, atifzshaikh atif.zsha...@gmail.com wrote: Received two more similar issues yesterday and one this morning at 10am. In all instances it was a GET request for either statuses/ friends or statuses/followers and the page parameter was always 1. If you need any more info please let me know. On Apr 29, 8:31 pm, Dossy Shiobara do...@panoptic.com wrote: On 4/29/09 8:22 PM, Doug Williams wrote: Operations is going to look in to this. It is apparently a known issue but very difficult to track down given the complexities of our architecture so expect the fix to take a while. For now, please make sure your application has logic to support this error case gracefully. Thanks, Matt. Anything I can do to help? Feel free to have them contact me directly if necessary. I'm fully versed in packet capture and analysis and I've been a sysadmin in various past lives. -- Dossy Shiobara | do...@panoptic.com |http://dossy.org/ Panoptic Computer Network |http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Re: Inconsistency between different representations of data
Sounds like stale caching data. It is a known shortcoming to the engineer responsible for our core caching architecture. Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw On Thu, Apr 30, 2009 at 7:51 AM, dozykraut bernhard.schul...@gmx.netwrote: Just noticed that the followers count on my profile at twitter.com is different from the count retrieved via the API. The JSON via the API gives the correct count, while the website reflects a false count triggered by someone who must have clicked follow twice, which was also reflected by a doubled email notification.
[twitter-dev] Re: background image
We would prefer large applications to cache and serve images locally to offload our operation costs. However, for smaller applications and development efforts, serving from the S3 URL provided with the API is acceptable. Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw On Thu, Apr 30, 2009 at 4:03 AM, Christian Fazzini christian.fazz...@gmail.com wrote: Hello all, Im am currently making a website that uses the twitter api. I am able to obtain the background image of my twitter profile using the url http://twitter.com/users/show.xml?screen_name=screen_name_here Which returns something like this: http://static.twitter.com/images/themes/theme1/bg.gif On my website, I am wondering if I should save this background image onto my own database and loat it from my server or load it directly from the twitter website. I am thinking that the 'friendliest' way is to save the image onto our server and load it from there. This way, we dont have to use Twitter's bandwidth everytime. What are your opinions on this?
[twitter-dev] Re: 401: Unauthorized application or token on friendship/exists
Well, I feel like a moron. Thanks for the help. Sorry to have asked you to spend time on something so ridiculously simple. On Apr 30, 11:04 am, Abraham Williams 4bra...@gmail.com wrote: friendships/exists.json *not* friendship/exists.json On Tue, Apr 28, 2009 at 11:06, tayknight taykni...@gmail.com wrote: I'm fairly sure I'm getting a proper token. Using the page http://www.hueniverse.com/hueniverse/2008/10/beginners-gui-1.htmlI get the same signature as in my failing url. GET looks like: http://twitter.com/friendship/exists.json? oauth_consumer_key=Rg4VBVUvAoThpl78duF3Rg oauth_nonce=375494971125145587 oauth_signature=xWCdscsa6I4GJphDIQAnsDmjyhM%3D oauth_signature_method=HMAC-SHA1 oauth_timestamp=1240933535 oauth_token=765803-e2mAy2wkQy4wRI9LQC73cZwbiwmmJ7mZJh04MZiWk oauth_version=1.0 user_a=tayknight user_b=wxtweethttp://twitter.com/friendship/exists.json?%0Aoauth_consumer_key=Rg4VB... I must be missing something obvious. Other GETs work. I can provide secrets to TwitterAPI folks if they want to help debug. Thanks. -- Abraham Williams |http://the.hackerconundrum.com Hacker |http://abrah.am|http://twitter.com/abraham Web608 | Community Evangelist |http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States
[twitter-dev] Re: grouping twitter accounts
the possible hammering could come when I select a certain category and then I send a request to fetch the status for each account I have assigned to this category... regards On Thu, Apr 30, 2009 at 6:24 PM, P Burrows pburr...@gmail.com wrote: If you are just pulling all this information from your own account's friends timeline, how would you be hammering the twitter API? I can't imagine you'd need to do that more than once a minute (tops!). That still leaves you with 40+ additional calls / hr you can make. Cache all the data you get back locally, of course. As far as splitting up the categories -- just grab everything you haven't already grabbed from your timeline and do the categorization locally. (twitter doesn't actually have categories, unless you use different accounts -- but that would be kinda silly.) -- Patrick Burrows http://www.CleverHumans.com On Thu, Apr 30, 2009 at 5:05 AM, Borja Martín bor...@dagi3d.net wrote: Hi, I would like to develop some kind of mashup by categorizing a few twitter profiles(the idea would be something like http://tweetminster.co.uk/mps/party/LD) the problem is that I'm not sure how to focus it without hammering the twitter api servers. the first idea was just to perform a search for each profile my application had but this could eventually make a lot of requests. then, the obvious approach would be to use the friends timeline of my own account(we plan to update it, not just leech the content) but then I'm not sure how to search for statuses within a certain category I would have defined before any idea how to approach this? maybe I should organize the content fetched from the friends timeline as far as the api doesn't offer a direct solution? thanks in advance -- def dagi3d(me) case me when :web then http://dagi3d.net; when :twitter then http://twitter.com/dagi3d; end end -- def dagi3d(me) case me when :web then http://dagi3d.net; when :twitter then http://twitter.com/dagi3d; end end
[twitter-dev] Re: REST API Not quite following
When the earlier developer posted, it wasn't possible to confirm that. In the time sense then we've resolved the issue, and the problem was with a faultily implemented method on our app's end. Our use of GET versus POST on a POST-only API method, plus the method's false positive interpretation on the (actually error 401! ouf! ) return from the server = confusion. Thanks all, we're done and fixed here. On Apr 30, 12:12 pm, Abraham Williams 4bra...@gmail.com wrote: On Thu, Apr 30, 2009 at 04:31, CentralB-Dev developm...@central-b.comwrote: We wonder if it might be a problem only with https requests and XML format or if others have this problem with http, JSON, and so on. You could easily test this yourself and know for sure. We checked immediately, after several minutes, after several hours, and now after days. Regards On Apr 29, 3:50 pm, Nick Arnett nick.arn...@gmail.com wrote: On Wed, Apr 29, 2009 at 12:41 PM, CentralB-Dev developm...@central-b.comwrote: Although our app gets expected (successful) responses from both https://twitter.com/friendships/create.xml?user_id= and https://twitter.com/friendships/create/.xml, Neither actually follows (creates a friendship) successfully. Are you sure that this isn't just a cache issue... how are you checking to see if the friendship exists? Did you check again after a while? Nick -- Abraham Williams |http://the.hackerconundrum.com Hacker |http://abrah.am|http://twitter.com/abraham Web608 | Community Evangelist |http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States
[twitter-dev] Re: 417- Expectation failed error
The reason why your code didn't work originally is because setting the ServicePoint.Expect100Continue on the static method will set it to false only for all HttpWebRequests created *after* you set it to false. In this case you created your WebRequest prior to setting the flag to false. If you moved it to the beginning of your method you'd be fine. Though if you're building an app using APIs it makes more sense to avoid blanket setting Expect100Continue value to false via the static method. On Apr 30, 1:14 am, sttester stteste...@gmail.com wrote: Hi, I checked if expect header was still getting added and IT WAS! The below link helped me:http://topomorph.info/post/Finds-a-solution-to-the-Expect-continue-10... I changed the WebRequest to HttpWebRequest and the latter has a ServicePoint.Expect100Continue which needed to be set to 'false' and removed the System.Net.ServicePointManager.Expect100Continue = false. This solved my issue. Thanks for your help... :) On Apr 27, 9:33 pm, Abraham Williams 4bra...@gmail.com wrote: Try running your request through a Charles proxy to make sure the expect header is not getting added. On Mon, Apr 27, 2009 at 01:18, sttester stteste...@gmail.com wrote: Hi, I am starting this as a new thread because I did not get any reply since 4 days in the below thread: http://groups.google.com/group/twitter-development-talk/browse_thread... The '417- Expectation failed error' occurs again for me while updating status. I am using the Yedda Twitter library. I have already added 'System.Net.ServicePointManager.Expect100Continue = false;' to my Posting function: protected string ExecutePostCommand(string url, string userName, string password, string data) { WebRequest request = WebRequest.Create(url); if (!string.IsNullOrEmpty(userName) ! string.IsNullOrEmpty(password)) { request.Credentials = new NetworkCredential(userName, password); request.ContentType = application/x-www-form- urlencoded; request.Method = POST; System.Net.ServicePointManager.Expect100Continue = false; etc etc. I tried changing the position of 'System.Net.ServicePointManager.Expect100Continue = false;' to above the WebRequest object creation, but that also does n't help. This occurs in random. Please help me out of this situation as this has been happening since a week now. Thanks in advance -- Abraham Williams |http://the.hackerconundrum.com Hacker |http://abrah.am|http://twitter.com/abraham Web608 | Community Evangelist |http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States
[twitter-dev] Re: account/rate_limit_status API probrem
Matt is right on the money here. And if you are using .NET, you can avoid the challenge-response issue by setting your Authorization header directly, rather than creating a NetworkCredential instance. That's the only way to avoid the initial two hits to the API before a handshake is established. request.Headers[Authorization] = your base64 encoded username:password here; On Apr 30, 12:17 pm, Matt Sanford m...@twitter.com wrote: Hi there, The most common cause of X-RateLimit-Remaining not matching a call to rate_limit_status is that you're not authenticated when calling rate_limit_status but you are when making the call with the different header. This is usually caused by libraries that require a 401 response before they provide credentials, as is the case with .NET unless configured otherwise. Thanks; – Matt Sanford / @mzsanford Twitter Dev On Apr 29, 2009, at 5:46 PM, moz wrote: Hi. Is it only I that such a phenomenon occurs though remaining-hits of returning information seems not to be correct, and to differ from information that returns by the X-RateLimit-Remaining header about API of rate-limit-status? With this, I am embarrassed because it consumes API though there is a method of seeing the X-RateLimit-Remaining header when the method of limiting API is issued, too.
[twitter-dev] Re: Seeing truncated XML responses again
I have noticed that this issue occurs for users that have friend/ follower sets greater than 1000. For instance the three cases I mentioned in my previous post all had friend/follower sets in the thousands. There could be exceptions and maybe Dossy Shiobara has come across cases where the sets were below a 1000, but for my application the sets were = 1000. The users this happens to are pretty random and there is no one specific user that consistantly has their XML request truncated but I will let you know if I find any. Hope this helps. - Atif On Apr 30, 12:54 pm, Doug Williams d...@twitter.com wrote: How big are the friend/follower sets? Are they large? Is there a user you can consistently use to invoke this error? Like I said, this is a difficult one to track do. Details and reproducibility are helpful. Thanks, Doug -- Doug Williams Twitter Platform Supporthttp://twitter.com/dougw On Thu, Apr 30, 2009 at 8:05 AM, atifzshaikh atif.zsha...@gmail.com wrote: Received two more similar issues yesterday and one this morning at 10am. In all instances it was a GET request for either statuses/ friends or statuses/followers and the page parameter was always 1. If you need any more info please let me know. On Apr 29, 8:31 pm, Dossy Shiobara do...@panoptic.com wrote: On 4/29/09 8:22 PM, Doug Williams wrote: Operations is going to look in to this. It is apparently a known issue but very difficult to track down given the complexities of our architecture so expect the fix to take a while. For now, please make sure your application has logic to support this error case gracefully. Thanks, Matt. Anything I can do to help? Feel free to have them contact me directly if necessary. I'm fully versed in packet capture and analysis and I've been a sysadmin in various past lives. -- Dossy Shiobara | do...@panoptic.com |http://dossy.org/ Panoptic Computer Network |http://panoptic.com/ He realized the fastest way to change is to laugh at your own folly -- then you can let go and quickly move on. (p. 70)
[twitter-dev] Re: Seeing truncated XML responses again
Just got 3 truncated XML requests from the users below, all of whom have friend/follower sets 1000. One thing to note about how my application works. If the application is getting a user's friend/ follower set and if the first GET request fails for whatever reason, the application retries 2 more times. If after the 3 tries it still fails to get a successful response from twitter it quits and assumes twitter is over capacity or something else is wrong. I have detailed these re-tries below for the 3 truncated XML requests I just received. === First Failed Request - User: thevikings Request: GET /statuses/friends.xml?page=14 First Try: - Response: Exception thrown! Message : The operation has timed out. (I believe this is what caused the XML request to be truncated.) - Exception Details: - TargetSite: Int32 Read(Byte[], Int32, Int32) - Stack Trace : at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.IO.StreamReader.ReadBuffer() at System.IO.StreamReader.ReadToEnd() Second Try: - Response: Successful XML request received === Second Failed Request -- User: thevikings Request: GET /statuses/friends.xml?page=18 First Try: - Response: Exception thrown! Message : The operation has timed out. - Exception Details: - TargetSite: Int32 Read(Byte[], Int32, Int32) - Stack Trace : at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.IO.StreamReader.ReadBuffer() at System.IO.StreamReader.ReadToEnd() Second Try: - Response: The remote server returned an error: (502) Bad Gateway. (don't know what caused this??) - Exception Details: - TargetSite: System.IO.Stream OpenRead(System.Uri) - Stack Trace : at System.Net.WebClient.OpenRead(Uri address) at System.Net.WebClient.OpenRead (String address) Third Try: - Response: Successful XML request received === Third Failed Request - User: ExciteCigi Request: GET /statuses/friends.xml?page=9 First Try: - Response: Exception thrown! Message : The operation has timed out. - Exception Details: - TargetSite: Int32 Read(Byte[], Int32, Int32) - Stack Trace : at System.Net.ConnectStream.Read(Byte[] buffer, Int32 offset, Int32 size) at System.IO.StreamReader.ReadBuffer() at System.IO.StreamReader.ReadToEnd() Second Try: - Response: Successful XML request received === As you can see the XML request gets truncated when the ReadToEnd() operation times out. Hope this helps. - Atif On Apr 30, 2:16 pm, atifzshaikh atif.zsha...@gmail.com wrote: I have noticed that this issue occurs for users that have friend/ follower sets greater than 1000. For instance the three cases I mentioned in my previous post all had friend/follower sets in the thousands. There could be exceptions and maybe Dossy Shiobara has come across cases where the sets were below a 1000, but for my application the sets were = 1000. The users this happens to are pretty random and there is no one specific user that consistantly has their XML request truncated but I will let you know if I find any. Hope this helps. - Atif On Apr 30, 12:54 pm, Doug Williams d...@twitter.com wrote: How big are the friend/follower sets? Are they large? Is there a user you can consistently use to invoke this error? Like I said, this is a difficult one to track do. Details and reproducibility are helpful. Thanks, Doug -- Doug Williams Twitter Platform Supporthttp://twitter.com/dougw On Thu, Apr 30, 2009 at 8:05 AM, atifzshaikh atif.zsha...@gmail.com wrote: Received two more similar issues yesterday and one this morning at 10am. In all instances it was a GET request for either statuses/ friends or statuses/followers and the page parameter was always 1. If you need any more info please let me know. On Apr 29, 8:31 pm, Dossy Shiobara do...@panoptic.com wrote: On 4/29/09 8:22 PM, Doug Williams wrote: Operations is going to look in to this. It is apparently a known issue but very difficult to track down given the complexities of our architecture so expect the fix to take a while. For now, please make sure your application has logic to support this error case gracefully. Thanks, Matt. Anything I can do to help? Feel free to have them contact me directly if necessary. I'm fully versed in packet capture and analysis and I've been a
[twitter-dev] Re: grouping twitter accounts
That is where caching comes into play. Fetch the data from Twitter once every [n] minutes. Store it locally (in some database on your server). When a request for a certain category comes, you pull it all out of your local DB. User requests never wait for Twitter. Twitter never gets hammered. Everyone goes home happy. -- Patrick Burrows http://www.CleverHumans.com On Thu, Apr 30, 2009 at 1:21 PM, Borja Martín bor...@dagi3d.net wrote: the possible hammering could come when I select a certain category and then I send a request to fetch the status for each account I have assigned to this category... regards On Thu, Apr 30, 2009 at 6:24 PM, P Burrows pburr...@gmail.com wrote: If you are just pulling all this information from your own account's friends timeline, how would you be hammering the twitter API? I can't imagine you'd need to do that more than once a minute (tops!). That still leaves you with 40+ additional calls / hr you can make. Cache all the data you get back locally, of course. As far as splitting up the categories -- just grab everything you haven't already grabbed from your timeline and do the categorization locally. (twitter doesn't actually have categories, unless you use different accounts -- but that would be kinda silly.) -- Patrick Burrows http://www.CleverHumans.com On Thu, Apr 30, 2009 at 5:05 AM, Borja Martín bor...@dagi3d.net wrote: Hi, I would like to develop some kind of mashup by categorizing a few twitter profiles(the idea would be something like http://tweetminster.co.uk/mps/party/LD) the problem is that I'm not sure how to focus it without hammering the twitter api servers. the first idea was just to perform a search for each profile my application had but this could eventually make a lot of requests. then, the obvious approach would be to use the friends timeline of my own account(we plan to update it, not just leech the content) but then I'm not sure how to search for statuses within a certain category I would have defined before any idea how to approach this? maybe I should organize the content fetched from the friends timeline as far as the api doesn't offer a direct solution? thanks in advance -- def dagi3d(me) case me when :web then http://dagi3d.net; when :twitter then http://twitter.com/dagi3d; end end -- def dagi3d(me) case me when :web then http://dagi3d.net; when :twitter then http://twitter.com/dagi3d; end end
[twitter-dev] in_reply_to_status_id validation has changed
Before today, the value of the in_reply_to_status_id field was validated by two requirements,: 1) It was set to a valid status_id 2) The valid status_id's author from #1 was @replied in the update (@reply here is the old definition where @user was at the beginning of the tweet). If the value of in_reply_to_status_id did not meet these criteria, it was silently dropped. We have relaxed requirement #2 to permit mentions, meaning that the user of the referenced tweet needs to be included somewhere in the update. Enjoy the new data! Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw
[twitter-dev] Re: OAuth and Perl
I just wanted to bring back attention to this. Has anyone on the list gotten Twitter's OAuth to work with Perl? Care to share some code examples? Thanks, Jesse On Wed, Apr 22, 2009 at 1:40 AM, Jesse Stay jesses...@gmail.com wrote: Matt, here's what I'm getting back: On Tue, Apr 21, 2009 at 9:58 AM, Matt Sanford m...@twitter.com wrote: Hi Jesse, The best debugging information is: 1. The error message from your 401. » Example: Failed to validate oauth signature or token Missing authenticate header 2. The signature base string. In other words, the string you used to create the signature. » Example: See [1] for an example. Any idea how to get this using Perl's Net::OAuth? 3. What oauth application is this for? » Example: http://twitter.com/oauth_clients/details/104 It's for the SocialToo.com application: http://twitter.com/oauth_clients/details/61 On Apr 20, 2009, at 07:59 PM, Jesse Stay wrote: I'm getting 401 Unauthorized when trying to use Net::OAuth in Perl to access Twitter - it's happening in trying to swap the request token for the access token (in the second block below, from the $ua-post()). I was just wondering what the best method for debugging this would be. Here's my code (it's in Catalyst, so the $c's are from the Framework environment): sub authenticate_twitter : Local { my ($self, $c) = @_; unless ($c-user_session-{'request_token'} $c-user_session-{'request_token_secret'}) { my $request = Net::OAuth-request(request token)-new( consumer_key = $c-config-{'twitter_consumer_key'}, consumer_secret = $c-config-{'twitter_consumer_secret'}, request_url = $c-config-{'twitter_request_url'}, request_method = 'GET', signature_method = 'HMAC-SHA1', timestamp = time, nonce = join('', rand_chars(size=16, set='alphanumeric')), ); $request-sign(); $c-log-debug(URL: .$request-to_url); my $ua = LWP::UserAgent-new; my $res = $ua-get($request-to_url); # post request to Twitter if ($res-is_success) { my $response = Net::OAuth-response('request token')-from_post_body($res-content); $c-user_session-{'request_token'} = $response-token; $c-user_session-{'request_token_secret'} = $response-token_secret; if (defined $c-user_session-{'request_token'}) { my $auth_url = $c-config-{'twitter_authorize_token_url'}.?oauth_token= . $c-user_session-{'request_token'} . redirect_url=.uri_escape($c-req-param(redi rect_url));; $c-res-redirect($auth_url); $c-detach; return; } } else { $c-log-fatal(Something went wrong.); } } else { $c-log-debug(request_token: .$c-user_session-{'request_token'}); $c-log-debug(request_token_secret: .$c-user_session-{'request_token_secret'}); my $request = Net::OAuth-request(access token)-new( consumer_key= $c-config-{'twitter_consumer_key'}, consumer_secret = $c-config-{'twitter_consumer_secret'}, token = $c-user_session-{'request_token'}, token_secret= $c-user_session-{'request_token_secret'}, request_url = $c-config-{'twitter_access_token_url'}, request_method = 'POST', signature_method= 'HMAC-SHA1', timestamp = time, nonce = join('', rand_chars(size=16, set='alphanumeric')), ); $request-sign(); $c-log-debug(URL: .$request-to_url); my $ua = LWP::UserAgent-new; my $res = $ua-post($request-to_url); # post request to Twitter if ($res-is_success) { my $response = Net::OAuth-response('access token')-from_post_body($res-content); $c-user_session-{'access_token'} = $response-token; $c-user_session-{'access_token_secret'} = $response-token_secret; $c-res-redirect(uri_unescape($c-req-param('redirect_url'))); } else { $c-log-fatal(Could not get an Access Token: . $res-status_line . . $res-content); } } } -...@jesse
[twitter-dev] Re: OAuth and Perl
On Thu, Apr 30, 2009 at 11:22 PM, Jesse Stay jesses...@gmail.com wrote: I just wanted to bring back attention to this. Has anyone on the list gotten Twitter's OAuth to work with Perl? Care to share some code examples? I'm using Perl's Net::OAuth heavily, but only for updating twitter status with existing access tokens (as my backend processing is Perl, while the frontend is RoR, so authorisation/key exchange is handled through rails OAuth). I did find one bug which I've reported back to the Net::OAuth CPAN maintainer, who said he'll implement in a future release: The issue relates to http://code.google.com/p/twitter-api/issues/detail?id=433#c32 (there's lots of useful into in this thread) The problem occurs when you pass an extra_param containing certain Unicode characters. What happens is that the parameter is passed to the signature creation, and the signature ends up wrong, leading to 401 errors when trying to make a request. The fix for this is actually detailed in the above thread, a problem with the regexp doing the escaping. In Perl's case, the below change to Net::OAuth's Message.pm fixes this: sub encode { my $str = shift; $str = unless defined $str; # return URI::Escape::uri_escape_utf8($str,'^\w.~-'); # MM, fix based on twitter OAuth bug report return URI::Escape::uri_escape($str,'^0-9a-zA-Z\d._~-'); } I'm not sure if this is relevant to you given your previous messages, but thought I'd share just in case. With this fix implemented, it seems to work very well, more than 10,000 of my users have migrated to OAuth and I'm doing hundreds of thousands OAuth-based status update requests, without obvious problems. Mario.
[twitter-dev] twitter sign-on and user_id based urls
We're in the process of implementing twitter auth into a service that already supports OpenID. As such, we are using a URL as the user identifier, which is the standard idiom in the OpenID world. Since a user can change their screen name, the twitter profile URL is not reliable for use in authentication and we must use the id field. Does there currently exist a URL on twitter which will accept a user_id as the parameter and redirect to the user's (current) profile page? For example, using Doug W's user_id (1401881) and screen name (dougw) as an example, does there exist a URL on twitter such that http://twitter.com/users/profile?user_id=1401881 redirects to http://twitter.com/dougw? If not, would you be willing to add such a feature? Thanks, Brian Ellin (@brianellin) http://rpxnow.com/
[twitter-dev] http://twitter.com/home?status=thisusedtowork
I happy to report that I have the new UI on my account and it's nice. However, apparently the status param is no longer recognized. http://twitter.com/home?status=thisusedtowork That would put thisusedtowork in the What are you doing? box. Now of course I'm probably reading this wrong, or missed something. :-) Any help would be much appreciated... Dave
[twitter-dev] Re: Firehose Access
I'm just reading http://apiwiki.twitter.com/Streaming-API-Documentation#firehose So is the firehose live? I see that this is available only to approved parties, and requires a signed agreement to access. Are the approval guidelines/criteria and text of the agreement available for review? -Ken On Mar 10, 3:56 pm, Doug Williams d...@twitter.com wrote: Sylvain, I've updated the FAQ to reflect the deadline slippage: We thought the firehose (the near-realtime stream of all public status updates on Twitter) would be shipped by February 2009, but the deadline has slipped a bit. We've pushed back our timeline for testing with a small group of trusted partners to Q2 2009... Thank you for your patience, Doug Williams Twitter API Supporthttp://twitter.com/dougw On Tue, Mar 10, 2009 at 6:27 PM, Sylvain Munaut 246...@gmail.com wrote: On Mar 8, 7:13 pm, Doug Williams do...@igudo.com wrote: Have you seen the following? http://apiwiki.twitter.com/FAQ#Whenwillthefirehosebeready Yes and somehow the By late January, early February 2009 makes it sound like this FAQ entry is outdated ... Might be worth to s/2009/2010/g :) Sylvain
[twitter-dev] Re: http://twitter.com/home?status=thisusedtowork
Hi there, We're working on getting that fix out right now. I was hoping we would get the fix pushed out and I could just re-cap after the fact :) Thanks; – Matt Sanford / @mzsanford Twitter Dev On Apr 30, 2009, at 2:51 PM, Dave Winer wrote: I happy to report that I have the new UI on my account and it's nice. However, apparently the status param is no longer recognized. http://twitter.com/home?status=thisusedtowork That would put thisusedtowork in the What are you doing? box. Now of course I'm probably reading this wrong, or missed something. :-) Any help would be much appreciated... Dave
[twitter-dev] Re: in_reply_to_status_id validation has changed
The statuses/show method is perfect [1]. 1. http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0show Thanks, Doug Doug Williams | Platform Support | Twitter, Inc. 539 Bryant St. Suite 402, San Francisco, CA 94107 http://twitter.com/dougw On Thu, Apr 30, 2009 at 3:40 PM, P Burrows pburr...@gmail.com wrote: Is there an easy way to get the screen name of an in_reply_to_status_id for purposes of linking to the original tweet? On Thu, Apr 30, 2009 at 6:02 PM, Doug Williams d...@twitter.com wrote: Before today, the value of the in_reply_to_status_id field was validated by two requirements,: 1) It was set to a valid status_id 2) The valid status_id's author from #1 was @replied in the update (@reply here is the old definition where @user was at the beginning of the tweet). If the value of in_reply_to_status_id did not meet these criteria, it was silently dropped. We have relaxed requirement #2 to permit mentions, meaning that the user of the referenced tweet needs to be included somewhere in the update. Enjoy the new data! Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw
[twitter-dev] Re: twitter sign-on and user_id based urls
Currently it would require a URL to be constructed after getting the username from users/show [1]. I will find out if there is interest in an ID based redirect as have you suggested. 1. http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-users%C2%A0show Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw On Thu, Apr 30, 2009 at 2:25 PM, Brian Ellin brianel...@gmail.com wrote: We're in the process of implementing twitter auth into a service that already supports OpenID. As such, we are using a URL as the user identifier, which is the standard idiom in the OpenID world. Since a user can change their screen name, the twitter profile URL is not reliable for use in authentication and we must use the id field. Does there currently exist a URL on twitter which will accept a user_id as the parameter and redirect to the user's (current) profile page? For example, using Doug W's user_id (1401881) and screen name (dougw) as an example, does there exist a URL on twitter such that http://twitter.com/users/profile?user_id=1401881 redirects to http://twitter.com/dougw? If not, would you be willing to add such a feature? Thanks, Brian Ellin (@brianellin) http://rpxnow.com/
[twitter-dev] Re: http://twitter.com/home?status=thisusedtowork
On Apr 30, 2009, at 4:00 PM, Matt Sanford wrote: Hi there, We're working on getting that fix out right now. I was hoping we would get the fix pushed out and I could just re-cap after the fact :) Thanks; – Matt Sanford / @mzsanford Twitter Dev On Apr 30, 2009, at 2:51 PM, Dave Winer wrote: I happy to report that I have the new UI on my account and it's nice. However, apparently the status param is no longer recognized. http://twitter.com/home?status=thisusedtowork That would put thisusedtowork in the What are you doing? box. Now of course I'm probably reading this wrong, or missed something. :-) Any help would be much appreciated... Dave --- John Adams Twitter Operations j...@twitter.com http://twitter.com/netik
[twitter-dev] Friends request
Hello, If I request a listing of friends should it include all people who I added as a friend throughout time even though I may have un-followed them? That is what I am seeing. Do I need to use the social graph Friend method to filter those out? Jeff
[twitter-dev] Re: in_reply_to_status_id validation has changed
Well, sure. But, I was thinking more of building a url ala: http://twitter.com/demosthe/status/1659019581 -- Patrick Burrows http://www.CleverHumans.com On Thu, Apr 30, 2009 at 7:13 PM, Doug Williams d...@twitter.com wrote: The statuses/show method is perfect [1]. 1. http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0show Thanks, Doug Doug Williams | Platform Support | Twitter, Inc. 539 Bryant St. Suite 402, San Francisco, CA 94107 http://twitter.com/dougw On Thu, Apr 30, 2009 at 3:40 PM, P Burrows pburr...@gmail.com wrote: Is there an easy way to get the screen name of an in_reply_to_status_id for purposes of linking to the original tweet? On Thu, Apr 30, 2009 at 6:02 PM, Doug Williams d...@twitter.com wrote: Before today, the value of the in_reply_to_status_id field was validated by two requirements,: 1) It was set to a valid status_id 2) The valid status_id's author from #1 was @replied in the update (@reply here is the old definition where @user was at the beginning of the tweet). If the value of in_reply_to_status_id did not meet these criteria, it was silently dropped. We have relaxed requirement #2 to permit mentions, meaning that the user of the referenced tweet needs to be included somewhere in the update. Enjoy the new data! Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw
[twitter-dev] API Changes for April 30, 2009
Hi all, We added two new features today (2009-04-30) based on the feedback we've been getting: • Feature (REST): The in_reply_to_status_id can now reference any mentioned user. » See Also: Announcement at http://bit.ly/kFDTl • Feature (REST): The social graph methods now support pagination via the page parameter so you can work with very large users. » See Also: http://code.google.com/p/twitter-api/issues/detail?id=518 » See Also: friends/ids document at http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-friends%C2%A0ids » See Also: followers/ids document at http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-followers%C2%A0ids Thanks; – Matt Sanford / @mzsanford Twitter Dev
[twitter-dev] Re: in_reply_to_status_id validation has changed
I was suggesting using the call to statuses/show to build this URL programmatically, like with this psuedo-code: $status = new Status( http://twitter.com/statuses/show/; + $in_reply_to_status_id+ .xml) $screen_name = $status-get_screen_name(); echo http://twitter.com/; + $screen_name + /status/ + $in_reply_to_status_id; Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw On Thu, Apr 30, 2009 at 4:26 PM, P Burrows pburr...@gmail.com wrote: Well, sure. But, I was thinking more of building a url ala: http://twitter.com/demosthe/status/1659019581 -- Patrick Burrows http://www.CleverHumans.com On Thu, Apr 30, 2009 at 7:13 PM, Doug Williams d...@twitter.com wrote: The statuses/show method is perfect [1]. 1. http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0show Thanks, Doug Doug Williams | Platform Support | Twitter, Inc. 539 Bryant St. Suite 402, San Francisco, CA 94107 http://twitter.com/dougw On Thu, Apr 30, 2009 at 3:40 PM, P Burrows pburr...@gmail.com wrote: Is there an easy way to get the screen name of an in_reply_to_status_id for purposes of linking to the original tweet? On Thu, Apr 30, 2009 at 6:02 PM, Doug Williams d...@twitter.com wrote: Before today, the value of the in_reply_to_status_id field was validated by two requirements,: 1) It was set to a valid status_id 2) The valid status_id's author from #1 was @replied in the update (@reply here is the old definition where @user was at the beginning of the tweet). If the value of in_reply_to_status_id did not meet these criteria, it was silently dropped. We have relaxed requirement #2 to permit mentions, meaning that the user of the referenced tweet needs to be included somewhere in the update. Enjoy the new data! Thanks, Doug -- Doug Williams Twitter Platform Support http://twitter.com/dougw
[twitter-dev] Re: 500 errors using search API
Iam is the biginner and iamnot fluent in english language, so iam very sorry for this, iahope to some one to help me tobe number one thansk full 2009/4/30, rleber richard.le...@gmail.com: Never mind -- I found the problem. (Undocumented change to behavior of Ruby twitter gem...) Sorry for wasting anybody's time :-) rl On Apr 29, 11:35 pm, rleber richard.le...@gmail.com wrote: I am getting frequent 500 errors when using the search api. This began at about 7pm Eastern today. The code I am using worked fine prior to that. Any advice or assistance would be appreciated.
[twitter-dev] Re: Friends request
No. It should not. If you recently stopped following them it might take a little while for the cache to clear. On Thu, Apr 30, 2009 at 18:43, Jeff Bishop jeff.bis...@gmail.com wrote: Hello, If I request a listing of friends should it include all people who I added as a friend throughout time even though I may have un-followed them? That is what I am seeing. Do I need to use the social graph Friend method to filter those out? Jeff -- Abraham Williams | http://the.hackerconundrum.com Hacker | http://abrah.am | http://twitter.com/abraham Web608 | Community Evangelist | http://web608.org This email is: [ ] blogable [x] ask first [ ] private. Sent from Madison, WI, United States