[twitter-dev] Re: 403 on statuses longer than 140 characters
I don't suppose that the API documentation will be updated and made complete On Mar 19, 9:52 am, Mark McBride mmcbr...@twitter.com wrote: Abraham is correct. We only truncate text in the case of SMS tweets. We won't chop text off of tweets when posted via the API, however we will shorten URLs if it will get the tweet to fit into 140 characters. ---Mark http://twitter.com/mccv On Fri, Mar 19, 2010 at 8:52 AM, Abraham Williams 4bra...@gmail.com wrote: The URLs might be shortened not the text of the status itself. Abraham On Thu, Mar 18, 2010 at 22:03, Andy Freeman ana...@earthlink.net wrote: What in the return JSON tells us that you've shortened? For example, are you setting/returning truncate? Are you returning the shortened tweet in status? On Mar 18, 12:30 pm, Mark McBride mmcbr...@twitter.com wrote: I should clarify. Returning a 403 is what we do right now. Later today (hopefully) we will correct the behavior to return a 200 in this case. So short story: we'll be doing what you want us to do. ---Mark http://twitter.com/mccv On Thu, Mar 18, 2010 at 11:57 AM, Dewald Pretorius dewaldpub...@gmail.comwrote: In the announcement, Mark said, ...in the case that a long status can be reduced to under 140 characters by shortening URLs. In this case we return a 403 but successfully create the status. Any chance that you can instead return a 200? Returning a 403 while you actually created the status will cause confusion.- Hide quoted text - - Show quoted text - To unsubscribe from this group, send email to twitter-development-talk+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. -- Abraham Williams | Community Advocate |http://abrah.am TwitterOAuth |http://github.com/abraham/twitteroauth This email is: [ ] shareable [x] ask first [ ] private. To unsubscribe from this group, send email to twitter-development-talk+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.- Hide quoted text - - Show quoted text - To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[twitter-dev] Geolocation revisited
When geolocation was first introduced we launched an app that was a very simple mashup of Google maps and Twitter, enabling users to attach a location of their choosing - not necessarily their actual location - to a tweet. The much-discussed privacy concerns of geolocation were not relevant to this application, which we made first of all for our own use - to geotag new, location-specific content from our website. Anyway, it seemed at the time that only users tweeting from GPS-enabled phones had to worry about revealing their true location. The other day, when map pins and cute little maps began to appear with our tweets, we thought that was very cool indeed and we began thinking again about promoting this app. (Oddly, the geodata only shows when we are logged in - maybe that will change..?) In order for a user to geo-tweet using our app, they needed to have Enable geotagging checked in their settings. This has since been changed to Add a location to your tweets. On a support page dated 12 November 2009 (which I suspect has been updated more recently), Twitter states, Twitter won't show any location information unless you've opted-in to the feature, and have allowed your device or browser to transmit your coordinates to us, but the part about the device or browser does not seem to apply to to the use of third-party apps like ours. On the same page Twitter says that Tweet With Your Location is only available in the United States which again does not appear to apply to users of third party browser apps. (We are not in the US) We just need to know what we should tell our users. They need change their settings by checking the box by Tweet Location, but _not_ allow their browser to transmit their location, right? Then they can ignore the part about 'available in US only' and _not worry_ about accidently revealing their exact location? Can we promise them that? Thanks, Ken To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [twitter-dev] Re: Most popular tweets in the search API
Agreed - default sould be recentness, popularity - however it is defined - and we could go into a long sidetrack on that which has nothing to do with the api, apart from to just say that different people will have different ideas of how to take the data that comes with a tweet and use ti to calculate the tweet's popularity - should be something that we, the developer community, insert following requests from our users, not something one size fits all handed down from twitter. I think twitter is fantastic, but sometimes they make a bad decision. This is one of them. On 20 March 2010 01:33, S Wang shuanw...@gmail.com wrote: As someone who's developing some applications right now specifically involving the search APIs I now have to worry about whether or not I should pre-emptively include the result_type parameter so my app doesn't become non-functioning when the changes are pushed to the site. Why do the popular tweets have to be the default behavior in the API? On Mar 19, 7:42 am, funkatron funkat...@gmail.com wrote: So this would change the default behavior of the search API, which is currently to return recent results? If so, I think that's a bad idea. Better to offer the option than to change existing behavior when possible. -- Ed Finklerhttp://funkatron.com Twitter:@funkatron AIM: funka7ron ICQ: 3922133 XMPP:funkat...@gmail.com xmpp%3afunkat...@gmail.com On Mar 19, 10:37 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Developers! The Search team is working on a beta project that returns the most popular tweets for a query, rather than only the most recent tweets. This is a beta project, but an important first step to surface the most popular tweets for users searching Twitter. You can expect many improvements as we tune and tweak our algorithms, but we want to give everyone a heads up so we can go over the implications for those consuming the search API. --- New attribute in the payload --- First of all there will be a new attribute in search result payloads. Since some tweets are popular for a given query while others are simply the most recent results that match the query, we are adding a metadata section to specify the type of result that a given result represents. So for a popular tweet the result_type in the metadata section will have the value popular. Example of a result with a popular tweet: { results: [ { profile_image_url: http://a1.twimg.com/profile_images/668144840/Elizabeth_Web_normal.jpg;, created_at:Mon,15 Feb 2010 19:55:18 +, from_user:Elizabeth, to_user_id:null, text:It's the Griswold family trip to Joshua Tree Park! @rsarver @Devon @Jess @noradio @kevinweil, id:9153622261, from_user_id:106309, geo:null, iso_language_code:en, source:lt;a href=quot;http://www.atebits.com/; rel=quot;nofollowquot;gt;Tweetielt;/agt;, metadata: { result_type: popular } } /* etc ... */ } Results that are not popular and represent simply recent query matches will have the result_type in the metadata section with a value of recent. Example of a recent result: { results: [ { profile_image_url: http://a3.twimg.com/profile_images/641350353/TimCheekFinger_normal.jpg;, created_at:Mon, 15 Feb 2010 23:42:45 +, from_user:timhaines, to_user_id:97776, text:@noradio Nice spot., id:9160218997, from_user_id:159881, to_user:noradio, geo:null, iso_language_code:it, source:lt;a href=quot;http://www.atebits.com/; rel=quot;nofollowquot;gt;Tweetielt;/agt;, metadata: { result_type: recent } }, /* etc ... */ } --- Results with popular tweets aren't ordered chronologically --- Until the popular tweet feature all search results have been sorted chronologically, most recent results at the top. If a search query has any popular results, those will be returned at the top, even if they are older than the other results. Example of a non-chronologically ordered set of results including popular results: { results: [ { profile_image_url: http://a1.twimg.com/profile_images/668144840/Elizabeth_Web_normal.jpg;, created_at:Mon, 15 Feb 2010 19:55:18 +, from_user:Elizabeth, to_user_id:null, text:It's the Griswold family trip to Joshua Tree Park! @rsarver @Devon @Jess @noradio @kevinweil,
[twitter-dev] streaming api
Hi i run this code but it just give me 100 status whose track twitter word but it not work as a stream...and not continue update for real time. plz tell me which method use to continue stream i m using TweetSharp Preview 24 API var twitter = FluentTwitter.CreateRequest() .AuthenticateAs(TWITTER_USERNAME, TWITTER_PASSWORD) .Configuration.TimeoutAfter(1.Minute()) .Configuration.UseAutomaticRetries(RetryOn.ConnectionClosed, 2) .Stream().FromFilter() .For(10.Seconds()).Take(100) .Tracking(Twitter) // Add other filter options here... .CallbackTo((sender, result) = { var statuses = result.AsStatuses(); foreach (var status in statuses) { Console.WriteLine({0}: {1}, status.User.ScreenName, status.Text); } }); twitter.RequestAsync(); To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[twitter-dev] Re: Introduce yourself!
Hello, I am Craig Hughes, a Graphic Designer and Web Developer based in Wales (UK). I speak fluent Photoshop, Fireworks and Illustrator and build my web projects using PHP, jQuery, Javascript and a sprinkle of Spry for good measure. The Twitter platform was the first API I worked with to develop a web service. Back in March 2009, I built tweetzi, an augmented interface for searching Twitter that allowed users to 'play' or 'pause' the results stream. Working with Twitter search was a complete revelation as I realized how powerful and useful the information contained in millions of real-time tweets could be. http://tweetzi.com Expanding on tweetzi, I recently finished developing tweetzi LOCAL, a new type of classifieds service that uses localized Twitter data to provide ways for users to interact at a city level. The service provides a way for users to browse and post tweets across dozens of categories in a similar fashion to services such as Craigslist, Oodle and Gumtree. http://tweetzi.com/local I look forward to the new Twitter search developments (popular tweets) being rolled out. Kind Regards Craig @tweetzi Contact: http://tweetzi.com/local/talk UK: 020 8144 8505 To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[twitter-dev] Re: Twitter Search: The page you were looking for doesn't exist.
thank you. this is the search string i'm using: http://search.twitter.com/search.json?q=from:gp04lchrpp=5000since_id=0callback=?rpp=20 i went through the API and noticed it states that results are limited to 7 days. is there a way to get results earlier than the 7 days? On Mar 16, 11:44 pm, Mark McBride mmcbr...@twitter.com wrote: First, your query string isn't a valid search API query string. Copying and pasting from advanced search is frowned upon. If you strip it down to the basics of what you're trying to do you end up with this http://search.twitter.com/search.json?q=from:gp04lchsince=2010-03-01... Note that 1) You need to supply a content type for the query 2) You can't have a within on the API, look at the dochttp://apiwiki.twitter.com/Twitter-Search-API-Method:-searchand use the geocode param 3) Blank parameters generally aren't a good idea 4) The from operator doesn't work in the API, instead use from:user in the query Even after all that there does appear to be a bug in the search API, as I get the result {error:Couldn't find Status with ID=9796641788} I'll let that team know. ---Mark http://twitter.com/mccv On Mon, Mar 15, 2010 at 7:48 PM, Chung Han Lau arbuquerq...@gmail.comwrote: funny no one seems to be taking any interest in this thread. am i missing something? On Mar 15, 11:14 am, Chung Han Lau arbuquerq...@gmail.com wrote: hi, am using twitter search returning json for webpage output. just got this messag returned with this url: http://search.twitter.com/search?q=ands=phrase=ors=nots=tag=lan... seems i cannot use the 'Since this date' and 'Until this date'. please rectify. regards To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [twitter-dev] Re: Twitter Search: The page you were looking for doesn't exist.
The current search corpus duration is limited to about 7 to 14 days. The search team is working on increasing the duration. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Sat, Mar 20, 2010 at 6:22 AM, Chung Han Lau arbuquerq...@gmail.comwrote: thank you. this is the search string i'm using: http://search.twitter.com/search.json?q=from:gp04lchrpp=5000since_id=0callback=?rpp=20 i went through the API and noticed it states that results are limited to 7 days. is there a way to get results earlier than the 7 days? On Mar 16, 11:44 pm, Mark McBride mmcbr...@twitter.com wrote: First, your query string isn't a valid search API query string. Copying and pasting from advanced search is frowned upon. If you strip it down to the basics of what you're trying to do you end up with this http://search.twitter.com/search.json?q=from:gp04lchsince=2010-03-01... Note that 1) You need to supply a content type for the query 2) You can't have a within on the API, look at the dochttp:// apiwiki.twitter.com/Twitter-Search-API-Method:-searchand use the geocode param 3) Blank parameters generally aren't a good idea 4) The from operator doesn't work in the API, instead use from:user in the query Even after all that there does appear to be a bug in the search API, as I get the result {error:Couldn't find Status with ID=9796641788} I'll let that team know. ---Mark http://twitter.com/mccv On Mon, Mar 15, 2010 at 7:48 PM, Chung Han Lau arbuquerq...@gmail.com wrote: funny no one seems to be taking any interest in this thread. am i missing something? On Mar 15, 11:14 am, Chung Han Lau arbuquerq...@gmail.com wrote: hi, am using twitter search returning json for webpage output. just got this messag returned with this url: http://search.twitter.com/search?q=ands=phrase=ors=nots=tag=lan. .. seems i cannot use the 'Since this date' and 'Until this date'. please rectify. regards To unsubscribe from this group, send email to twitter-development-talk+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [twitter-dev] streaming api
Perhaps the 10.Seconds() and Take(100) functions are limiting your output? It seems that this framework is perhaps not streaming, but assuming a finite response size? I'd ask on the TweetSharp dev list. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Sat, Mar 20, 2010 at 3:01 AM, rizwan khann hadiyatk...@gmail.com wrote: Hi i run this code but it just give me 100 status whose track twitter word but it not work as a stream...and not continue update for real time. plz tell me which method use to continue stream i m using TweetSharp Preview 24 API var twitter = FluentTwitter.CreateRequest() .AuthenticateAs(TWITTER_USERNAME, TWITTER_PASSWORD) .Configuration.TimeoutAfter(1.Minute()) .Configuration.UseAutomaticRetries(RetryOn.ConnectionClosed, 2) .Stream().FromFilter() .For(10.Seconds()).Take(100) .Tracking(Twitter) // Add other filter options here... .CallbackTo((sender, result) = { var statuses = result.AsStatuses(); foreach (var status in statuses) { Console.WriteLine({0}: {1}, status.User.ScreenName, status.Text); } }); twitter.RequestAsync(); To unsubscribe from this group, send email to twitter-development-talk+ unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[twitter-dev] Way to use JSON offline?
Anyone know a way to just use a local JSON file, taken from a twitter API call, to test an app with in PHP? Right now I'm testing with actual calls to the API, but I don't want to have to keep tracking how many calls I've made within the hour. Thanks! To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [twitter-dev] Way to use JSON offline?
Read up on the concept of mocking. ∞ Andy Badera ∞ +1 518-641-1280 Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me: http://www.google.com/search?q=andrew%20badera On Sat, Mar 20, 2010 at 1:20 PM, Cassidy cassc...@gmail.com wrote: Anyone know a way to just use a local JSON file, taken from a twitter API call, to test an app with in PHP? Right now I'm testing with actual calls to the API, but I don't want to have to keep tracking how many calls I've made within the hour. Thanks! To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[twitter-dev] Re: Way to use JSON offline?
More specifically, try phpunit's mock object framework. http://www.phpunit.de/manual/3.0/en/mock-objects.html On Mar 20, 11:08 am, Andrew Badera and...@badera.us wrote: Read up on the concept of mocking. ∞ Andy Badera ∞ +1 518-641-1280 Google Voice ∞ This email is: [ ] bloggable [x] ask first [ ] private ∞ Google me:http://www.google.com/search?q=andrew%20badera On Sat, Mar 20, 2010 at 1:20 PM, Cassidy cassc...@gmail.com wrote: Anyone know a way to just use a local JSON file, taken from a twitter API call, to test an app with in PHP? Right now I'm testing with actual calls to the API, but I don't want to have to keep tracking how many calls I've made within the hour. Thanks! To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject. To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[twitter-dev] Skip the Return Values page after sending a tweet?
Forgive me if this isn't the right place to post, but I can't seem to find any answers to my question and i'm still pretty new to this. After integrating Twitter into my website, whenever i publish a tweet (from my website) i get sent to a page with return values. The tweet gets sent fine, but I dont want my users to see the return values. How do I send them to a page of my choice (i.e. index page or a confirmation page) after they send a tweet, instead of them seeing the return values? To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[twitter-dev] Re: Skip the Return Values page after sending a tweet?
Sounds like you are just redirecting your users to the Twitter API URL in their browser, and they are seeing the API response. This is not right. You should use some Twitter API library to send the API request and receive the response within your application, and then display some feedback to your users yourself, depending on what result you got from the API. On Mar 20, 11:05 pm, T tstrickland...@gmail.com wrote: Forgive me if this isn't the right place to post, but I can't seem to find any answers to my question and i'm still pretty new to this. After integrating Twitter into my website, whenever i publish a tweet (from my website) i get sent to a page with return values. The tweet gets sent fine, but I dont want my users to see the return values. How do I send them to a page of my choice (i.e. index page or a confirmation page) after they send a tweet, instead of them seeing the return values? To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
Re: [twitter-dev] Re: Send Cyrillic character (OAuth)
I'm new to Rails, and I am in process of studying this oauth example. Since there is no index file entry point at /public, where is the entry point of your oauth-dancer app? This is a newbie question of Rails, but it looks like a fun app for the oauth dancing purposes, and I wanted to follow the logic. Thanks. Pat On Thu, Mar 18, 2010 at 10:02 PM, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Z-13, Using my OAuth Dancer tool ( http://bit.ly/oauth-dancer ), it's fairly easy to setup a test scenario where you're posting a status with Cyrillic characters, as long as you're using the UTF-8 representation. While I don't know what specific code you'll need to write for Adobe AIR, through the OAuth and HTTP request cycle, this is how it's represented: Full Request URI http://api.twitter.com/1/statuses/update.xml HTTP Method post Request Body status=тест+on+behalf+of+another Content-Type application/x-www-form-urlencoded Headers Content-Type: application/x-www-form-urlencoded The OAuth Dance Signature Base String POSThttp%3A%2F%2Fapi.twitter.com%2F1%2Fstatuses%2Fupdate.xmloauth_consumer_key%3Dri8JxYK2ddwSV5xIUfNNvQ%26oauth_nonce%3Dn4uOLc7RCCf3PtKeEPpBiV1EdRXLyFAM72Q60J80w8s%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1268924223%26oauth_token%3D119476949-gF0B5O1Wwa2UqqIwopAhQtQVTzmfSIOSiHQS7Vf8%26oauth_version%3D1.0%26status%3D%25D1%2582%25D0%25B5%25D1%2581%25D1%2582%2520on%2520behalf%2520of%2520another Signature 6FcKffKploa26usTJuoADrtqp9Y= Authorization Header OAuth oauth_nonce=n4uOLc7RCCf3PtKeEPpBiV1EdRXLyFAM72Q60J80w8s, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1268924223, oauth_consumer_key=ri8JxYK2ddwSV5xIUfNNvQ, oauth_token=119476949-gF0B5O1Wwa2UqqIwopAhQtQVTzmfSIOSiHQS7Vf8, oauth_signature=6FcKffKploa26usTJuoADrtqp9Y%3D, oauth_version=1.0 Notice the encoding on the signature base string. Here's the response you get back for a successful POST, which includes the special characters as UTF-8 entities: ?xml version=1.0 encoding=UTF-8? status created_atThu Mar 18 14:57:04 + 2010/created_at id10674682220/id text#1090;#1077;#1089;#1090; on behalf of another/text sourcelt;a href=quot;http://realitytechnicians.comquot; rel=quot;nofollowquot;gt;Crying Indianlt;/agt;/source truncatedfalse/truncated in_reply_to_status_id/in_reply_to_status_id in_reply_to_user_id/in_reply_to_user_id favoritedfalse/favorited in_reply_to_screen_name/in_reply_to_screen_name user id119476949/id nameOAuth Dancer/name screen_nameoauth_dancer/screen_name locationSan Francisco, CA/location description/description profile_image_urlhttp://a3.twimg.com/profile_images/730275945/oauth-dancer_normal.jpg/profile_image_url urlhttp://bit.ly/oauth-dancer/url protectedfalse/protected followers_count9/followers_count profile_background_colorC0DEED/profile_background_color profile_text_color33/profile_text_color profile_link_color0084B4/profile_link_color profile_sidebar_fill_colorDDEEF6/profile_sidebar_fill_color profile_sidebar_border_colorC0DEED/profile_sidebar_border_color friends_count11/friends_count created_atWed Mar 03 19:37:35 + 2010/created_at favourites_count0/favourites_count utc_offset/utc_offset time_zone/time_zone profile_background_image_urlhttp://a3.twimg.com/profile_background_images/80151733/oauth-dance.png/profile_background_image_url profile_background_tiletrue/profile_background_tile notificationsfalse/notifications geo_enabledfalse/geo_enabled verifiedfalse/verified followingfalse/following statuses_count17/statuses_count langen/lang contributors_enabledfalse/contributors_enabled /user geo/ coordinates/ place/ contributors/ /status Hope this helps you. Taylor Singletary Developer Advocate, Twitter http://twitter.com/episod On Thu, Mar 18, 2010 at 3:38 AM, Z-13 y...@yandex.ru wrote: Who can help me? To unsubscribe from this group, send email to twitter-development-talk+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.