Search API
Hi All, I recall reading that the search API was going to be merged into the main Twitter API. If this is the case when would this happen and would any url's change? Currently the trends method in the search API only support json. Any estimation of when we might get other formats? Thanks, Rhys
check already following
Hey this might sound completely remedial, but is there a way to get a check of is_following=true or something along those lines? I want to add a follow button to the public stream for twitbin users, and if they are already following the person, either remove the button or put unfollow. I couldn't find a quick way in the api, and don't want to have to download their entire follower list for each person. thanks, Brian
Re: API versus Live Site discrepancy
Yes, it looks as though this was fixed: {request:\/users\/show\/mlmsecrets2009.json,error:User has been suspended.} On Wed, Dec 17, 2008 at 11:47 PM, Yu-Shan Fung ambivale...@gmail.com wrote: Was this change deployed? I'm still getting user profiles for suspended users. An example: mlmsecrets2009 http://twitter.com/mlmsecrets2009 http://twitter.com/users/show/mlmsecrets2009.xml http://twitter.com/users/show/mlmsecrets2009.json Thanks! On Fri, Dec 5, 2008 at 10:47 AM, Alex Payne a...@twitter.com wrote: They should be deployed today. On Fri, Dec 5, 2008 at 07:15, Greg Schoen greg.sch...@gmail.com wrote: Were those changes pushed live? I'm still seeing that user. Alex Payne wrote: Actually, we're just pushing out changes today that excise suspended users from API responses. Sorry for the confusion there. On Thu, Dec 4, 2008 at 12:32, Greg Schoen greg.sch...@gmail.com wrote: Is it possible to poll the API for a user's suspended status? I am pulling up the show.xml for a suspended user, and nothing on that page leads me to believe that the account has been suspended. The xml document would have you believe that nothing is wrong with the account, that everything is live. However, trying to access their page directly results in the Suspension message. This is a difficult issue because my hourly API calls are being used up by polling users that are no longer valid, and nothing in their response leads me to believe this. I could totally bypass the API and screen scrape the data, but I'm sure that's not looked very highly on, and it would defeat the purpose of having the API. So am I missing something, or is this feature not out there? Example: user: bellyloss http://twitter.com/users/show/bellyloss.xml returns user data http://twitter.com/bellyloss returns the /suspended page -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x -- Reality is that which, when you stop believing in it, doesn't go away. - Philip K. Dick, American Writer -- greg.sch...@gmail.com 920.941.0399
New site: The choices you made
Hi, I just wanted to share a new website I helped develop which uses Twitter's Search API to populate it with content. It's called The Choices You Made (http://www.thechoicesyoumade.ca). Have a look, spread the word, and please tell me what you think! Pramesh
Re: Sometimes tweets are not made
I am using curl to send tweets and sometimes they don't go through yet I do not get an error message. The section of curl that should take care of this is /* Execute and get the http code to see if it was succesfull or not*/ $result = curl_exec($this-ch); $resultArray = curl_getinfo($this-ch); if ($resultArray['http_code'] == 200) ; return true; any ideas why this is not working? This is where the output from a tracing proxy like Charles may be very useful. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- Any excuse will serve a tyrant. -- Aesop ---
Re: Sometimes tweets are not made
no just whether or not it is 200 On Tue, Dec 23, 2008 at 6:11 PM, Peter Denton petermden...@gmail.comwrote: are you handling the rest of the http_code messages? On Tue, Dec 23, 2008 at 3:03 PM, krumlr petewing...@gmail.com wrote: I am using curl to send tweets and sometimes they don't go through yet I do not get an error message. The section of curl that should take care of this is /* Execute and get the http code to see if it was succesfull or not*/ $result = curl_exec($this-ch); $resultArray = curl_getinfo($this-ch); if ($resultArray['http_code'] == 200) ; return true; any ideas why this is not working? Thanks Pete -- Pete Wingard Krumlr.Com MudSweatAndTears.Com PixelCast.Net TigerTailST.Com Yougler.Com you can follow on Twitter http://www.twitter.com/krumlr Decatur, GA 404.797.1646 http://yougler.com/pete netla...@gmail.com
Re: New site: The choices you made
Hey, this looks neat. I selected sex/love and typed in dinner date and a bunch of tweets related to that floated by in a dippity kinda way. But the UI doesn't *say* anything. At least for me. It doesn't speak to me b/c the information design doesn't make a strong statement. E.G. the query dinner date didn't show more dinner icons than date icons, so I couldn't tell which was more popular. But, you got skills. :-) Cheers, Barce On Tue, Dec 23, 2008 at 3:14 PM, pattw...@gmail.com pattw...@gmail.com wrote: Hi, I just wanted to share a new website I helped develop which uses Twitter's Search API to populate it with content. It's called The Choices You Made (http://www.thechoicesyoumade.ca). Have a look, spread the word, and please tell me what you think! Pramesh
Re: Unable to View Single, Protected Statuses
Are you sure that you're authorized to see the tweet in question? On Tue, Dec 23, 2008 at 12:28, leebert brenner@gmail.com wrote: I'm developing a desktop Twitter client written in C#. I've found that I can successfully retrieve protected statuses for people I am following when requesting the friends timeline (http:// twitter.com/statuses/friends_timeline.xml) but I cannot retrieve a given protected status in that list (http://twitter.com/statuses/show/ id.xml). I get a not authorized error for the latter but not the former. However, I make both calls in the same manner using the same set of credentials. Any suggestions? Thanks, Lee -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x
Re: roll up twitter conversations
We don't have an official way of retrieving a conversation just yet, but it's our list. On Tue, Dec 23, 2008 at 11:07, vonnegut_fan petermden...@gmail.com wrote: Hello, I am building a third party twitter app and want to show tweets in conversations, meaning if a tweet is a reply, I display those the same way that search.twitter.com displays conversations, with the reply beneath. I just wanted to ask before I start from scratch if there is a semi- standard approach people are following to achieve this. I noticed in twitter they use the thread URL schema, but when I look at that, it comes across as HTML, not as XML. But any advice you have would be greatly appreciated. Thanks, Peter -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x
Re: Unable to View Single, Protected Statuses
this is what I am getting to using .net and I am blocked by this. On Dec 23, 11:35 pm, Alex Payne a...@twitter.com wrote: Are you sure that you're authorized to see the tweet in question? On Tue, Dec 23, 2008 at 12:28, leebert brenner@gmail.com wrote: I'm developing a desktop Twitter client written in C#. I've found that I can successfully retrieve protected statuses for people I am following when requesting the friends timeline (http:// twitter.com/statuses/friends_timeline.xml) but I cannot retrieve a given protected status in that list (http://twitter.com/statuses/show/ id.xml). I get a not authorized error for the latter but not the former. However, I make both calls in the same manner using the same set of credentials. Any suggestions? Thanks, Lee -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x
Re: Sometimes tweets are not made
can you tell by looking at the result array? On Tue, Dec 23, 2008 at 7:34 PM, Alex Payne a...@twitter.com wrote: That's almost assuredly the result of a misconfigured proxy. On Tue, Dec 23, 2008 at 16:31, Pete Wingard petewing...@gmail.com wrote: it is a 417 error On Tue, Dec 23, 2008 at 6:29 PM, Pete Wingard petewing...@gmail.com wrote: no just whether or not it is 200 On Tue, Dec 23, 2008 at 6:11 PM, Peter Denton petermden...@gmail.com wrote: are you handling the rest of the http_code messages? On Tue, Dec 23, 2008 at 3:03 PM, krumlr petewing...@gmail.com wrote: I am using curl to send tweets and sometimes they don't go through yet I do not get an error message. The section of curl that should take care of this is /* Execute and get the http code to see if it was succesfull or not*/ $result = curl_exec($this-ch); $resultArray = curl_getinfo($this-ch); if ($resultArray['http_code'] == 200) ; return true; any ideas why this is not working? Thanks Pete -- Pete Wingard Krumlr.Com MudSweatAndTears.Com PixelCast.Net TigerTailST.Com Yougler.Com you can follow on Twitter http://www.twitter.com/krumlr Decatur, GA 404.797.1646 http://yougler.com/pete netla...@gmail.com -- Pete Wingard Krumlr.Com MudSweatAndTears.Com PixelCast.Net TigerTailST.Com Yougler.Com you can follow on Twitter http://www.twitter.com/krumlr Decatur, GA 404.797.1646 http://yougler.com/pete netla...@gmail.com -- Alex Payne - API Lead, Twitter, Inc. http://twitter.com/al3x -- Pete Wingard Krumlr.Com MudSweatAndTears.Com PixelCast.Net TigerTailST.Com Yougler.Com you can follow on Twitter http://www.twitter.com/krumlr Decatur, GA 404.797.1646 http://yougler.com/pete netla...@gmail.com
Re: Sometimes tweets are not made
Although I have no idea, why this worked for so long and suddenly stopped working, adding curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); seemed to do the trick. (see http://haacked.com/archive/2004/05/15/http-web-request-expect-100-continue.aspx )
Re: Sometimes tweets are not made
worked for me too it seems but I will keep testing On Tue, Dec 23, 2008 at 8:24 PM, Stecki ma...@stecki.de wrote: Although I have no idea, why this worked for so long and suddenly stopped working, adding curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); seemed to do the trick. (see http://haacked.com/archive/2004/05/15/http-web-request-expect-100-continue.aspx ) -- Pete Wingard Krumlr.Com MudSweatAndTears.Com PixelCast.Net TigerTailST.Com Yougler.Com you can follow on Twitter http://www.twitter.com/krumlr Decatur, GA 404.797.1646 http://yougler.com/pete netla...@gmail.com
Re: Sometimes tweets are not made
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); Would be really interestingt though to know, what the guys at twitter changed on the api. Other infos to the general aspect of 417 / http expect: http://de3.php.net/manual/en/function.curl-setopt.php#82418 http://www.w3.org/Protocols/rfc2616/rfc2616-sec8.html#sec8.2.3
Re: Sometimes tweets are not made
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); Would be really interestingt though to know, what the guys at twitter changed on the api. I still haven't seen a Charles trace on what the client is actually sending. If the client is indeed sending a bogus Expect: header, then all this line is doing is suppressing it. -- personal: http://www.cameronkaiser.com/ -- Cameron Kaiser * Floodgap Systems * www.floodgap.com * ckai...@floodgap.com -- To err is human -- to forgive is not company policy. ---
Re: Sometimes tweets are not made
If you're testing your app locally, use Charles to examine the data: http://www.charlesproxy.com/ -- Ed Finkler http://funkatron.com AIM: funka7ron ICQ: 3922133 Skype: funka7ron On Tue, Dec 23, 2008 at 9:02 PM, Stecki ma...@stecki.de wrote: I still haven't seen a Charles trace on what the client is actually sending. If the client is indeed sending a bogus Expect: header, then all this line is doing is suppressing it. I for my part had never explicitly set an Expect: header. Seems that Curl is doing this automagically. But until tonight it never was a problem - so the new apache may indeed be a bit more picky, what to accept. My code was: curl_setopt($ch, CURLOPT_HTTPAUTH,CURLAUTH_BASIC); curl_setopt($ch, CURLOPT_USERPWD,user:pass); curl_setopt($ch, CURLOPT_URL, $url.?status=.urlencode($t)); curl_setopt($ch, CURLOPT_POST,true); curl_setopt($ch, CURLOPT_HTTP_VERSION, CURL_HTTP_VERSION_1_1); curl_setopt($ch, CURLOPT_HEADER, false); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); and I just added curl_setopt($ch, CURLOPT_HTTPHEADER, array('Expect:')); to get it to work. Sorry, I don't know how to get the verbose trace info.
Re: Sometimes tweets are not made
If you're testing your app locally, use Charles to examine the data: http://www.charlesproxy.com/ Thanks for the advice; but unfortunately my script runs on a hosted server. I guess I could pipe the stderr somewhere to get the output or use a curl callback function. But I am too tired for such things (it is 3:06 am local time here) :-)
Re: Sometimes tweets are not made
I'm getting the same issue with my client written using the .NET compact framework. I'm not explicitly setting any Expect headers, but I'm getting 417 errors when posting. On Dec 23, 8:06 pm, Stecki ma...@stecki.de wrote: If you're testing your app locally, use Charles to examine the data: http://www.charlesproxy.com/ Thanks for the advice; but unfortunately my script runs on a hosted server. I guess I could pipe the stderr somewhere to get the output or use a curl callback function. But I am too tired for such things (it is 3:06 am local time here) :-)
Re: New site: The choices you made
Great job here pramesh. What kind of algorithm are you using for classification? On Dec 23, 6:14 pm, pattw...@gmail.com pattw...@gmail.com wrote: Hi, I just wanted to share a new website I helped develop which uses Twitter's Search API to populate it with content. It's called The Choices You Made (http://www.thechoicesyoumade.ca). Have a look, spread the word, and please tell me what you think! Pramesh
Expect Header Issue for .NET developers
Looks like twitter is updating something and their servers are returning error 417 for a lot of requests. I looked into it and found that .NET automatically includes an Expect header containing 100- continue on every request unless you specifically tell it not to. So for any .NET devs having trouble, you can set System.Net.ServicePointManager.Expect100Continue = false before making your request to get past this issue.
Re: roll up twitter conversations
My application currently does it by looking at the in_reply_to_status_id on the current status, then calling http://twitter.com//statuses/show/WHATEVERTHATIDWAS.xml to get that status. If that one has a in_reply_to_status_id, it fetches that one. It keeps going until it reaches a status without it. On Dec 23, 1:07 pm, vonnegut_fan petermden...@gmail.com wrote: Hello, I am building a third party twitter app and want to show tweets in conversations, meaning if a tweet is a reply, I display those the same way that search.twitter.com displays conversations, with the reply beneath. I just wanted to ask before I start from scratch if there is a semi- standard approach people are following to achieve this. I noticed in twitter they use the thread URL schema, but when I look at that, it comes across as HTML, not as XML. But any advice you have would be greatly appreciated. Thanks, Peter
Re: simple tweet this implementation
Seems like it's still not working. Any update? To reproduce try: http://i2ft.com/znd and click the little twitter t in the frame. When it posts to the site, it still shows from web On Dec 13, 5:42 pm, Alex Payne a...@twitter.com wrote: Nope, we'll investigate it this coming week. Hang tight! On Sat, Dec 13, 2008 at 12:29, scottjgo scott...@gmail.com wrote: Alex- I posted a follow-up on the bug for this feature -- would it be better for me to open a new bug? On Dec 13, 3:12 pm, Alex Payne a...@twitter.com wrote: Indeed, anybody can randomly fill in any source. The incentive for faking requests from a particular application is so low that we don't put any protections in place. On Sat, Dec 13, 2008 at 09:32, Abraham Williams 4bra...@gmail.com wrote: Is it maybe tied into the referrer so it only works coming from the website that is supposed to have the source? I find it unlikely that anybody can randomly fill in any source. On Sat, Dec 13, 2008 at 09:58, Dharmesh dharme...@gmail.com wrote: I have not been able to get this to work yet (i.e. passing a valid source= parameter still shows updates as being from the web). Example:http://twitter.com/home?status=Testingsource=TwitterGrader Thanks. -Dharmesh On Dec 12, 12:32 pm, scottjgo scott...@gmail.com wrote: Has anyone gotten it to work? Am I doing something wrong? On Dec 12, 12:20 pm, Alex Payne a...@twitter.com wrote: The feature has been deployed... On Thu, Dec 11, 2008 at 18:16, scottjgo scott...@gmail.com wrote: Hi. I guess this feature was added a week ago. Thanks! I'm having a bit of trouble with it though. I tried the url http://twitter.com/home?status=testsource=isitfunnytodaycom(my source paramter was approved over 48 hours ago) and my post is still 'from web'. I also tried using the source parameter twitterific, which also showed up as 'from web'. Is feature not deployed yet? On Nov 21, 5:01 pm, scottjgo scott...@gmail.com wrote: http://code.google.com/p/twitter-api/issues/detail?id=163 On Nov 21, 2:51 pm, Alex Payne a...@twitter.com wrote: We recently had another request to allow messages posted from the web to define their own source parameters. We'll consider it. Please file an issue athttp://code.google.com/p/twitter-api/issues/entry. On Fri, Nov 21, 2008 at 01:36, scottjgo scott...@gmail.com wrote: Bummer. I don't suppose you'd be willing to add a simple appid= or something to the url that lets you modify the posted from link (given that the link was already approved for your app id)? On Nov 20, 5:03 pm, Alex Payne a...@twitter.com wrote: Yes, you'll need to make a proper API request to have your update attributed. -- Alex Payne On Nov 20, 2008, at 10:05, scottjgo scott...@gmail.com wrote: Hi. I want to add a tweet this link to my website. The idea is that you would click the button, and it would prepopulate the message field on twitter with a link. Ideally, you would authenticate through twitter.com so I can avoid handling passwords. I understand you can use a link like:http://twitter.com/home?status=Putyourmessagehere but is it possible to replace the from web with a link to my website? Without that, it sort of eliminates the cool viral advertising. Is the only alternative to use the real api (and handle passwords)? Thanks. -sjg -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x -- | Abraham Williams | Web Developer |http://abrah.am | Brazen Careerist | Pro Hacker |http://www.brazencareerist.com | PoseurTech LLC | Mashup Ambassador |http://poseurte.ch | Web608 | Community Evangelist |http://web608.org | This email is: [] blogable [x] ask first [] private -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x -- Alex Payne - API Lead, Twitter, Inc.http://twitter.com/al3x
Re: roll up twitter conversations
Nice approach to get conversations. What you do if that status is from protected profile and that person is not friend? What about results returned from search, I think these results don't have in_reply_to_status_id? Thanks, Shahid On Wed, Dec 24, 2008 at 9:46 AM, JakeS jakesteven...@gmail.com wrote: My application currently does it by looking at the in_reply_to_status_id on the current status, then calling http://twitter.com//statuses/show/WHATEVERTHATIDWAS.xml to get that status. If that one has a in_reply_to_status_id, it fetches that one. It keeps going until it reaches a status without it. On Dec 23, 1:07 pm, vonnegut_fan petermden...@gmail.com wrote: Hello, I am building a third party twitter app and want to show tweets in conversations, meaning if a tweet is a reply, I display those the same way that search.twitter.com displays conversations, with the reply beneath. I just wanted to ask before I start from scratch if there is a semi- standard approach people are following to achieve this. I noticed in twitter they use the thread URL schema, but when I look at that, it comes across as HTML, not as XML. But any advice you have would be greatly appreciated. Thanks, Peter
python/twisted API implementation
I've got a twitter API implementation in twisted in case anyone's interested: http://github.com/dustin/twitty-twister
How might I change the URL for my source?
I registered a source a while back with a rather dumb URL. How might I go about requesting it to be changed?