[twitter-dev] Feedback on the sidebar of the documentation site
I've been meaning to post some feedback in regards to dev.twitter.com for a while. I'm wondering if anyone else is having the same experience I am. It's pretty much all in regards to the sidebar: * I find it harder to find methods I'm looking for now that everything is listed under collapsible headers on the right. * I find it disorienting that the headers expand in place, but when I click a method on page refresh the header and methods have jumped to the top of the sidebar. * Once you're looking at a method, if you expand a different section in the sidebar the current section collapses and you can't reopen it. All this kinda makes me wish we just had a nice simple sidebar that didn't have any expand/collapse functionality or at least had the option to expand multiple sidebar items and have the state be retained after clicking a method. -- 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 list/create_all working?
I'm trying to make a call to add multiple users to a list using the format http://api.twitter.com/1/owner_id/list_id/create_all.xml?user_id=user_id_1,user_id_2,user_id_3 This seems to be failing and returning an HTML page from Twitter. My calls to add the same users to the same list one at a time using list_id/members.xml works fine. -- 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] xauth return Failed to validate oauth signature and token
Your x_auth_* parameters aren't in your base string. This might cause it. Tom On Oct 29, 2010, at 6:10 AM, udta 477914...@163.com wrote: Hi, I am using libtwitcurl, and converting oAuth to xAuth, but I got Failed to validate oauth signature and token. I compare all I can printf data to libQtweet(xauth succesful), and couldn't found any error sigBase is: POSThttps%3A%2F%2Fapi.twitter.com%2Foauth %2Faccess_tokenoauth_consumer_key%3D**%26oauth_nonce %3D1288319703364%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp %3D1288319703%26oauth_version%3D1.0 oAuthHttpHeader is: Authorization: OAuth oauth_consumer_key=*,oauth_nonce=1288319703364,oauth_signature=SUlWtiHEc6wZJwiY9bZDgRkSyKE %3D,oauth_signature_method=HMAC- SHA1,oauth_timestamp=1288319703,oauth_version=1.0 This is my code: bool twitCurl::xAuthAccessToken() { bool retVal = false; FILE *fp = fopen(/tmp/twitter/xauth,w); std::string url(oAuthTwitterApiUrls::OAUTHLIB_TWITTER_ACCESS_TOKEN_URL); if( isCurlInit() ) { std::string body = x_auth_mode=client_authx_auth_password= + urlencode(m_twitterPassword) + x_auth_username= + urlencode(m_twitterUsername); std::string dataStr(); dataStr = body; url += (std::string(?) + body); std::string oAuthHeader( ); struct curl_slist* pOAuthHeaderList = NULL; CURL* curlHandle = curl_easy_init();; std::string localUrl = url; size_t nPos = url.find_first_of( ? ); if( std::string::npos != nPos ) { localUrl = url.substr( 0, nPos ); } dataStr = urlencode( dataStr ); std::string oAuthHttpHeader(); /* Set OAuth header */ m_oAuth.getOAuthHeader( eOAuthHttpPost, localUrl, dataStr, oAuthHttpHeader ); if( oAuthHttpHeader.length() 0 ) { pOAuthHeaderList = curl_slist_append( pOAuthHeaderList, oAuthHttpHeader.c_str() ); if( pOAuthHeaderList ) { curl_easy_setopt( curlHandle, CURLOPT_HTTPHEADER, pOAuthHeaderList ); } } /* Set http request, url and data */ curl_easy_setopt( curlHandle, CURLOPT_POST, 1 ); curl_easy_setopt( curlHandle, CURLOPT_USE_SSL, CURLUSESSL_CONTROL); curl_easy_setopt( curlHandle, CURLOPT_SSLVERSION, CURL_SSLVERSION_SSLv3); curl_easy_setopt( curlHandle, CURLOPT_SSL_VERIFYPEER, 0L); curl_easy_setopt( curlHandle, CURLOPT_SSL_VERIFYHOST, 0L); curl_easy_setopt( curlHandle, CURLOPT_URL, url.c_str() ); curl_easy_setopt( curlHandle, CURLOPT_WRITEFUNCTION, write_data ); curl_easy_setopt( curlHandle, CURLOPT_WRITEDATA, fp ); if( dataStr.length() ) { curl_easy_setopt( curlHandle, CURLOPT_COPYPOSTFIELDS, dataStr.c_str() ); } /* Send http request */ CURLcode code = curl_easy_perform( curlHandle ); if( code == CURLE_OK ) { retVal = true; } else { retVal = false; } if( pOAuthHeaderList ) { curl_slist_free_all( pOAuthHeaderList ); } fclose(fp); } return retVal; } 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
Re: [twitter-dev] Rate limit for streaming api (tracking keyword)
There is no real limit on the stream API, because it is an open connection that stays open. As long as you don't connect/disconnect too often, you will not hit any limits. Tom On Oct 29, 2010, at 6:55 AM, Thiago Esteves thgeste...@gmail.com wrote: Hi, I am developing an application that needs to track a keyword on twitter, that keyword is a hashtag, the frequency of that keyword is not high, but the application needs to stay listening and don't stop never. What is the rate limit Twitter apply for this case? Could not find it on twitter devel pages. 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] Json parse error / escape problem
Hi i have got an issue with my PHP version while developing the tweeter application. Our company setting at the moment is: php 5.1.2 the json_decode function is from 5.2+. So when I try to tweet a message to twitter it throws 'Illegal escape sequence 'u''. Can anyone would like to help? Below is the issue that I have got: i.e. '' is parsed as '\u003C' in the twitter return. === {listed_count: 0,profile_use_background_image:true,profile_text_color:33,description:null,screen_name:11oo10devtest3,statuses_count: 9,status: {place:null,coordinates:null,in_reply_to_status_id:null,in_reply_to_user_id:null,truncated:false,in_reply_to_status_id_str:null,geo:null,id_str:29084262635,favorited:false,source:\u003Ca href=\http:\/\/www.puregym.co.uk\/TwitterAPI\ rel=\nofollow \\u003Eauto test\u003C\/a \u003E,in_reply_to_user_id_str:null,contributors:null,in_reply_to_screen_name:null,created_at:Fri Oct 29 12:50:31 + 2010,retweet_count:null,id: 29084262635,retweeted:false,text:[56436] test message2010-10-29 01:50:30},show_all_inline_media:false,profile_background_image_url:http: \/\/s.twimg.com\/a\/1288305442\/images\/themes\/theme1\/ bg.png,friends_count: 0,profile_link_color:0084B4,contributors_enabled:false,id_str:209514668,geo_enabled:false,notifications:false,profile_background_tile:false,profile_sidebar_fill_color:DDEEF6,followers_count: 2,url:null,lang:en,verified:false,created_at:Fri Oct 29 10:19:07 + 2010,profile_sidebar_border_color:C0DEED,location:null,follow_request_sent:false,protected:false,time_zone:null,favourites_count: 0,name:11oo10devtest3,following:false,profile_background_color:C0DEED,profile_image_url:http: \/\/s.twimg.com\/a\/1288305442\/images\/ default_profile_6_normal.png,id:209514668,utc_offset:null} || account/verify_credentials Illegal escape sequence 'u' -- 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] Facing problem with Twitter client integration on Iphone
I am integration Twitter cleint link in Iphone application but having autthentication not supported and my post isn't pusblishing on twitter website. I using this link below and my id and password are correct NSURL *url = [NSURL URLWithString:@http://twitter.com/statuses/ update.xml]; NSString *requestmain = [NSString stringWithFormat:@statuses= %@,@Testing purpose]; NSMutableURLRequest *mainRequest = [[NSMutableURLRequest alloc] initWithURL:url]; [mainRequest setValue:[NSString stringWithFormat:@%d,[requestmain length]] forHTTPHeaderField:@Content-length]; [mainRequest setHTTPBody:[requestmain dataUsingEncoding:NSASCIIStringEncoding allowLossyConversion:YES]]; [mainRequest setValue:@application/x-www-form-urlencoded forHTTPHeaderField:@Content-Type]; [mainRequest setHTTPMethod:@POST]; [NSURLConnection connectionWithRequest:mainRequest delegate:self]; [mainRequest release]; I guess think isn't working properly http://twitter.com/statuses/update.xml - (void) connection:(NSURLConnection *)connection didFailWithError: (NSError *)error { NSLog(@Failed); } - (void) connectionDidFinishLoading:(NSURLConnection *)connection { NSLog(@Success); } - (void) connection:(NSURLConnection *)connection didReceiveAuthenticationChallenge:(NSURLAuthenticationChallenge *)challenge { short cprev = [challenge previousFailureCount]; if (cprev == 0) { NSURLCredential *cred = [NSURLCredential credentialWithUser:user password:password persistence:NSURLCredentialPersistenceNone]; [[challenge sender] useCredential:cred forAuthenticationChallenge:challenge]; } else { [[challenge sender] cancelAuthenticationChallenge:challenge]; } } I always get a success log in my gdb but my post arent publishing on twitter portal with my login and pasword although I have complete access for it. -- 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] Userstream oauth prompting for user/pass
Trying to use userstream.twitter.com over https with oauth and i keep getting prompted for a username and password, according to the documentation (http://dev.twitter.com/pages/user_streams) oauth is supported. Is there some documentation, twitter app configuration, or signup form that i've missed? -- 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] Old Tweets
Your only other options to load older tweets are Google. Best, -- Edward H. Hotchkiss http://www.edwardhotchkiss.com/ http://www.twitter.com/edwardhotchkiss/ -- On Oct 29, 2010, at 9:20 AM, Marcos Lavorato wrote: Hello folks. I am a developer and I want to develop a application that analyze all tweets from a user using the O-Auth. I read that that using the API I can load only the last 3200 tweets. Is this right? Have another method to load all tweets from user? Really thanks. Marcos -- 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 inline: edward.png-- 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] Feedback on the sidebar of the documentation site
The methods are actually just queries and parameters for OAuth. You select the language of your choice. For examples check out @abraham's TwitterOAuth on GitHub. It's not really that confusing because it's just made to be a reference point, not an all day bonanza. Best, -- Edward H. Hotchkiss http://www.edwardhotchkiss.com/ http://www.twitter.com/edwardhotchkiss/ -- On Oct 29, 2010, at 2:21 AM, Orian Marx (@orian) wrote: I've been meaning to post some feedback in regards to dev.twitter.com for a while. I'm wondering if anyone else is having the same experience I am. It's pretty much all in regards to the sidebar: * I find it harder to find methods I'm looking for now that everything is listed under collapsible headers on the right. * I find it disorienting that the headers expand in place, but when I click a method on page refresh the header and methods have jumped to the top of the sidebar. * Once you're looking at a method, if you expand a different section in the sidebar the current section collapses and you can't reopen it. All this kinda makes me wish we just had a nice simple sidebar that didn't have any expand/collapse functionality or at least had the option to expand multiple sidebar items and have the state be retained after clicking a method. -- 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 inline: edward.png-- 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] Querying Streaming API filter with partial link phrase
The Streaming API doesn't have support for domain link matching yet. It's something the team is looking into but we do not have a timeline for when it will be available. If there are any updates on this we'll post them to the mailing list and @twitterapi. Best @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Thu, Oct 28, 2010 at 9:31 PM, _ado adri...@tijsseling.com wrote: I can make a query to http://search.twitter.com/search?q=news.com and it matches keywords as well as links (including shortened links). I am not able to do that with Streaming API's filter method. That ignores link matches. Is there a different streaming method I can use or should I just stick to the standard search api call? -- 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: Failed to Auth on Japanese OS
I should add that there are no Japanese characters in the message. It's all English. In fact I did try adding Japanese characters using the Engllish OS and that worked fine. Even when I used a Japanese character password, the English OS authenticated correctly. On Oct 29, 1:01 pm, Gary cga...@gmail.com wrote: Hi, I've had great success with the Twitter API until I tried it on a Japanese version of Windows. It fails to ...validate oauth signature and token. I have captured the output using wireshark and the outgoing message is identical to the English version of Windows. This does not happen on all Japanese OS machines, though. Is there a known problem in this area? -- 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] Failed to Auth on Japanese OS
Hi, I've had great success with the Twitter API until I tried it on a Japanese version of Windows. It fails to ...validate oauth signature and token. I have captured the output using wireshark and the outgoing message is identical to the English version of Windows. This does not happen on all Japanese OS machines, though. Is there a known problem in this area? -- 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: Failed to Auth on Japanese OS
Are there any other environmental issues, such as the system clock that might be different? Are you absolutely sure that all characters are UTF-8 in both environments, regardless of language? Taylor On Fri, Oct 29, 2010 at 1:04 PM, Gary cga...@gmail.com wrote: I should add that there are no Japanese characters in the message. It's all English. In fact I did try adding Japanese characters using the Engllish OS and that worked fine. Even when I used a Japanese character password, the English OS authenticated correctly. On Oct 29, 1:01 pm, Gary cga...@gmail.com wrote: Hi, I've had great success with the Twitter API until I tried it on a Japanese version of Windows. It fails to ...validate oauth signature and token. I have captured the output using wireshark and the outgoing message is identical to the English version of Windows. This does not happen on all Japanese OS machines, though. Is there a known problem in this area? -- 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] The best method for finding new retweets
Hi guys. I just tried showing my retweets using retweets_of_me. However, if I get someone to retweet one of my already retweeted statuses, nothing changes in the result - because it already figures as retweeted, and retweets_count always shows 'false'. So does this mean I have to look them all through and find their individual retweets, everytime I want to find out if I've got new ones? Or is there another method I can use? All I want to do is monitor new retweets. Thanks in advance! - Tobias -- 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] TwitterOAuth fails in getRequestToken()
I'm trying TwitterOAuth's examples and have come across the following problem. When Signing in the redirect.php page doesn't redirect to any page. Tracing it the script dies when doing: /* Get temporary credentials. */ $request_token = $connection-getRequestToken(OAUTH_CALLBACK); If I put an echo before it prints. If I put it afterwards no message gets printed. What could be going wrong and how could it get fixed? -- 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] Posting Status Update with PHP
Am I missing something along the lines of how the message should be encoded when posted to Twitter? I have tried urlencode, add slashes, strip slashes etc etc and no matter what I try when I post something like It's it will end up on twitter as It\'s Please advise. 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
Re: [twitter-dev] Posting Status Update with PHP
works fine for me - public function Tweet($tweet) { $parameters = array(status = $tweet); $status = $this-connection-post(statuses/update, $parameters); $this-Stats(statuses/update, $status, $this-connection- http_code, $parameters); } Best, -- Edward H. Hotchkiss http://www.edwardhotchkiss.com/ http://www.twitter.com/edwardhotchkiss/ -- On Oct 29, 2010, at 8:17 PM, sdenike wrote: Am I missing something along the lines of how the message should be encoded when posted to Twitter? I have tried urlencode, add slashes, strip slashes etc etc and no matter what I try when I post something like It's it will end up on twitter as It\'s Please advise. 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 inline: edward.png-- 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: Twitter Button does not run into iPhone Web Page
Hi!! Oh yea!! I could check the link and runs OK but if you Open the same link fom twitter application for iPhone an error appears: prohibido. User has been suspended. :b Any idea?? If you Sant to checkit I could send you a DM. My Account is @danielatik Thanks!! On 28 oct, 20:19, Matt Harris thematthar...@twitter.com wrote: Hi Daniel, What error are you receiving. When I load that URL on my device I don't get any errors. Best, @themattharris Developer Advocate, Twitterhttp://twitter.com/themattharris On Thu, Oct 28, 2010 at 4:51 PM, Daniel daniel.a...@gmail.com wrote: Hi! I'm developing an address search Bot and I return an URL for users with the map... Example: http://doo.ly/p2b70 If you open this link from an iPhone Safari's an error is occurred... Any idea? -- 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] TwitterOAuth fails in getRequestToken()
What does printing $connection-http_code after making the call return? Abraham -- Evobots configured this transmission while traveling at 50 billion times the speed of light. On Oct 29, 2010 3:38 PM, José Luis jlgon...@ya.com wrote: I'm trying TwitterOAuth's examples and have come across the following problem. When Signing in the redirect.php page doesn't redirect to any page. Tracing it the script dies when doing: /* Get temporary credentials. */ $request_token = $connection-getRequestToken(OAUTH_CALLBACK); If I put an echo before it prints. If I put it afterwards no message gets printed. What could be going wrong and how could it get fixed? -- 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