Re: [twitter-dev] Twitter Places Follow Up
Sure, do this: 1) Find the place ID of the Staples Center: http://api.twitter.com/1/geo/search.json?query=Staples%20Centerlat=34.04lon=-118.27granularity=poi = The place ID is 7893eab4ca4c1efb (second result) 2) Get all tweets from that ID: http://search.twitter.com/search.json?q=place:7893eab4ca4c1efb If you only have 100 places, you could probably do 100 searches and find the best result by hand when there are multiple results. David On Tue, Jun 22, 2010 at 9:35 AM, ELB ebrit...@gmail.com wrote: The statuses/update API linked to (http://dev.twitter.com/doc/post/ statuses/update or http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0update) is the method that is used for an authenticated Twitter user to add his/her own new Tweet. (It's not a method of returning Tweets already created by other users.) We don't want to create Tweets from a given place - instead we want to use the Twitter API to publish Tweets from a given place. So, here is our page about the Staples Center in Los Angeles. http://sency.com/los-angeles/STAPLES-Center-4165 our goal is to publish the most recent Tweets, made from the Staples Center - on this page... would this be possible based on the current Twitter API?
[twitter-dev] Twitter Places Follow Up
The statuses/update API linked to (http://dev.twitter.com/doc/post/ statuses/update or http://apiwiki.twitter.com/Twitter-REST-API-Method%3A-statuses%C2%A0update) is the method that is used for an authenticated Twitter user to add his/her own new Tweet. (It's not a method of returning Tweets already created by other users.) We don't want to create Tweets from a given place - instead we want to use the Twitter API to publish Tweets from a given place. So, here is our page about the Staples Center in Los Angeles. http://sency.com/los-angeles/STAPLES-Center-4165 our goal is to publish the most recent Tweets, made from the Staples Center - on this page... would this be possible based on the current Twitter API?
Re: [twitter-dev] Twitter Places
Sure, you can use the search method to find the place ID: http://dev.twitter.com/doc/get/geo/search Then set the place_id argument to /statuses/update to tweet from that place: http://dev.twitter.com/doc/post/statuses/update David On Sun, Jun 20, 2010 at 9:01 PM, ELB ebrit...@gmail.com wrote: Hello, I read on the Twitter blog that: (http://blog.twitter.com/2010/06/ twitter-places-more-context-for-your.html) We are releasing API functionality that lets developers integrate Twitter Places into their applications.“ I wanted to check in to see where we could learn about what functionality has been released. We have 100 places, ie: Staples Center, LAX Airport, Grand Central Terminal, etc that we want to publish Tweets from. Are we able to use the Twitter API to publish the current Tweets from a given place? if so, where in the API is the documentation to do this? ELB
Re: [twitter-dev] Twitter Places
David, Thanks. That first page (the 'geo search') is blank. /damon On Mon, Jun 21, 2010 at 5:19 PM, David Helder da...@twitter.com wrote: Sure, you can use the search method to find the place ID: http://dev.twitter.com/doc/get/geo/search Then set the place_id argument to /statuses/update to tweet from that place: http://dev.twitter.com/doc/post/statuses/update David
Re: [twitter-dev] Twitter Places
Thanks Damon, looks like the memcache got screwy. I'll get it back up! Taylor On Mon, Jun 21, 2010 at 3:32 PM, Damon Clinkscales sca...@pobox.com wrote: David, Thanks. That first page (the 'geo search') is blank. /damon On Mon, Jun 21, 2010 at 5:19 PM, David Helder da...@twitter.com wrote: Sure, you can use the search method to find the place ID: http://dev.twitter.com/doc/get/geo/search Then set the place_id argument to /statuses/update to tweet from that place: http://dev.twitter.com/doc/post/statuses/update David
Re: [twitter-dev] Twitter places documentation / bug??
how can I easilly convert date format (in status - created_at) to standard -mm-dd H:i:s ???
Re: [twitter-dev] Twitter places documentation / bug??
Quoting Alex Korotkov durm.icecof...@gmail.com: how can I easilly convert date format (in status - created_at) to standard -mm-dd H:i:s ??? Depends on what language you're using. Perl has dozens of date munging libraries, and Ruby, Python, PHP and JavaScript undoubtedly have at least one each. I started with Perl's Date::Manip, but it turned out to be way too slow to use it for the large datasets I collect, so I wrote my own date reformatting routines using the strings as they come back from Twitter. Note that there are two subtly different date formats. The REST and Streaming API have one format and Search has another. Here's my Perl code - if Twitter changes the formats this will fall apart in a ragged heap, but it is much faster than Date::Manip. ;-) my %months = (); $months{'Jan'} = 1; $months{'Feb'} = 2; $months{'Mar'} = 3; $months{'Apr'} = 4; $months{'May'} = 5; $months{'Jun'} = 6; $months{'Jul'} = 7; $months{'Aug'} = 8; $months{'Sep'} = 9; $months{'Oct'} = 10; $months{'Nov'} = 11; $months{'Dec'} = 12; sub fastdate { my ($input) = @_; my ($dow, $mon, $day, $time, $zone, $year) = split q{ }, $input; if (!defined $months{$mon}) { # this is a search date! return fastdate_search($input); # send this off to the right parser } else { my $monx = $months{$mon}; return sprintf %04d-%02d-%02d %8s %s, $year, $monx, $day, $time, $zone; } } # dates returned by search have a different format! sub fastdate_search { my ($input) = @_; my ($dow, $day, $mon, $year, $time, $zone) = split q{ }, $input; my $monx = $months{$mon}; return sprintf %04d-%02d-%02d %8s %s, $year, $monx, $day, $time, $zone; }
[twitter-dev] Twitter Places
Hello, I read on the Twitter blog that: (http://blog.twitter.com/2010/06/ twitter-places-more-context-for-your.html) We are releasing API functionality that lets developers integrate Twitter Places into their applications.“ I wanted to check in to see where we could learn about what functionality has been released. We have 100 places, ie: Staples Center, LAX Airport, Grand Central Terminal, etc that we want to publish Tweets from. Are we able to use the Twitter API to publish the current Tweets from a given place? if so, where in the API is the documentation to do this? ELB
[twitter-dev] Twitter places documentation / bug??
I'm testing the Twitter Places and How To Use Them (http://help.twitter.com/entries/194473-twitter-places-and-how-to-use-them)and I don't think everything is working. I've tried this with Firefox 3.6.4 beta and Chrome 6.0.437.3 dev on Linux, and with mobile.twitter.com on Android. The part that doesn't seem to be working is Search for places. I don't see that entry when I pull down the menu with the arrow. Is that not implemented yet?