[twitter-dev] API support for 'first tweet'
hey you lovely people I know we have the limits on search results but would it be possible to request and get back get the first tweet on for som specific searches. So things like profile and tag searches could support this. The historical data wouldn't change, you just need to capture tithe first time. If you searched a tag for example, you could get you limited results and can make a separate call to get just the first tweet - which would tell you lots... Like who, what and when. Might be a good compromise to some of the limitations of results and really help me out :) ! What do others think? Mike - is a newbie RoR dev, oldie javanista and entrepreneur has a passion for people and their stories loves twitter and other tools for dialogue -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] i am unable to get unique oauth_token
include 'lib/EpiCurl.php'; include 'lib/EpiOAuth.php'; include 'lib/EpiTwitter.php'; include 'lib/secret.php'; $twitterObj = new EpiTwitter($consumer_key, $consumer_secret); $oauth_token = $_GET['oauth_token']; if($oauth_token == '') { $url = $twitterObj-getAuthorizationUrl(); echo div style='width:200px;margin-top:200px;margin- left:auto;margin-right:auto'; echo a href='$url'Sign In with Twitter/a; echo /div; } else { $twitterObj-setToken($_GET['oauth_token']); $token = $twitterObj-getAccessToken(); $twitterObj-setToken($token-oauth_token, $token- oauth_token_secret); $_SESSION['ot'] = $token-oauth_token; $_SESSION['ots'] = $token-oauth_token_secret; $twitterInfo= $twitterObj-get_accountVerify_credentials(); $twitterInfo-response; $username = $twitterInfo-screen_name; $profilepic = $twitterInfo-profile_image_url; } i am using this code, this line gets the oauth_token sent by twitter. $twitterObj-setToken($_GET['oauth_token']); $_GET[oauth_token] must be unique for each user, but evry times the user logins it does change. how can i get a unique oauth_token for each user?any solution will be appreciated. thanx -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Listing Messages
Hi, Till few days back was able to retreive the message timelines, but suddenly it stopped is it any reason do you have simple code to test it from anyones successful running twitter api development using c#.net. thanks Arvind -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Twitter Timeline
hi i am using twitterizer in my asp.net application 2 days back i have getting twitterizer time line messages and my followers everything.i downloaded code form www.twitterizer.net now what happen i don't know i didn't getting my timeline messages. this is my code public TwitterStatusCollection HomePageStatuses { get; set; } protected void Page_Load(object sender, EventArgs e) { // Page.RegisterStartupScript(, scriptwindow.close();/ script); if (!this.IsPostBack) { TwitterUserCollection followers = TwitterUser.GetFollowers(Master.Tokens); foreach (TwitterUser follower in followers) { TwitterRelationship friends = TwitterUser.GetFriendship(Master.Tokens, follower.Id); return; } this.Trace.Write(Start TwitterUser.GetHomeTimeline); this.HomePageStatuses = TwitterUser.GetHomeTimeline(Master.Tokens); this.Trace.Write(End TwitterUser.GetHomeTimeline); this.DataBind(); ViewState.Add(homePageStatuses, this.HomePageStatuses); } else { this.HomePageStatuses = ViewState[homePageStatuses] as TwitterStatusCollection; } } l let me know what i have to change thanks, thyagarajulu. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] How long does it take to get a response from a API whitelist application?
I submitted a request to have our account whitelisted on Thursday 13th Jan and have yet to hear anything back from Twitter. How long does this normally take? Is there anything I can do to speed up the process? Thanks. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Wrong id for retweets
It seems the API returns a wrong id value for the original tweet in a retweet. Take this as an example: https://api.twitter.com/1/statuses/show/29504582241484800.json It returns: id: 29504533839216640 id_str: 29504533839216642 The id_str is the correct value. Am I the only one having this issue? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] How long does it take to get a response from a API whitelist application?
I submitted and then resubmitted whitelisting request months ago and too haven't heard from them once.. Jan On Mon, Jan 24, 2011 at 10:54 AM, Damien m...@damientimewell.com wrote: I submitted a request to have our account whitelisted on Thursday 13th Jan and have yet to hear anything back from Twitter. How long does this normally take? Is there anything I can do to speed up the process? Thanks. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] iPhone - application or web? What URL if web?
Hi, When I registered my application with Twitter, I was asked whether it was an application, or website. The latter required a URL callback. I tried to select website with 'oob' as the callback URL (as seen in the documentation notes), but the registration form rejected oob as an invalid callback URL (seems fair enough - it's not a URL). I'm left wondering, are iPhones apps to be registered as application or web? If the latter, what URL should be used? Cheers, Rob. -- Please visit... SpikyOrange.co.uk http://spikyorange.co.uk/ A portal for anything I create, including... BitBanter.com http://bitbanter.com/ A technical podcast 50% Tech + 50% software development = 100% Entertaining! http://spikyorange.co.uk/ -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Wrong id for retweets
Many JSON parsers/Javascript-like programming languages can no longer consume our Tweet ID integers -- if you view the raw response of this API request, you'll see the correct value for the ID integer -- but the act of consuming the JSON by most processors will munge the integer. It's recommended to use id_str instead. Taylor On Mon, Jan 24, 2011 at 6:01 AM, Edi edi@gmail.com wrote: It seems the API returns a wrong id value for the original tweet in a retweet. Take this as an example: https://api.twitter.com/1/statuses/show/29504582241484800.json It returns: id: 29504533839216640 id_str: 29504533839216642 The id_str is the correct value. Am I the only one having this issue? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] iPhone - application or web? What URL if web?
Great question. Our UI makes this choice very confusing, and we're actively thinking of ways to improve it. The answer depends on the type of authorization you're using on iOS. If you're doing a standard redirect-with-OAuth flow, where you're perhaps redirecting to a custom URI scheme like yourapp://, then you should choose the web type and enter a placeholder callback URL -- likely just a link to your site. This placeholder must be there, because the form itself won't accept a custom URI scheme. No matter what kind of OAuth you're doing, you should always provide an explicit oauth_callback on the request token step. If you're doing an out-of-band/PIN code flow, then you'll want to select the app mode. This allows you to send oauth_callback=oob on the request token step, and our system will reject any other oauth_callback value. This is a lock-down mode. If you're doing xAuth but using a key that may be also using standard OAuth, you'll want to select web and provide a placeholder callback URL. If you're doing xAuth and are sure there's no other way you'll be authenticating users, select app mode to lock down. Thanks, Taylor On Mon, Jan 24, 2011 at 6:34 AM, Rob Wilson netp...@gmail.com wrote: Hi, When I registered my application with Twitter, I was asked whether it was an application, or website. The latter required a URL callback. I tried to select website with 'oob' as the callback URL (as seen in the documentation notes), but the registration form rejected oob as an invalid callback URL (seems fair enough - it's not a URL). I'm left wondering, are iPhones apps to be registered as application or web? If the latter, what URL should be used? Cheers, Rob. -- Please visit... SpikyOrange.co.uk http://spikyorange.co.uk/ A portal for anything I create, including... BitBanter.com http://bitbanter.com/ A technical podcast 50% Tech + 50% software development = 100% Entertaining! http://spikyorange.co.uk/ -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Wrong id for retweets
Yes, you're right. My mistake. I had a browser plugin to format the JSON response, that's why it returned a wrong value. Thanks. On Jan 24, 4:29 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Many JSON parsers/Javascript-like programming languages can no longer consume our Tweet ID integers -- if you view the raw response of this API request, you'll see the correct value for the ID integer -- but the act of consuming the JSON by most processors will munge the integer. It's recommended to use id_str instead. Taylor On Mon, Jan 24, 2011 at 6:01 AM, Edi edi@gmail.com wrote: It seems the API returns a wrong id value for the original tweet in a retweet. Take this as an example: https://api.twitter.com/1/statuses/show/29504582241484800.json It returns: id: 29504533839216640 id_str: 29504533839216642 The id_str is the correct value. Am I the only one having this issue? -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Subscribing to the Site Streams API using OAuth
Hi Michael, You're very close to getting this right -- from here it looks like it's just a matter of ordering parameters in the signature base string correctly. OAuth signature basestrings require that the various parameters involved in the request be lexigraphically sorted amidst the oauth_* parameters that are part of the request -- since f comes before o, you'll want follow=xyz to appear before the oauth_* parameters. Like so: POSThttps%3A%2F%2Fbetastream.twitter.com %2F2b%2Fsite.jsonfollow%3D110504712%26oauth_consumer_key%3DUHgNkU4fUYz44KcluSKQg%26oauth_nonce%3D1j3XUAgciQvppwqAez5wa6hkExv3669wCFg1OMuL%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1295800274%26oauth_token%3D15264398-R38mT5QbA34LqsrYVEau6jwpJ1UUg5gy3lkEMDG4%26oauth_version%3D1.0 Thanks, Taylor On Sun, Jan 23, 2011 at 8:39 AM, Michael Hoisie hoi...@gmail.com wrote: Hi fellow Twitter devs, I'm trying to connect to the Twitter site streams API with a Go client ( http://github.com/hoisie/twitterstream ). There's no usable oauth client for Twitter in Go, so I have to write it from scratch. There seems to be something wrong with my HTTP request -- I was wondering if anyone knew off-hand if I'm doing something wrong. This is the request my client is sending: POST /2b/site.json HTTP/1.1 Host: betastream.twitter.com User-Agent: httplib.go Content-Length: 16 Authorization: OAuth oauth_token=15264398- R38mT5QbA34LqsrYVEau6jwpJ1UUg5gy3lkEMDG4, oauth_timestamp=1295800274, oauth_version=1.0, oauth_signature=ycWqdQ8pZSrzQgjrEPwi3rL%2BHd8%3D, oauth_consumer_key=UHgNkU4fUYz44KcluSKQg, oauth_nonce=1j3XUAgciQvppwqAez5wa6hkExv3669wCFg1OMuL, oauth_signature_method=HMAC-SHA1 follow=110504712 This is the base string for the signing: POSThttps%3A%2F%2Fbetastream.twitter.com%2F2b %2Fsite.jsonoauth_consumer_key%3DUHgNkU4fUYz44KcluSKQg%26oauth_nonce %3D1j3XUAgciQvppwqAez5wa6hkExv3669wCFg1OMuL%26oauth_signature_method %3DHMAC-SHA1%26oauth_timestamp%3D1295800274%26oauth_token%3D15264398- R38mT5QbA34LqsrYVEau6jwpJ1UUg5gy3lkEMDG4%26oauth_version%3D1.0%26follow %3D110504712 The user 110504712 has authorized the application via OAuth. The consumer_token, consumer_token_secret, oauth_token, and oauth_token_secret all come from my application on dev.twitter.com. I'm confident the signing implementation is correct because I can get Request and Access tokens. I believe there's something fundamentally wrong with the base string or http request. I'd really appreciate any help with this, Mike -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Is there a way to get a count of the number of times a tinyurl in a tweet is clicked on?
Hello all, I was wondering if there was a way to get a count of the number of times a tinyurl in a tweet is clicked on? We are currently using the REST api. Thanks, Melanie -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Subscribing to the Site Streams API using OAuth
Awesome, thanks Taylor! You're right, I was only sorting the oauth_* parameters. When I sort all the params correctly (including 'follow') I can connect. Thanks! Mike On Jan 24, 7:57 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Michael, You're very close to getting this right -- from here it looks like it's just a matter of ordering parameters in the signature base string correctly. OAuth signature basestrings require that the various parameters involved in the request be lexigraphically sorted amidst the oauth_* parameters that are part of the request -- since f comes before o, you'll want follow=xyz to appear before the oauth_* parameters. Like so: POSThttps%3A%2F%2Fbetastream.twitter.com %2F2b%2Fsite.jsonfollow%3D110504712%26oauth_consumer_key%3DUHgNkU4fUYz44Kc luSKQg%26oauth_nonce%3D1j3XUAgciQvppwqAez5wa6hkExv3669wCFg1OMuL%26oauth_sig nature_method%3DHMAC-SHA1%26oauth_timestamp%3D1295800274%26oauth_token%3D15 264398-R38mT5QbA34LqsrYVEau6jwpJ1UUg5gy3lkEMDG4%26oauth_version%3D1.0 Thanks, Taylor On Sun, Jan 23, 2011 at 8:39 AM, Michael Hoisie hoi...@gmail.com wrote: Hi fellow Twitter devs, I'm trying to connect to the Twitter site streams API with a Go client (http://github.com/hoisie/twitterstream). There's no usable oauth client for Twitter in Go, so I have to write it from scratch. There seems to be something wrong with my HTTP request -- I was wondering if anyone knew off-hand if I'm doing something wrong. This is the request my client is sending: POST /2b/site.json HTTP/1.1 Host: betastream.twitter.com User-Agent: httplib.go Content-Length: 16 Authorization: OAuth oauth_token=15264398- R38mT5QbA34LqsrYVEau6jwpJ1UUg5gy3lkEMDG4, oauth_timestamp=1295800274, oauth_version=1.0, oauth_signature=ycWqdQ8pZSrzQgjrEPwi3rL%2BHd8%3D, oauth_consumer_key=UHgNkU4fUYz44KcluSKQg, oauth_nonce=1j3XUAgciQvppwqAez5wa6hkExv3669wCFg1OMuL, oauth_signature_method=HMAC-SHA1 follow=110504712 This is the base string for the signing: POSThttps%3A%2F%2Fbetastream.twitter.com%2F2b %2Fsite.jsonoauth_consumer_key%3DUHgNkU4fUYz44KcluSKQg%26oauth_nonce %3D1j3XUAgciQvppwqAez5wa6hkExv3669wCFg1OMuL%26oauth_signature_method %3DHMAC-SHA1%26oauth_timestamp%3D1295800274%26oauth_token%3D15264398- R38mT5QbA34LqsrYVEau6jwpJ1UUg5gy3lkEMDG4%26oauth_version%3D1.0%26follow %3D110504712 The user 110504712 has authorized the application via OAuth. The consumer_token, consumer_token_secret, oauth_token, and oauth_token_secret all come from my application on dev.twitter.com. I'm confident the signing implementation is correct because I can get Request and Access tokens. I believe there's something fundamentally wrong with the base string or http request. I'd really appreciate any help with this, Mike -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] getting illegal/invalid characters back in json
I pull json results from a url like this: http://api.twitter.com/1/statuses/user_timeline/.json?count=9include_rts=truecallback=jsonp1295903703204_=12959037 Where X is the feed name. Normally, this works (I can't say what the feed name is, unfortunately). But I recently renamed the account, and now, intermittently, I get back jsonp that ends with something like this: o_screen_name:null,created_at:Mon ...45 + 2011}, 0, 0, 0, 0, 0]); You can't see them, but there are two bizarre, unknown illegal characters in there before all the zeros. json parsers, of course, choke on them quite badly. If I look at them in a text editor, they are EOT and BS in black boxes instead of regular characters. Any idea why this would be happening? Could it be related to changing the name of the account, and will it go away quickly? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] gzip Accept-Encoding header alternative
In Silverlight (and thus Windows Phone development) a developer is not allowed, for reasons unknown to me, to edit or alter the Accept- Encoding HTTP header. More info here: http://msdn.microsoft.com/en-us/library/system.net.webheadercollection%28v=VS.95%29.aspx As such it's not possible to add gzip to the Accept-Encoding header and get a compressed response. I've seen other server-side implementations provide a work around to this by also checking a custom HTTP header for Accept-Encoding values, such as X-Accept-Encoding. Is this something that Twitter does, I'm guessing the answer is no, but thought I'd ask otherwise Silverlight and Windows Phone dev's won't be able to request gzip'd requests. Thanks, dw. -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Is there a way to get a count of the number of times a tinyurl in a tweet is clicked on?
Huh... never heard of that... do you have any information on where I might find documentation on it? Thanks so much for your reply! Melanie On Jan 24, 11:00 am, Piers Karsenbarg em...@piersonthe.net wrote: Would that not be something that you would do through the tinyurl API? On 24 Jan 2011 18:56, MelCar melanie.ca...@sas.com wrote: Hello all, I was wondering if there was a way to get a count of the number of times a tinyurl in a tweet is clicked on? We are currently using the REST api. Thanks, Melanie -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Wrong link in the API documentation for account/verify_credentials in XML
You can find this problem at a lot of pages in the API docs .. for example here: http://dev.twitter.com/doc/get/followers/ids http://dev.twitter.com/doc/get/friends/ids .. I think twitter has got a problem in the CMS for the API .. On 23 Jan., 22:45, Silvio Guder gu...@xobo.de wrote: Its only a link for an example:http://dev.twitter.com/doc/get/account/verify_credentials In the example link for the XML is for JSON. Now its:http://dev.twitter.com/console?content_type=jsonpath=account/verify_... Must be:http://dev.twitter.com/console?content_type=xmlpath=account/verify_c... -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: Is there a way to get a count of the number of times a tinyurl in a tweet is clicked on?
Bitly has an API that gives you total clicks: http://code.google.com/p/bitly-api/wiki/ApiDocumentation TinyURL has an API too but not sure how to access total clicks off them. Dayah On Jan 24, 10:40 pm, MelCar melanie.ca...@sas.com wrote: Huh... never heard of that... do you have any information on where I might find documentation on it? Thanks so much for your reply! Melanie On Jan 24, 11:00 am, Piers Karsenbarg em...@piersonthe.net wrote: Would that not be something that you would do through the tinyurl API? On 24 Jan 2011 18:56, MelCar melanie.ca...@sas.com wrote: Hello all, I was wondering if there was a way to get a count of the number of times a tinyurl in a tweet is clicked on? We are currently using the REST api. Thanks, Melanie -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Re: No user matches for specified
Thanks Matt, I use look up by IDs. It seems I need to investigate what IDs am I sending to Twitter in order to troubleshoot the issue. Thanks for the clarification! Toddy On Jan 18, 5:13 pm, Matt Harris thematthar...@twitter.com wrote: Hi Toddy, The users/lookup method, which lookupUsers calls, will only return that error if none of the user_ids/screen_names you provide are recognised. The behavior of the API method is such that only the recognised user_ids/screen_names are returned and any which are not found are left out of the response. As this method is a lookup by user_id or screen_name you can compare the returned user_ids/screen_names with the ones you queried for. Those that are missing from the response were not found in our user database. You can find more information on the method in our developer documentation: http://dev.twitter.com/doc/get/users/lookup Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Tue, Jan 18, 2011 at 4:00 PM, ToddySM todd...@gmail.com wrote: Hello, I am trying to use lookupUsers(int[]) but occasionally I receive the following exception: 404:The URI requested is invalid or the resource requested, such as a user, does not exists. {errors:[{code:17,message:No user matches for specified terms}]} TwitterException{exceptionCode=[47354327-0118689f], statusCode=404, retryAfter=0, rateLimitStatus=RateLimitStatusJSONImpl{remainingHits=167, hourlyLimit=350, resetTimeInSeconds=1295247, secondsUntilReset=1658, resetTime=Mon Jan 17 07:01:03 UTC 2011}, version=2.1.7} at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java: 311) at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java: 72) at twitter4j.internal.http.HttpClientWrapper.get(HttpClientWrapper.java: 86) at twitter4j.Twitter.lookupUsers(Twitter.java:614) The two questions I have are: 1.) Does this mean that the whole batch failed? 2.) How can I get information which user actually fails the call? Thank you very much for the help. ToddySM -- Twitter developer documentation and resources:http://dev.twitter.com/doc API updates via Twitter:http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Minor glitch in Twitter's emails
I'm now getting multiple emails from Twitter sometimes when someone follows me or sends me a direct message. This is only a minor annoyance - I'm sure you have more urgent issues to worry about. But I did want you to know it's happening. ;-) -- http://twitter.com/znmeb http://borasky-research.net A mathematician is a device for turning coffee into theorems. -- Paul Erdős -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Get the number of retweets for a tweet
Hello, I am using twitter search api. How can I get the number of retweets for the tweet? Any help in this will be much appreciated. Please let me know if I can provide more information. Thanks! -Aditya -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
Re: [twitter-dev] Re: Wrong link in the API documentation for account/verify_credentials in XML
These will be fixed soon. Thanks, Taylor On Mon, Jan 24, 2011 at 2:57 PM, Silvio Guder gu...@xobo.de wrote: You can find this problem at a lot of pages in the API docs .. for example here: http://dev.twitter.com/doc/get/followers/ids http://dev.twitter.com/doc/get/friends/ids .. I think twitter has got a problem in the CMS for the API .. On 23 Jan., 22:45, Silvio Guder gu...@xobo.de wrote: Its only a link for an example: http://dev.twitter.com/doc/get/account/verify_credentials In the example link for the XML is for JSON. Now its: http://dev.twitter.com/console?content_type=jsonpath=account/verify_... Must be: http://dev.twitter.com/console?content_type=xmlpath=account/verify_c... -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Is there any timestamp for when a user starts following someone?
I am interested in finding out when a user started following another user. Is the time even recorded when that happens? And if so how do I make that query? I have scoured through the documentation and don't believe that it is possible. I just thought I would ask to make sure there wasn't something that I had missed. Thanks in advance. Edmund -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] API for mobile tweet
Good Day Tweeter Developers! Would you be so kind share some api for retweeting using the mobile. We are currently developing sms twitter. I would like to work out and do business with twitter. Thank You, Rj Foronda +639063329318 Manila Philippines -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Using skandinavian characters
Hi, I have a working api integration with the following setup: --- var strText = Inputs.GetProperty(DMTxt); var strUser = Inputs.GetProperty(DMUser); var strTextEnc = encodeString(strText); var sBaseTargetString = http://twitter.com/direct_messages/new.xml;; var sEncodedTargetString = encodeString(sBaseTargetString); var sSignatureKey = sConsumerSecret++oauth_token_secret; // Build Parameter String var sBaseParamString = oauth_consumer_key=+sConsumerKey +oauth_nonce=+sNonce; sBaseParamString = sBaseParamString + oauth_signature_method= + sSignMethod; sBaseParamString = sBaseParamString + oauth_timestamp=+sTimestamp; sBaseParamString = sBaseParamString + oauth_token= + oauth_token; sBaseParamString = sBaseParamString +oauth_version=+sAuthVersion; sBaseParamString = sBaseParamString +screen_name=+strUser; sBaseParamString = sBaseParamString +text=+strTextEnc; var sEncodedParamString = encodeString(sBaseParamString); // Get signature var sBaseString = POST+sEncodedTargetString ++sEncodedParamString; var sSignature = b64_hmac_sha1(sSignatureKey, sBaseString)+=; var sEncSignature = encodeString(sSignature); --- And this works great for all but Æ Ø Å and æ ø å... I have tried simply adding them to the encodeString() function as such: sEncString = sEncString.replace(/\æ/g, %E6); sEncString = sEncString.replace(/\Æ/g, %C6); sEncString = sEncString.replace(/\ø/g, %F8); sEncString = sEncString.replace(/\Ø/g, %D8); sEncString = sEncString.replace(/\å/g, %E5); sEncString = sEncString.replace(/\Å/g, %C5); But this returns a Status: 400 Bad Request with the target url: http://twitter.com/direct_messages/new.xml?screen_name=thusvtext=%E6%20%F8%20%E5 Any tips? -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk
[twitter-dev] Low Volume App Search API Rate Limitations and Alternative Options
Hi guys, It is a bit over an year since I've been running a small volume Twitter based app deployed on Google App Engine. Basically this app is using the search API to poll some results. According to the app stats it is making less than 100 request/hour. But since last weekend, it seems it is continuously getting a rate limitation error and even if I backdown this doesn't change. Unfortunately, switching to the streamapi is not possible as Google App Engine does not allow long lived responses. So, my questions is: 1. how should I proceed? 2. is there any way I could whitelist this little app so it doesn't get rate limited? (nb: I am aware that the search API doesn't have an official whitelisting process) 3. considering I'm running on Google App Engine, I cannot provide an IP, but I could definitely make sure to submit some whitelisted headers (or something in this area). While little, this app is quite essential for me. Please advise how should I proceed. Many thanks in advance, :- alex -- Twitter developer documentation and resources: http://dev.twitter.com/doc API updates via Twitter: http://twitter.com/twitterapi Issues/Enhancements Tracker: http://code.google.com/p/twitter-api/issues/list Change your membership to this group: http://groups.google.com/group/twitter-development-talk