[twitter-dev] Re: Twitter4j / showStatus method
Hi Arnaud Thank you for your fast reply! I have some more infor for you; 1) If the tweet is protected why does it show up in the tweet list? Is there a way to filter these out? Because if they’re not public and we cannot read / retrieve it, why are we even notified it exists? 2) We started polling every 15 minutes, but these problems started occurring when we started polling every 5 minutes. We do not use a “since_id” contraint, just the date-limited “since” constraint”. That’s because, as far as we understand, the tweet IDs are not incremental so using the “since_id” could cause tweets to be missed. By using “since”, using the last retrieval date, then looping through the results until we find an older result, should give us all new tweets. We currently do not use the streaming API because we can’t miss any tweets. If our retrieval application goes down for 15 minutes for maintenance, we won’t get any notifications. By using a date-limited query (why isn’t there a date/time limited query?) through the search API we can get everything since our last retrieval run, as long as the number of tweets does not exceed 1500 (Twitter’s maximum number of results for a query).” Thanks in advance! Luc On Apr 29, 6:36 pm, Arnaud Meunier arn...@twitter.com wrote: Hey Luc, You're not getting rate limited. Let's take a closer look on these two errors: 1) First error: *Sorry, you are not authorized to see this status* That means the tweet you're trying to get is protected. Only people approved by its author (following him) can read / retrieve it. 2) Second error: *since_id too recent, poll less frequently* Looks like the since_id tweet you provided hasn't been indexed yet. Would be interesting to know the value you used and if you can reproduce this error (using the same since_id value). On an unrelated note, what kind of search requests are you doing? Have you considered the statuses/filter method of the Streaming API? That could be a much more efficient way for you :) - More info on:http://dev.twitter.com/pages/streaming_api_methods#statuses-filter - Twitter4j doc:http://twitter4j.org/en/javadoc/twitter4j/TwitterStream.html#filter(t...) Arnaud / @rno http://twitter.com/rno On Fri, Apr 29, 2011 at 6:53 AM, LucMartinPro captain.drinksa...@gmail.comwrote: Hello We are using our application CommCenter, to search twitter and get full tweet + user data based on query results using the Twitter4j query and showStatus methods. We need both as the query method does not return enough information (like retweet count and follower count), and we can't search using showStatus. Therefore, we first use query to get basic results, then for each call showStatus to get the detailed information. However, we're getting 403 errors such as 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (http:// support.twitter.com/forums/10711/entries/15364). error - Sorry, you are not authorized to see this status. request - /1/statuses/show/62741653433225216.json? include_entities=true Relevant discussions can be on the Internet at: http://www.google.co.jp/search?q=6b80c41cor http://www.google.co.jp/search?q=1b284c1e TwitterException{exceptionCode=[6b80c41c-1b284c1e], statusCode=403, retryAfter=0, rateLimitStatus=RateLimitStatusJSONImpl{remainingHits=339, hourlyLimit=350, resetTimeInSeconds=1304029, secondsUntilReset=900, resetTime=Fri Apr 29 00:19:18 CEST 2011}, version=2.2.1} and 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (http:// support.twitter.com/forums/10711/entries/15364). error - since_id too recent, poll less frequently Relevant discussions can be on the Internet at: http://www.google.co.jp/search?q=d35baff5or http://www.google.co.jp/search?q=0886c892 TwitterException{exceptionCode=[d35baff5-0886c892], statusCode=403, retryAfter=0, rateLimitStatus=null, version=2.2.1} - It seems retrieving the full tweet + user data for each tweet (showStatus method call) counts as a hit so we're hitting our limit really quickly. Do you think there's a way around this or an obvious solution we don't see? whitelisting? Thanks in advance. Luc Martin -- 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
[twitter-dev] Re: Twitter4j / showStatus method
An additional point; our searches are constrained to language which is not possible in the streaming API :) On Apr 29, 6:36 pm, Arnaud Meunier arn...@twitter.com wrote: Hey Luc, You're not getting rate limited. Let's take a closer look on these two errors: 1) First error: *Sorry, you are not authorized to see this status* That means the tweet you're trying to get is protected. Only people approved by its author (following him) can read / retrieve it. 2) Second error: *since_id too recent, poll less frequently* Looks like the since_id tweet you provided hasn't been indexed yet. Would be interesting to know the value you used and if you can reproduce this error (using the same since_id value). On an unrelated note, what kind of search requests are you doing? Have you considered the statuses/filter method of the Streaming API? That could be a much more efficient way for you :) - More info on:http://dev.twitter.com/pages/streaming_api_methods#statuses-filter - Twitter4j doc:http://twitter4j.org/en/javadoc/twitter4j/TwitterStream.html#filter(t...) Arnaud / @rno http://twitter.com/rno On Fri, Apr 29, 2011 at 6:53 AM, LucMartinPro captain.drinksa...@gmail.comwrote: Hello We are using our application CommCenter, to search twitter and get full tweet + user data based on query results using the Twitter4j query and showStatus methods. We need both as the query method does not return enough information (like retweet count and follower count), and we can't search using showStatus. Therefore, we first use query to get basic results, then for each call showStatus to get the detailed information. However, we're getting 403 errors such as 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (http:// support.twitter.com/forums/10711/entries/15364). error - Sorry, you are not authorized to see this status. request - /1/statuses/show/62741653433225216.json? include_entities=true Relevant discussions can be on the Internet at: http://www.google.co.jp/search?q=6b80c41cor http://www.google.co.jp/search?q=1b284c1e TwitterException{exceptionCode=[6b80c41c-1b284c1e], statusCode=403, retryAfter=0, rateLimitStatus=RateLimitStatusJSONImpl{remainingHits=339, hourlyLimit=350, resetTimeInSeconds=1304029, secondsUntilReset=900, resetTime=Fri Apr 29 00:19:18 CEST 2011}, version=2.2.1} and 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (http:// support.twitter.com/forums/10711/entries/15364). error - since_id too recent, poll less frequently Relevant discussions can be on the Internet at: http://www.google.co.jp/search?q=d35baff5or http://www.google.co.jp/search?q=0886c892 TwitterException{exceptionCode=[d35baff5-0886c892], statusCode=403, retryAfter=0, rateLimitStatus=null, version=2.2.1} - It seems retrieving the full tweet + user data for each tweet (showStatus method call) counts as a hit so we're hitting our limit really quickly. Do you think there's a way around this or an obvious solution we don't see? whitelisting? Thanks in advance. Luc Martin -- 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] Streaming API JSON Samples
Hello there, Does anyone know of some sort of community maintained repository of message types sent by the Streaming API? With a sample of every known type of json message found in the site/user/filter streams. - Juliano -- 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] Authentication on statuses/retweets call
Hi All, I seem to be having a small issue: http://pastebin.com/n7jzikwh According to the documentation, Requires Authentication is false: http://dev.twitter.com/doc/get/statuses/retweets/:id Anybody that can help? Thanks, Charl -- 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 target following tweets
Hi, How can i get tweets of the people i am following using search api or any other? -- 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] Network Error: 204 (Response error: Failed to validate oauth signature and token)
Hi all, I develop an application for Symbian platform in Qt. I have encountered a problem when trying to pass xAuth using QTweetLib library. I have both consumer key and secret. I just got conformation from Twitter API Policy guys that I should be able to pass xAuth using these credentials (I have permission) but I'm not. Here is the snippet of code: m_oauthTwitter = new OAuthTwitter(a_netManager, this); connect(m_oauthTwitter, SIGNAL(authorizeXAuthFinished()), SLOT(xauthFinished())); connect(m_oauthTwitter, SIGNAL(authorizeXAuthError()), SLOT(xauthError())); … m_oauthTwitter-authorizeXAuth(username, password); // username and password are OK I got following error (from application's output console – Qt Creator IDE): OAuth tokens are empty! Network Error: 204 Response error: Failed to validate oauth signature and token The error occurs on both real device (Nokia N8) and simulator (Windows XP). Date/Time seem to be set correctly. Could you advice me what should I try to solve the problem? Best Regards, Pawel -- 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] java
Anyone writing apps with Java?? -- 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: Twitter4j / showStatus method
Hey Luc, 1) You should not, indeed. But this tweet was probably posted before its Author turned protected. In that case, it can take some time to reflect on search results. 2) That unfortunately doesn't help me to reproduce your issue. What is the exact request you've been making? When? Full HTTP request/response would help. Concerning tweet IDs, they are not sequential but they are always increasing (on a 1 second interval). So you could use the since_id parameter with the last tweet ID you received. 3) If for some reason you lost connection with the Streaming API, you could still backfill with the same process you're using today :) Arnaud / @rno http://twitter.com/rno On Mon, May 2, 2011 at 3:35 AM, LucMartinPro captain.drinksa...@gmail.comwrote: Hi Arnaud Thank you for your fast reply! I have some more infor for you; 1) If the tweet is protected why does it show up in the tweet list? Is there a way to filter these out? Because if they’re not public and we cannot read / retrieve it, why are we even notified it exists? 2) We started polling every 15 minutes, but these problems started occurring when we started polling every 5 minutes. We do not use a “since_id” contraint, just the date-limited “since” constraint”. That’s because, as far as we understand, the tweet IDs are not incremental so using the “since_id” could cause tweets to be missed. By using “since”, using the last retrieval date, then looping through the results until we find an older result, should give us all new tweets. We currently do not use the streaming API because we can’t miss any tweets. If our retrieval application goes down for 15 minutes for maintenance, we won’t get any notifications. By using a date-limited query (why isn’t there a date/time limited query?) through the search API we can get everything since our last retrieval run, as long as the number of tweets does not exceed 1500 (Twitter’s maximum number of results for a query).” Thanks in advance! Luc On Apr 29, 6:36 pm, Arnaud Meunier arn...@twitter.com wrote: Hey Luc, You're not getting rate limited. Let's take a closer look on these two errors: 1) First error: *Sorry, you are not authorized to see this status* That means the tweet you're trying to get is protected. Only people approved by its author (following him) can read / retrieve it. 2) Second error: *since_id too recent, poll less frequently* Looks like the since_id tweet you provided hasn't been indexed yet. Would be interesting to know the value you used and if you can reproduce this error (using the same since_id value). On an unrelated note, what kind of search requests are you doing? Have you considered the statuses/filter method of the Streaming API? That could be a much more efficient way for you :) - More info on: http://dev.twitter.com/pages/streaming_api_methods#statuses-filter - Twitter4j doc: http://twitter4j.org/en/javadoc/twitter4j/TwitterStream.html#filter(t...) Arnaud / @rno http://twitter.com/rno On Fri, Apr 29, 2011 at 6:53 AM, LucMartinPro captain.drinksa...@gmail.comwrote: Hello We are using our application CommCenter, to search twitter and get full tweet + user data based on query results using the Twitter4j query and showStatus methods. We need both as the query method does not return enough information (like retweet count and follower count), and we can't search using showStatus. Therefore, we first use query to get basic results, then for each call showStatus to get the detailed information. However, we're getting 403 errors such as 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (http:// support.twitter.com/forums/10711/entries/15364). error - Sorry, you are not authorized to see this status. request - /1/statuses/show/62741653433225216.json? include_entities=true Relevant discussions can be on the Internet at: http://www.google.co.jp/search?q=6b80c41cor http://www.google.co.jp/search?q=1b284c1e TwitterException{exceptionCode=[6b80c41c-1b284c1e], statusCode=403, retryAfter=0, rateLimitStatus=RateLimitStatusJSONImpl{remainingHits=339, hourlyLimit=350, resetTimeInSeconds=1304029, secondsUntilReset=900, resetTime=Fri Apr 29 00:19:18 CEST 2011}, version=2.2.1} and 403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (http:// support.twitter.com/forums/10711/entries/15364). error - since_id too recent, poll less frequently Relevant discussions can be on the Internet at: http://www.google.co.jp/search?q=d35baff5or http://www.google.co.jp/search?q=0886c892
Re: [twitter-dev] Authentication on statuses/retweets call
Hey Charl, The doc is outdated, this endpoint indeed requires authentication. Thanks for reporting, will update the doc. Arnaud / @rno http://twitter.com/rno On Sun, May 1, 2011 at 12:02 PM, Charl van Niekerk char...@charlvn.comwrote: Hi All, I seem to be having a small issue: http://pastebin.com/n7jzikwh According to the documentation, Requires Authentication is false: http://dev.twitter.com/doc/get/statuses/retweets/:id Anybody that can help? Thanks, Charl -- 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] Default Access type doesn't change after saving
By the way, I was just thinking... Could you double check you're using http://dev.twitter.com/apps and not any pages at http://twitter.com/apps or http://twitter.com/oauth_clients ? Arnaud / @rno http://twitter.com/rno On Sun, May 1, 2011 at 8:48 PM, Arnaud Meunier arn...@twitter.com wrote: Hey Cassiano, Are you still experiencing this problem? I couldn't reproduce the issue. Switching access type works fine on my side (for both newly created existing apps). Arnaud / @rno http://twitter.com/rno On Sun, May 1, 2011 at 9:30 AM, BurningFuses cassi...@gmail.com wrote: Hello. I need to create an App that has Read Write access. While creating the App I chose it to have this type of access type, but after saving I noticed that the access type was read-only, so I chose to edit the App and even after selecting Read Write and submitting, the default access type was still read-only. Does anyone knows what could be the problem? Any help is greatly appreciated. burningfuses -- 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] Streaming API JSON Samples
Hi Juliano, From filter stream we received just two types of messages: 'status' (tweets itself) and 'limit' (show how many tweets was suppressed since last reconnection). Abraços da UFRGS!! On Sun, May 1, 2011 at 3:40 PM, Juliano Bortolozzo Solanho juliano.sola...@gmail.com wrote: Hello there, Does anyone know of some sort of community maintained repository of message types sent by the Streaming API? With a sample of every known type of json message found in the site/user/filter streams. - Juliano -- 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] Streaming API JSON Samples
From sample you will receive delete messages. From User Streams you will receive numerous types of events, as well as tweets and DMs. I haven't looked at the documentation recently, but last time I did Twitter was still reserving the right to add message types and recommended you have a code path for message types you had never seen. On Mon, May 2, 2011 at 12:34 PM, Augusto Santos augu...@gemeos.org wrote: Hi Juliano, From filter stream we received just two types of messages: 'status' (tweets itself) and 'limit' (show how many tweets was suppressed since last reconnection). Abraços da UFRGS!! On Sun, May 1, 2011 at 3:40 PM, Juliano Bortolozzo Solanho juliano.sola...@gmail.com wrote: Hello there, Does anyone know of some sort of community maintained repository of message types sent by the Streaming API? With a sample of every known type of json message found in the site/user/filter streams. - Juliano -- 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 -- 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
Re: [twitter-dev] Problem with $connection-get('account/verify_credentials')
You have to perform step 6-7 where you exchange your request token for an access token. https://github.com/abraham/twitteroauth/blob/master/DOCUMENTATION You can see an example in callback.php: https://github.com/abraham/twitteroauth/blob/master/callback.php Abraham - Abraham Williams | InboxQ http://inboxq.com/ | abrah.am @abraham https://twitter.com/abraham | github.com/abraham | blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Sun, May 1, 2011 at 09:02, JJRAY jjr...@gmail.com wrote: I'm a newbie with the Twitter API. I have no problem sending a user from my site to Twitter via the api and receiving authentication. Here is the code I use for that, tweaked from Nettus. ?php // Twitter API Example--Nettuts session_start(); require_once('inc/twitterOAuth.php'); // make sure you swap these for your own! $consumer_key = '* * * *'; $consumer_secret = '* * *'; // create some request tokens $toa = new TwitterOAuth($consumer_key, $consumer_secret); $tokens = $toa-getRequestToken(); // store it in our session $_SESSION['oauth_request_token'] = $tokens['oauth_token']; $_SESSION['oauth_request_token_secret'] = $tokens['oauth_token_secret']; $_SESSION['oauth_state'] = 'SENT'; // send the user on their way header('Location: '.$toa-getAuthorizeURL($tokens['oauth_token'])); ? OK, no problem. However, I cannot then use the tokens I receive back from twitter to make a connection. Here is the code I am trying to use. html head titlePHP test post to Twitter/title /head body table width=70% align=centertrtd brbr stuff starts here brbr ?php // $val1 = $_GET['ot']; // $val2 = $_GET['ov']; echo 'step one ... brbr'; require_once('inc/twitterOAuth.php'); require_once('inc/config.php'); echo 'step two ... brbr'; // $CONSUMER_KEY = '* * * *'; // $CONSUMER_SECRET = '* * * *'; // $OAUTH_TOKEN = '* * * *'; // $OAUTH_SECRET = '* * * *'; define(CONSUMER_KEY, * * * ); define(CONSUMER_SECRET, * * * *); define(OAUTH_TOKEN, * * * *); define(OAUTH_SECRET, * * * *); echo 'step three ...brbr'; $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET); $content = $connection-get('account/verify_credentials'); echo 'step four ...brbr'; $connection-get('users/show', array('screen_name' = $_REQUEST['screen_name'])); $login_status = Hi .$_SESSION['OAUTH_TOKEN']['screen_name']., are you ready to archive?bra href='./clearsessions.php'logout/a; $logged_in = TRUE; ? br ?php echo $login_status; ? brbr stuff ends here. /td/tr/table /body /html The page stops loading after echo 'step three ...brbr'; and goes blank. Anyone have an idea why these two lines do not work-- $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, OAUTH_TOKEN, OAUTH_SECRET); $content = $connection-get('account/verify_credentials'); Is the problem that I am missing a step? All I got in step 1 was a request token but not an access token? Thanks, Joe p.s. Apologies to the mod for sending my cons sec key with the post. Not a good idea to post code at in the wee hours, especially a sat night. -- 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] Twitter for pages on Facebook Not Working
Hi Jen, The Facebook Application isn't part of the Twitter APIs so we're not able to help you specifically here. Our user support team should be able to help you though. You can contact them through: http://bit.ly/gottaproblem Best, @themattharris Developer Advocate, Twitter http://twitter.com/themattharris On Sun, May 1, 2011 at 4:00 PM, Jennse23 jenns...@gmail.com wrote: Hi everyone, I have tried installing both Twitter for Pages, and Twitter App so that I can have my Twitter posts appear on my FB Page status's. I have added the app to my page as instructed by Involver, and then gone to the apps section of my page. When I click on Edit Settings or one of the other options, I just get a message saying that the link is broken. I tried removing and reinstalling but it makes no difference. Your help would be appreciated. Jen -- 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: Follow action doesn't work
http://apiwiki.twitter.com/w/page/22554652/HTTP-Response-Codes-and-Errors 401 Unauthorized: Authentication credentials were missing or incorrect. Possible that your xAuth has been rejected? On Apr 28, 1:36 am, Matt Wang ma...@theappbusiness.com wrote: Dear Sir or Madam, I am programming for Number 10 iphone application.Currently,this application has xAuth access and can post information via twitter. However, when I try to call [twitterEngine enableUpdatesFor:@follower] for adding a follower. it will return a 401 error. here is my code: - (void)accessTokenReceived:(OAToken *)token forRequest:(NSString *)connectionIdentifier { [self.twitterEngine setAccessToken:token]; } - (void)requestSucceeded:(NSString *)requestIdentifier{ switch (stage) { case postLogin: stage = loginCorrect; break; case loginCorrect: if (twitterAction == follow) { NSString *follower = [NSString stringWithFormat:@Number10gov]; NSLog(@Try to Follow %@,follower); NSLog(@enableUpdatesFor: connectionIdentifier = %@, [twitterEngine enableUpdatesFor:follower]); } else if (twitterAction == retweet || twitterAction == tweet) { ... // post and retweet work well. but follow action didn't work. could you help me to point out what is the problem? if you can give me a example code to show how to do follow action in xAuth, that would be great. Many Thanks for your help. I am looking forward to your reply. Many 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] Re: New oAuth Authenticate Page
I'd like to confirm the all the developers here on this mailing list. Does the new OAuth redesign page prevent you from using OAuth in a new popup window? This OAuth hack is officially not going to work going forward? Hi Tom van der Woerdt, Your recommend using the workaround launching OAuth in a safari browser outside the app? Your suggested approach will require user to quit and exit app and authenticate with OAuth using device mobile browser. Then ask user to go back to the app again. Is this the only working solution? On Apr 30, 9:09 am, Tom van der Woerdt i...@tvdw.eu wrote: I've heard this before. It sounds like all UIWebView, WebBrowser and probably Android's WebView are blocked. This is definitely a *good* thing for security reasons. The workaround I recommend: launch the actual browser, using a yourapp:// link (something like myapplication://tokenDone) as the return URL. This is a LOT safer for the users. Tom On 4/30/11 8:55 AM, Bob12345 wrote: I'm having this problem too. My login browser inside the phone app is now rendered useless, it doesn't even scroll. On Apr 28, 1:41 pm, Shannon Whitleyshannon.whit...@gmail.com wrote: I was surprised to see a newly formatted oAuth Authenticate Page. The new page doesn't account for the scores of oAuth implementations that popup a new window. There is an ad-hoc standard for the window height and width that makes for a decent user experience. The new format will cause issues for the user since it results in page scrolling. Can we discuss this new page format and determine if it can be changed or if we can have alternate formats? -- 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] question regarding twitter search api query parameters
Hi people, I want to use the twitter search api to search for some famous person. For instance I want to search for a particular Mr Patrick Lee C K. I would construct my search term to be something like: http://search.twitter.com/search?q=%22lee+c+k%22+OR+%22patrick+lee%22 However, knowing that tweets are often informal, I know that sometimes people can address him by his initials 'lck'. To increase the precision of my search, I figure it would be better if my query can associate with his company, for instance my query could also be lck microsoft. Now, i want to string these 3 search terms patrick lee/lee c k/lck microsoft together in one query. I probably will use OR. Then again, my last search term should not be a fixed phrase i.e word lck and microsoft can be some distance from each other. Can anyone tell me how should i link these search terms together inside one query? -- 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: 401 unauthorized on blackberry after appending ;interface=wifi
The problem could be the length of status or encoding of status is invalid or status in not be included in the sign base string. I have a workable integration now. Check the code here https://github.com/Yincan/blackberry_twitter_oauth On Apr 14, 5:58 am, Mickey ng.mic...@gmail.com wrote: Still receiving401during update status. There are 2 parts of my code that uses the HttpConnection where I was adding connection transport string. 1. To get the OAuth access token. The end point is https:// api.twitter.com/oauth/request_token. I removed the code to add transport string here. So my signature should not contain the transport string. 2. Doing an update, the URL thus becomes http://api.twitter.com/1/ statuses/update.json;interface=wifi The result is still401. Any idea? Thanks On Apr 13, 4:04 pm, Naveen knig...@gmail.com wrote: There are two possible issue you are having.. Most likely you simply need to append the network transport AFTER all signatures have been generated. If you append it before, then those additional characters are being included in the signature but the BlackBerrydoes not actually send that part of the connection string to anyone, it is only used internally. Less likely but possible, the WIFI you are using is routing you redirecting to you a landing page to login to the WIFI access. --Naveen Ayyagari SocialScope On Apr 13, 12:41 pm, Mickey ng.mic...@gmail.com wrote: Hi Onblackberrywith httpConnection, I need to add network transport string such as ;interface=wifi to the url. The problem is, once I added the network transport string, I get401 unauthorized for status update and GET statuses/user_timeline. If I remove the transport string, then I can POST updates and GET statuses everything runs fine. So it seems the request I'm sending to twitter api is correct. Is there anything special with the transport string that might cause problems? -- 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