[twitter-dev] Not able to connect to twitter API from Google Appengine
My app http://www.justunfollow.com is just not able to connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
[twitter-dev] Re: Retrieving new tweets for 40-60 thousand users
Hi, Thanks for the info. We are going to limit the number of friends you can follow to 5 friends per user. So we wil need max 60.000 * 5 = 300.000 streams. We are gonna look into the access levels. Thanks again everybody for the info. Patrick On Jul 21, 12:06 pm, Pascal Jürgens lists.pascal.juerg...@googlemail.com wrote: Patrick, given this explanation, you will need a lot of streams. 60k users with an average of 100 friends (low estimate) Let's guess that every user shares 50% of the friends with others This gives us: 60.000 * 100 *.5 = 3 million In order to track 3 million users with the follow stream, you need: the biggest role for this (birddog) allows following 400.000 users (http://dev.twitter.com/pages/streaming_api_methods) SO: You will need at least eight highest-level tracking privileges. Pascal On 21.Jul2010, at 11:51, PBro wrote: The situation is: We have 60k users all with their own twitter account, so not a single account with 60k followers. Those 60k users all have people they follow and we want to give the user a message when someone they are following posted a tweet. Hope this clarify things a bit. I will have a look into the streaming api. Patrick
[twitter-dev] Home_timeline after tweet destroy
Hi there... I'm experience something strange, I think... If I do a tweet destroy through my application and after that I get the home_timeline with the property count=20, I'm not getting the 20 tweets that I should get. I'm getting just 19. If I do another tweet destroy and execute home_timeline again, I will get only 18... and so on... Am I doing something wrong? Is there a way to force to get the 20 tweets? Thanks, Luis
Re: [twitter-dev] Home_timeline after tweet destroy
Hi Luis, I might be wrong there, but I think this is the way it works because of twitter's caching and distribution architecture. You can never assume to get the full amount of tweets or users - some might be filtered, deleted or whatnot. If you need more, just get the next page/set using cursors. Pascal On 23.Jul2010, at 10:18, luisg wrote: Hi there... I'm experience something strange, I think... If I do a tweet destroy through my application and after that I get the home_timeline with the property count=20, I'm not getting the 20 tweets that I should get. I'm getting just 19. If I do another tweet destroy and execute home_timeline again, I will get only 18... and so on... Am I doing something wrong? Is there a way to force to get the 20 tweets? Thanks, Luis
[twitter-dev] Re: Home_timeline after tweet destroy
Hi Pascal, Thanks for your reply. What you mean with cursors? I have a way to solve this problem: 1- get the home_timeline 2- count the number of tweets got from (1) and if length 20 I do another home_timeline call with page=2 I think this might work. The problem is, I need to do 2 call to Twitter and I don't think that's a good way... That's the type of solution your mean? You have better solution? Thanks a lot, Luis On Jul 23, 11:13 am, Pascal Jürgens lists.pascal.juerg...@googlemail.com wrote: Hi Luis, I might be wrong there, but I think this is the way it works because of twitter's caching and distribution architecture. You can never assume to get the full amount of tweets or users - some might be filtered, deleted or whatnot. If you need more, just get the next page/set using cursors. Pascal On 23.Jul2010, at 10:18, luisg wrote: Hi there... I'm experience something strange, I think... If I do a tweet destroy through my application and after that I get the home_timeline with the property count=20, I'm not getting the 20 tweets that I should get. I'm getting just 19. If I do another tweet destroy and execute home_timeline again, I will get only 18... and so on... Am I doing something wrong? Is there a way to force to get the 20 tweets? Thanks, Luis
Re: [twitter-dev] Re: Home_timeline after tweet destroy
Hi Luis, yes, that's what I mean. You can either get the second page, or just request some more, as in: http://api.twitter.com/1/statuses/home_timeline.xml?count=25 Pascal On 23.Jul2010, at 11:40, luisg wrote: Hi Pascal, Thanks for your reply. What you mean with cursors? I have a way to solve this problem: 1- get the home_timeline 2- count the number of tweets got from (1) and if length 20 I do another home_timeline call with page=2 I think this might work. The problem is, I need to do 2 call to Twitter and I don't think that's a good way... That's the type of solution your mean? You have better solution? Thanks a lot, Luis
[twitter-dev] Re: Home_timeline after tweet destroy
This means that the count property is not something that you can trust, right? Luis On Jul 23, 11:40 am, luisg luisfmgoncal...@gmail.com wrote: Hi Pascal, Thanks for your reply. What you mean with cursors? I have a way to solve this problem: 1- get the home_timeline 2- count the number of tweets got from (1) and if length 20 I do another home_timeline call with page=2 I think this might work. The problem is, I need to do 2 call to Twitter and I don't think that's a good way... That's the type of solution your mean? You have better solution? Thanks a lot, Luis On Jul 23, 11:13 am, Pascal Jürgens lists.pascal.juerg...@googlemail.com wrote: Hi Luis, I might be wrong there, but I think this is the way it works because of twitter's caching and distribution architecture. You can never assume to get the full amount of tweets or users - some might be filtered, deleted or whatnot. If you need more, just get the next page/set using cursors. Pascal On 23.Jul2010, at 10:18, luisg wrote: Hi there... I'm experience something strange, I think... If I do a tweet destroy through my application and after that I get the home_timeline with the property count=20, I'm not getting the 20 tweets that I should get. I'm getting just 19. If I do another tweet destroy and execute home_timeline again, I will get only 18... and so on... Am I doing something wrong? Is there a way to force to get the 20 tweets? Thanks, Luis
Re: [twitter-dev] Re: Home_timeline after tweet destroy
Yes. You can't trust anything on twitter. Hope for good, valid results, prepare for anything else. Pascal On 23.Jul2010, at 15:03, luisg wrote: This means that the count property is not something that you can trust, right? Luis
Re: [twitter-dev] Home_timeline after tweet destroy
The count parameter means 'no more than', not 'exactly'. We do read-repair on home timeline status_id-based vectors as we gather the statuses. It's not practical to fan-out deletes to the materialized home timeline vector. In nearly all display cases, displaying 19 or 20 tweets is equivalent. The client is either in a loop, paging through for a since_id, or the user is likely to click more anyway. -John Kalucki http://twitter.com/jkalucki Infrastructure, Twitter Inc. On Fri, Jul 23, 2010 at 1:18 AM, luisg luisfmgoncal...@gmail.com wrote: Hi there... I'm experience something strange, I think... If I do a tweet destroy through my application and after that I get the home_timeline with the property count=20, I'm not getting the 20 tweets that I should get. I'm getting just 19. If I do another tweet destroy and execute home_timeline again, I will get only 18... and so on... Am I doing something wrong? Is there a way to force to get the 20 tweets? Thanks, Luis
[twitter-dev] Open Source CMS Module and Consumer Secret
I'm sorry if this has been asked before: I've written a twitter module for ClanSphere Clan CMS and I'm now converting it to use OAuth. I finally got it working, but I have question about the Consumer Secret. I registered the application under my twitter account and obtained a Consumer Key and Consumer Secret. The module is (will be) publicly available for download and webmasters just have to install the module in their own ClanSphere Clan CMS to be able to use it and make it possible for all users on their website to post tweets via that module. But, to prevent the hassle of all these webmasters, so that they not need to register an application on their own and install their own Consumer Key and Consumer Secret. How do I make it possible that every can make use of my registered application? As I understand from the name, the Consumer Secret is secret, so I should not distribute it to the community... Every user should (as access tokens currently don't expire) only need to allow my application only once, in order to be able to use the twitter module: An application would like to connect to your account The application ClanSphere Module by Mindcrime, Geh aB Clan would like the ability to access and update your data on Twitter. Not using Twitter? Sign up and Join the Conversation! ALLOW | DENY Sorry, but a lot of the webmasters, using CMS systems, don't know anything about code/PHP and are just capable of uploading some files... I would not like to think that I have to explain to them how to register the application in Twitter and change the code in the correct place... How can anyone make a public module that way? Thanks for the help...
[twitter-dev] Re: Twitter oAuth for PHP, some advice needed
Hi Paul, Yep, was referring to the snippet. I've just copy/pasted yours, changed keys and callback URL and your code works for me. I'm afraid the only thing I can suggest is to double-check your consumer key/secret, Cheers, - Paul
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE: http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comis just not able to connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
Re: [twitter-dev] Re: Retrieving new tweets for 40-60 thousand users
You cannot open 300,000 streams. First, you don't have auth tokens for all of your user's followings. Second, that would be against the access policy. Instead, you can perform this following with elevated access via the 'shadow' role on stream.twitter.com. This will allow you to follow 80,000 public accounts on a single stream. Read the section of the doc 'Updating Filter Predicates' http://dev.twitter.com/pages/streaming_api_concepts#updating-filter-predicates . If you also wish to follow protected accounts, you'll have to wait for a future product offering. -John Kalucki http://twitter.com/jkalucki On Fri, Jul 23, 2010 at 12:24 AM, PBro brouwe...@gmail.com wrote: Hi, Thanks for the info. We are going to limit the number of friends you can follow to 5 friends per user. So we wil need max 60.000 * 5 = 300.000 streams. We are gonna look into the access levels. Thanks again everybody for the info. Patrick On Jul 21, 12:06 pm, Pascal Jürgens lists.pascal.juerg...@googlemail.com wrote: Patrick, given this explanation, you will need a lot of streams. 60k users with an average of 100 friends (low estimate) Let's guess that every user shares 50% of the friends with others This gives us: 60.000 * 100 *.5 = 3 million In order to track 3 million users with the follow stream, you need: the biggest role for this (birddog) allows following 400.000 users (http://dev.twitter.com/pages/streaming_api_methods) SO: You will need at least eight highest-level tracking privileges. Pascal On 21.Jul2010, at 11:51, PBro wrote: The situation is: We have 60k users all with their own twitter account, so not a single account with 60k followers. Those 60k users all have people they follow and we want to give the user a message when someone they are following posted a tweet. Hope this clarify things a bit. I will have a look into the streaming api. Patrick
[twitter-dev] Re: New SSL certificate issue with WTK 2.5.2
How will we be warned when api.twitter.com fixed SSL certificate will be effective ? On 22 juil, 21:17, John Adams j...@twitter.com wrote: Unfortunately, the current situation is that api.twitter.com is on a wildcard certificate. We have plans to move it a fixed SSL certificate in the near future, but no definite date yet. -j On Thu, Jul 22, 2010 at 11:50 AM, bjcoredev jme...@gmail.com wrote: My app doesn't use the mobile site. My twitter client is written in J2ME (Java Micro Edition) and is not using the mobile site but the Twitter API. I m coding my client with WTK 2.5.2 Sun Wireless Toolkit (like many other Java mobile developers) and since the 21/07/2001 1AM GMT my app running under WTK can't access the url https://api.twitter.com/oauth/access_token because the WTK CAN'T HANDLE WILDCARD SSL certificates. returning the error:Subject alternative name did not match site name. I'have read that real (real devices opposite to the emulator) mobile JAVA platforms (Sony ericsson,WM 5.0,..) don't accept wildcard SSL certificates so twitter clients using twitter API written in J2ME running under these platform can't access the url https://api.twitter.com/oauth/access_token anymore so can't process xAuth authentication wich will be mandatory on 15 august So . On 22 juil, 20:20, John Adams j...@twitter.com wrote: The mobile site has used a wildcard certificate for the last two years; Did you recently begin experiencing this issue or was your code working in the past? -j On Thu, Jul 22, 2010 at 6:43 AM, bjcoredev jme...@gmail.com wrote: It seems that SUN WTK 2.5.2 doesn't accept wildcard certificates I hope that mobile platforms accept wildcard SSL certificates. If this not the case, it will make twitter xAuth/oAuth unusable Regards On 22 juil, 14:57, bjcoredev jme...@gmail.com wrote: Hi My mobile app logged to twitter using xAuth and was working like a charm until the last SSL certicate changed (seehttp:// groups.google.com/group/twitter-development-talk/browse_thread...) My app logs correctly with the new certicate on real device (N97) but failed with the 2.5.2 Sun Wireless Toolkit wich i use to develop my app. when i request token with the url (with all the parameters needed): https://api.twitter.com/oauth/access_token I get the following error message relative to the SSL certificate: Subject alternative name did not match site name It seems that the SSSL certificate doesn't match the host name (api.twitter.com) I can't now no longer code end test my app on the computer Help !!! I repeat: All was working fine before the SSL certificate change on the 21/07/2001 1AM GMT. Regards- Masquer le texte des messages précédents - - Afficher le texte des messages précédents -- Masquer le texte des messages précédents - - Afficher le texte des messages précédents -
[twitter-dev] API problem when passing since_id
Hi, I've been encountering this issue: If I access http://api.twitter.com/1/statuses/user_timeline.json - this is fine. But when I pass since_id like so: http://api.twitter.com/1/statuses/user_timeline.json?since_id=19233157140 I'm getting the Something is technically wrong. error page. I'm using OAuth for authentication using Mike Knapp's oauth.py from http://github.com/mikeknapp/AppEngine-OAuth-Library Any idea what I'm doing wrong? Thanks!
[twitter-dev] Re: is it possible to search replies from a certain status_id?
in fact tks tsmango Arian On 21 jul, 14:06, tsmango tsma...@gmail.com wrote: Unfortunately, there isn't a single API method that allows this. From the FAQ:http://dev.twitter.com/pages/api_faq#replies Q: How do I get all replies to a particular status? A: For now, there's not a great way to do this. We've heard the requests, though, and we'll be providing a solution for it before too long. On Jul 21, 8:15 am, arian arianpasqu...@gmail.com wrote: hi guys, I need monitor replies from certain status. I would like to use search api, but according to search api doc it's impossible. I only ask you to know for sure. for example, I would like to be able ask for search api for replies from a status providing in_reply_to_status_id value. the only way I found is to ask for user timeline and check manually the in_reply_to_status_id attribute. is it the better way? tks in advance Arian
[twitter-dev] UnAuthorized exception
Dear Twitter, I have created twitter application for tv applications. I have used xauth authentication. First time i have created my application as read only. Then I haven't able to post a tweet, an exception occured, Exception like UnAuthorized?. Then i changed my application setting access level to read and write. Then try to post tweet using xauth authentication, but unfunatley it didnt work. Whatever changes done in application, can i mail to twitter for enabling my application to xauth? is it need?. If anybody could u please help me. Regards, George
Re: [twitter-dev] Re: Not able to connect to twitter API from Google Appengine
Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE: http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comis just not able to connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
[twitter-dev] Re: Home_timeline after tweet destroy
Hi, Thanks for your replies. @John: I check the documentation (http://dev.twitter.com/doc/get/ statuses/user_timeline), and there says: Count 'Specifies the number of records to retrieve. Must be less than or equal to 200. ' Tell me, f you read this, you associate the Cout option to a 'no more than' or to a 'exactly'? Reading the description I associate it to a 'exactly'... Just that. I have to find another solution for what I'm trying to do. Thanks a lot guys, Luis On Jul 23, 3:48 pm, John Kalucki j...@twitter.com wrote: The count parameter means 'no more than', not 'exactly'. We do read-repair on home timeline status_id-based vectors as we gather the statuses. It's not practical to fan-out deletes to the materialized home timeline vector. In nearly all display cases, displaying 19 or 20 tweets is equivalent. The client is either in a loop, paging through for a since_id, or the user is likely to click more anyway. -John Kaluckihttp://twitter.com/jkalucki Infrastructure, Twitter Inc. On Fri, Jul 23, 2010 at 1:18 AM, luisg luisfmgoncal...@gmail.com wrote: Hi there... I'm experience something strange, I think... If I do a tweet destroy through my application and after that I get the home_timeline with the property count=20, I'm not getting the 20 tweets that I should get. I'm getting just 19. If I do another tweet destroy and execute home_timeline again, I will get only 18... and so on... Am I doing something wrong? Is there a way to force to get the 20 tweets? Thanks, Luis
Re: [twitter-dev] Re: Home_timeline after tweet destroy
If you want 20, request say 24 and discard the excess? Not an expert on the API at all, -John On Fri, Jul 23, 2010 at 7:11 AM, luisg luisfmgoncal...@gmail.com wrote: Hi, Thanks for your replies. @John: I check the documentation (http://dev.twitter.com/doc/get/ statuses/user_timeline), and there says: Count 'Specifies the number of records to retrieve. Must be less than or equal to 200. ' Tell me, f you read this, you associate the Cout option to a 'no more than' or to a 'exactly'? Reading the description I associate it to a 'exactly'... Just that. I have to find another solution for what I'm trying to do. Thanks a lot guys, Luis On Jul 23, 3:48 pm, John Kalucki j...@twitter.com wrote: The count parameter means 'no more than', not 'exactly'. We do read-repair on home timeline status_id-based vectors as we gather the statuses. It's not practical to fan-out deletes to the materialized home timeline vector. In nearly all display cases, displaying 19 or 20 tweets is equivalent. The client is either in a loop, paging through for a since_id, or the user is likely to click more anyway. -John Kaluckihttp://twitter.com/jkalucki Infrastructure, Twitter Inc. On Fri, Jul 23, 2010 at 1:18 AM, luisg luisfmgoncal...@gmail.com wrote: Hi there... I'm experience something strange, I think... If I do a tweet destroy through my application and after that I get the home_timeline with the property count=20, I'm not getting the 20 tweets that I should get. I'm getting just 19. If I do another tweet destroy and execute home_timeline again, I will get only 18... and so on... Am I doing something wrong? Is there a way to force to get the 20 tweets? Thanks, Luis
Re: [twitter-dev] UnAuthorized exception
Hi George, Happy to help but just need to clarify a few things: xAuth isn't something you use when you're executing a Twitter API resource, like posting a tweet or fetching a timeline. You do use OAuth to sign the request. xAuth is just the variation of OAuth that you perform to obtain an OAuth access token. After creating a read-only application, and negotiating an access token (by xAuth or standard OAuth), that access token is also marked as read-only. After changing your app to read/write, you then need to renegotiate the access token to imbue it with read/write permissions. If you're still getting an unauthorized when trying a write (or read!) operation, than it's likely that you're not correctly generating your signature or signature base string when trying to access that resource. Taylor On Thu, Jul 22, 2010 at 10:15 PM, Georgooty varghese georgo...@gmail.com wrote: Dear Twitter, I have created twitter application for tv applications. I have used xauth authentication. First time i have created my application as read only. Then I haven't able to post a tweet, an exception occured, Exception like UnAuthorized?. Then i changed my application setting access level to read and write. Then try to post tweet using xauth authentication, but unfunatley it didnt work. Whatever changes done in application, can i mail to twitter for enabling my application to xauth? is it need?. If anybody could u please help me. Regards, George
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
@Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjust not able to connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
Re: [twitter-dev] Re: Twitter oAuth for PHP, some advice needed
ok. thanks for testing! On Jul 23, 2010, at 4:58 AM, Paul wrote: Hi Paul, Yep, was referring to the snippet. I've just copy/pasted yours, changed keys and callback URL and your code works for me. I'm afraid the only thing I can suggest is to double-check your consumer key/secret, Cheers, - Paul
[twitter-dev] Undocumented fields?
I found that statuses/friends and statuses/followers have an undocumented field called next_cursor_str and prev_cursor_str, which are simply the string values of those fields in addition to the digits passed back in next_cursor and prev_cursor. Is this planned to stay this way? (can I rely on them always being in the api?) I was working around a known json_decode bug on 32-bit machines on one of our test portables, where it could not decode the next_cursor, no big deal, but when I found the 'str' versions of the cursors I turned off the workaround. Once $id's get large enough, 32-bit machines will need json_decode to work right tooso the workaround might be needed then. Mark
Re: [twitter-dev] Re: Not able to connect to twitter API from Google Appengine
Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to both http://api.twitter.com/oauth/request_token and https://api.twitter.com/oauth/request_token and let us know if you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjust not able to connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
[twitter-dev] Hosted proxy server service?
I've given up trying to get anything done with Twitter Search API from Google App Engine because of the rate limiting. Are there any services that provide just proxy hosting, where I can pay a few bucks a month to get a dedicated IP and proxy server running? I'd like to keep it simple and avoid the full VPS option, but it's difficult to wade through the noise when googling to see if such a service exists. Looks like most VPS providers charge $2/month for a dedicated IP. Somebody with an existing VPS could even offer such a service.
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
@Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp://api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/oauth/request_tokenand let us know if you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjustnot able to connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
[twitter-dev] Streaming volume dropped x5 in the past few days
Not sure if others experienced that same, the tweet volume from the streaming API had been 2-3+million tweets a day a week ago and in the past week it dropped to around 600k/day, any reason for that? Thanks, Tom
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
@Taylor Just checked. I can make calls to google.com through the appengine. So I guess its only twitter calls that are failing which means the issue is on twitter's side. I guess the appengine IPs are being blacklisted? or blocked by twitter? -Nischal On Jul 23, 9:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp://api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...let us know if you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjustnotable to connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
Re: [twitter-dev] Re: Twitter oAuth for PHP, some advice needed
Ok... looks like there are others who received the same exception error when trying to generate an auth url. So, I switched over to Abraham's routine, which worked, and the oauth_token and verifier came back, but sadly, a new exception was thrown in the twitter-async code I was still using to retrieve the key/ secret. Right now I'm trying to use Abraham's twitteroauth to output the same info. Is that possible? I looked at the class source but they are different enough to make it opaque to me. There is no equivalent setToken in twitteroauth. Does anyone know how to get twitteroauth to spill the same beans? I'm so close, and yet so far! for the intrepid, here are the async calls I'm trying to find equivalents for in twitteroauth $twitter-setToken( $_GET[oauth_token] ); $token = $twitter-getAccessToken( array( oauth_verifier = $_GET [oauth_verifier] ) ); var_dump( $token-oauth_token, $token-oauth_token_secret ); thank you Paul G On Jul 22, 2010, at 5:53 PM, Paul wrote: Hi Paul, Is there a way to retrieve the consumer keys for the other Twitter account I own without registering an app? Yep, if you use that script given previously, just login to the other Twitter account instead (with the same consumer key/secret. This will give you a different pair of tokens for the second account. Initialise as in tweeting example with the new token. Basically what you're doing is authorising the same app for both accounts. - Paul
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp://api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...let us know if you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjustnotable to connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
[twitter-dev] Search multiple words and filter it for multiple followed users
Hi, I am trying to search for multiple words and filter it down for multiple users that I have.I have the list of users and I want to search Twitter for the search terms and return results only from the specified users. I tried this search URL to the API: http://search.twitter.com/search.json?result_type=recentq=Money+juggle+OR+Taxes+from:leebrimelow+from:bvijaykrlang=enrpp=20 But this doesn't work.I have tried to use the twitter Advanced search screen but it hasn't helped me that much. A simple call like http://search.twitter.com/search?q=Finance+from:amy+from:tixd works but returns just results from a user like tixd or amy without filtering for the multiple words Finance or Money handling etc. Any help is appreciated. TIA, Vijay
Re: [twitter-dev] Re: New SSL certificate issue with WTK 2.5.2
Hi, I've seen similar reports for other service providers about this issue as well. My concern is wildcard certificates are perfectly valid and are described in RFC2818 [1]. I'm not sure why Sun WTK doesn't support them or of any workarounds but I would suggest asking on their support channels. If there are any changes on our systems we will be communicate them through this developer mailing list. Best, Matt 1. http://www.ietf.org/rfc/rfc2818.txt On Fri, Jul 23, 2010 at 4:56 AM, bjcoredev jme...@gmail.com wrote: How will we be warned when api.twitter.com fixed SSL certificate will be effective ? On 22 juil, 21:17, John Adams j...@twitter.com wrote: Unfortunately, the current situation is that api.twitter.com is on a wildcard certificate. We have plans to move it a fixed SSL certificate in the near future, but no definite date yet. -j On Thu, Jul 22, 2010 at 11:50 AM, bjcoredev jme...@gmail.com wrote: My app doesn't use the mobile site. My twitter client is written in J2ME (Java Micro Edition) and is not using the mobile site but the Twitter API. I m coding my client with WTK 2.5.2 Sun Wireless Toolkit (like many other Java mobile developers) and since the 21/07/2001 1AM GMT my app running under WTK can't access the url https://api.twitter.com/oauth/access_token because the WTK CAN'T HANDLE WILDCARD SSL certificates. returning the error:Subject alternative name did not match site name. I'have read that real (real devices opposite to the emulator) mobile JAVA platforms (Sony ericsson,WM 5.0,..) don't accept wildcard SSL certificates so twitter clients using twitter API written in J2ME running under these platform can't access the url https://api.twitter.com/oauth/access_token anymore so can't process xAuth authentication wich will be mandatory on 15 august So . On 22 juil, 20:20, John Adams j...@twitter.com wrote: The mobile site has used a wildcard certificate for the last two years; Did you recently begin experiencing this issue or was your code working in the past? -j On Thu, Jul 22, 2010 at 6:43 AM, bjcoredev jme...@gmail.com wrote: It seems that SUN WTK 2.5.2 doesn't accept wildcard certificates I hope that mobile platforms accept wildcard SSL certificates. If this not the case, it will make twitter xAuth/oAuth unusable Regards On 22 juil, 14:57, bjcoredev jme...@gmail.com wrote: Hi My mobile app logged to twitter using xAuth and was working like a charm until the last SSL certicate changed (seehttp:// groups.google.com/group/twitter-development-talk/browse_thread...) My app logs correctly with the new certicate on real device (N97) but failed with the 2.5.2 Sun Wireless Toolkit wich i use to develop my app. when i request token with the url (with all the parameters needed): https://api.twitter.com/oauth/access_token I get the following error message relative to the SSL certificate: Subject alternative name did not match site name It seems that the SSSL certificate doesn't match the host name (api.twitter.com) I can't now no longer code end test my app on the computer Help !!! I repeat: All was working fine before the SSL certificate change on the 21/07/2001 1AM GMT. Regards- Masquer le texte des messages précédents - - Afficher le texte des messages précédents -- Masquer le texte des messages précédents - - Afficher le texte des messages précédents - -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] Status of contributions API?
Is there a target for the contributions API opening up? Alternately is there a document somewhere laying out who you need to be / how much it costs to utilize the contributions API? Asking mostly out of curiosity as I work through a new app for a client. -- -ed costello
Re: [twitter-dev] API problem when passing since_id
A Something is technically wrong error sometimes happens but normally it goes away when you request again a little bit later. Is this still happening when you make that request? If it is could you let us know the screen name which this is happening to. Best, Matt On Thu, Jul 22, 2010 at 10:59 PM, Roy royt...@gmail.com wrote: Hi, I've been encountering this issue: If I access http://api.twitter.com/1/statuses/user_timeline.json - this is fine. But when I pass since_id like so: http://api.twitter.com/1/statuses/user_timeline.json?since_id=19233157140 I'm getting the Something is technically wrong. error page. I'm using OAuth for authentication using Mike Knapp's oauth.py from http://github.com/mikeknapp/AppEngine-OAuth-Library Any idea what I'm doing wrong? Thanks! -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Re: Home_timeline after tweet destroy
Thanks for highlighting that this isn't clear. We'll get onto clarifying how count works and update the docs as soon as possible. In the meantime this is how count works: The count parameter tells the API request the maximum number of Tweets to return. The number of Tweets may not be exactly equal to count as we filter out deleted Tweets, Tweets by deleted users and Tweets by suspended users as the last action. If, by default, a request doesn't return retweets, those too will be filtered out. To include retweets you must provided include_rts=1 as a query parameter. Hope that helps, Matt On Fri, Jul 23, 2010 at 7:18 AM, John Kalucki j...@twitter.com wrote: If you want 20, request say 24 and discard the excess? Not an expert on the API at all, -John On Fri, Jul 23, 2010 at 7:11 AM, luisg luisfmgoncal...@gmail.com wrote: Hi, Thanks for your replies. @John: I check the documentation (http://dev.twitter.com/doc/get/ statuses/user_timelinehttp://dev.twitter.com/doc/get/statuses/user_timeline), and there says: Count 'Specifies the number of records to retrieve. Must be less than or equal to 200. ' Tell me, f you read this, you associate the Cout option to a 'no more than' or to a 'exactly'? Reading the description I associate it to a 'exactly'... Just that. I have to find another solution for what I'm trying to do. Thanks a lot guys, Luis On Jul 23, 3:48 pm, John Kalucki j...@twitter.com wrote: The count parameter means 'no more than', not 'exactly'. We do read-repair on home timeline status_id-based vectors as we gather the statuses. It's not practical to fan-out deletes to the materialized home timeline vector. In nearly all display cases, displaying 19 or 20 tweets is equivalent. The client is either in a loop, paging through for a since_id, or the user is likely to click more anyway. -John Kaluckihttp://twitter.com/jkalucki Infrastructure, Twitter Inc. On Fri, Jul 23, 2010 at 1:18 AM, luisg luisfmgoncal...@gmail.com wrote: Hi there... I'm experience something strange, I think... If I do a tweet destroy through my application and after that I get the home_timeline with the property count=20, I'm not getting the 20 tweets that I should get. I'm getting just 19. If I do another tweet destroy and execute home_timeline again, I will get only 18... and so on... Am I doing something wrong? Is there a way to force to get the 20 tweets? Thanks, Luis -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Undocumented fields?
Hi Mark, These fields were added in January 2010 to address the problem when the cursors were too long for javascript to handle. The original announcement is on our API Announce list [1] and there are no plans to remove this functionality. Hope that helps, Matt 1. http://groups.google.com/group/twitter-api-announce/browse_thread/thread/67bacbc45a922b38?tvc=2 On Fri, Jul 23, 2010 at 8:45 AM, Mark Krieger markskrie...@gmail.comwrote: I found that statuses/friends and statuses/followers have an undocumented field called next_cursor_str and prev_cursor_str, which are simply the string values of those fields in addition to the digits passed back in next_cursor and prev_cursor. Is this planned to stay this way? (can I rely on them always being in the api?) I was working around a known json_decode bug on 32-bit machines on one of our test portables, where it could not decode the next_cursor, no big deal, but when I found the 'str' versions of the cursors I turned off the workaround. Once $id's get large enough, 32-bit machines will need json_decode to work right tooso the workaround might be needed then. Mark -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Streaming volume dropped x5 in the past few days
Hi Tom, The sampling rates for the Spritzer and Gardenhose streams was changed just over a week ago. You can read more about this in the announcement we made [1] and in a related discussion [2]. Hope that helps, Matt 1. http://groups.google.com/group/twitter-development-talk/browse_thread/thread/47365fe3cfa8a02/cc9b21e1ef9fed21?lnk=gstq=gardenhose#cc9b21e1ef9fed21 2. http://groups.google.com/group/twitter-development-talk/browse_thread/thread/4d0c55a465483b22/319cdc61b7b6a597?lnk=gstq=gardenhose#319cdc61b7b6a597 On Fri, Jul 23, 2010 at 9:39 AM, tomz tom.z.z...@gmail.com wrote: Not sure if others experienced that same, the tweet volume from the streaming API had been 2-3+million tweets a day a week ago and in the past week it dropped to around 600k/day, any reason for that? Thanks, Tom -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] Is there any xauth javascript library?
Hi, I want to know if there is a javascript library for xauth... at least an javascript example code to authenticate a twitter user and send signed requests to the API. Thanks.
Re: [twitter-dev] Hosted proxy server service?
Setting up an open (or private) proxy in an attempt to get around our rate limits will possibly result in your application or IP being banned. The rate limits are there so that everyone can share the service. -j On Fri, Jul 23, 2010 at 9:07 AM, Ryan W rwilli...@gmail.com wrote: I've given up trying to get anything done with Twitter Search API from Google App Engine because of the rate limiting. Are there any services that provide just proxy hosting, where I can pay a few bucks a month to get a dedicated IP and proxy server running? I'd like to keep it simple and avoid the full VPS option, but it's difficult to wade through the noise when googling to see if such a service exists. Looks like most VPS providers charge $2/month for a dedicated IP. Somebody with an existing VPS could even offer such a service.
[twitter-dev] Re: Hosted proxy server service?
Respectively, I'm not trying to get around anything. I'm simply trying to make the Twitter Search API usable from App Engine. A proxy server has been suggested many times before by Twitter employees: - http://groups.google.com/group/twitter-development-talk/browse_thread/thread/29ec477464c175f7/141d26245f09d004 - http://groups.google.com/group/twitter-development-talk/browse_thread/thread/e8f1fe375aff50a/fc8be20a6d1b7b46 etc. That's why I ask. I just need a dedicated IP to issue search requests from. On Jul 23, 11:10 am, John Adams j...@twitter.com wrote: Setting up an open (or private) proxy in an attempt to get around our rate limits will possibly result in your application or IP being banned. The rate limits are there so that everyone can share the service. -j On Fri, Jul 23, 2010 at 9:07 AM, Ryan W rwilli...@gmail.com wrote: I've given up trying to get anything done with Twitter Search API from Google App Engine because of the rate limiting. Are there any services that provide just proxy hosting, where I can pay a few bucks a month to get a dedicated IP and proxy server running? I'd like to keep it simple and avoid the full VPS option, but it's difficult to wade through the noise when googling to see if such a service exists. Looks like most VPS providers charge $2/month for a dedicated IP. Somebody with an existing VPS could even offer such a service.
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp://api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...us know if you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjustnotableto connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
[twitter-dev] Twitter4J 2.1.3 is out - with UserStream and YFrog/TwitPic support
Hi all, Twitter4J is an unofficial, open-sourced, mavenized and Google App Engine/Android ready Java library for the Twitter API released under the BSD license. I'm glad to announce the immediate availability of Twitter4J version 2.1.3. - Download: http://twitter4j.org/en/index.html#download - Release Notes: http://samuraism.jp/blog/2010/07/24/twitter4j_2_1_3_released_with_userstream_and_yfrog_twitpic_support.html It'll be also available at the Maven central repository shortly. http://repo1.maven.org/maven2/org/twitter4j/twitter4j-core/ Please refer the Support API matrix for supported methods. http://twitter4j.org/en/api-support.html For Twtter4J specific issues/questions, please use the Twitter4J mailing list (NOT twitter-development-talk). http://twitter4j.org/en/index.html#mailingList Thanks, -- Yusuke Yamamoto yus...@mac.com this email is: [x] bloggable/tweetable [ ] private follow me on : http://twitter.com/yusukeyamamoto subscribe me at : http://samuraism.jp/
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp://api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...know if you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjustnotabletoconnect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
Re: [twitter-dev] Re: Not able to connect to twitter API from Google Appengine
Please post or forward your app's IP range so we can investigate. Thanks. -j On Fri, Jul 23, 2010 at 11:50 AM, nischalshetty nischalshett...@gmail.comwrote: Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp:// api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...know if you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjustnotabletoconnect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
@John It's hosted on the Google Appengine. I guess you guys are already on it to fix the issue. -Nischal On Jul 23, 11:55 pm, John Adams j...@twitter.com wrote: Please post or forward your app's IP range so we can investigate. Thanks. -j On Fri, Jul 23, 2010 at 11:50 AM, nischalshetty nischalshett...@gmail.comwrote: Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp:// api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...knowif you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjustnotabletoconnectto twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps
Re: [twitter-dev] Re: Twitter oAuth for PHP, some advice needed
This is quick and dirty and assumes that oauth_token and oauth_token_secret are set in a session before you are redirected to twitter.com to authorize the application. $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $_SESSION['oauth_token'], $_SESSION['oauth_token_secret']); $access_token = $connection-getAccessToken($_REQUEST['oauth_verifier']); var_dump($access_token); Abraham - Abraham Williams | Hacker Advocate | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Fri, Jul 23, 2010 at 09:49, Paul S Gutches p...@taosinteractive.comwrote: Ok... looks like there are others who received the same exception error when trying to generate an auth url. So, I switched over to Abraham's routine, which worked, and the oauth_token and verifier came back, but sadly, a new exception was thrown in the twitter-async code I was still using to retrieve the key/secret. Right now I'm trying to use Abraham's twitteroauth to output the same info. Is that possible? I looked at the class source but they are different enough to make it opaque to me. There is no equivalent setToken in twitteroauth. Does anyone know how to get twitteroauth to spill the same beans?I'm so close, and yet so far! for the intrepid, here are the async calls I'm trying to find equivalents for in twitteroauth $twitter-setToken( $_GET[oauth_token] ); $token = $twitter-getAccessToken( array( oauth_verifier = $_GET[oauth_verifier] ) ); var_dump( $token-oauth_token, $token-oauth_token_secret ); thank you Paul G On Jul 22, 2010, at 5:53 PM, Paul wrote: Hi Paul, Is there a way to retrieve the consumer keys for the other Twitter account I own without registering an app? Yep, if you use that script given previously, just login to the other Twitter account instead (with the same consumer key/secret. This will give you a different pair of tokens for the second account. Initialise as in tweeting example with the new token. Basically what you're doing is authorising the same app for both accounts. - Paul
[twitter-dev] Breaking change on Lists API endpoint?
When trying to translate a list slug to a list ID, we make a call against the API endpoint https://api.twitter.com/1/STLT_Business/lists/tech.xml (where STLT_Business is the Twitter Screen name and tech is the list slug) This returns a nice valid XML like this: list id7866001/id nameTech/name full_name@STLT_Business/tech/full_name slugtech/slug descriptionProgrammers, developers, technology reporters and bloggers from St. Louis/description subscriber_count2/subscriber_count member_count66/member_count uri/STLT_Business/tech/uri followingfalse/following modepublic/mode user id95984397/id nameSTL Tweets Business/name screen_nameSTLT_Business/screen_name locationSt. Louis, MO/location descriptionI'm watching St. Louis businesses, organizations, reporters and columnists./description profile_image_urlhttp://a3.twimg.com/profile_images/661611485/ STLT-Twitter_Pic-business_normal.png/profile_image_url urlhttp://stltweets.com/Tweets/Business/url protectedfalse/protected followers_count111/followers_count profile_background_colorff/profile_background_color profile_text_color9c9c9c/profile_text_color profile_link_color5483c9/profile_link_color profile_sidebar_fill_color062042/profile_sidebar_fill_color profile_sidebar_border_colorC0DEED/ profile_sidebar_border_color friends_count256/friends_count created_atThu Dec 10 21:11:58 + 2009/created_at favourites_count0/favourites_count utc_offset-21600/utc_offset time_zoneCentral Time (US amp; Canada)/time_zone profile_background_image_urlhttp://a1.twimg.com/ profile_background_images/70631318/STLT-Twitter_Profile-business.png/ profile_background_image_url profile_background_tilefalse/profile_background_tile profile_use_background_imagetrue/profile_use_background_image notificationsfalse/notifications geo_enabledtrue/geo_enabled verifiedfalse/verified followingfalse/following statuses_count31/statuses_count langen/lang contributors_enabledfalse/contributors_enabled follow_request_sentfalse/follow_request_sent listed_count/listed_count /user /list As of sometime today, that process started not to work when the list slug is all. Instead of getting the information like shown above (e.g. an XML root node of list, we get a response with ALL of my lists. This did NOT happen before today. Here's the sample from https://api.twitter.com/1/STLT_Business/lists/all.xml lists type=array list id7866001/id nameTech/name full_name@STLT_Business/tech/full_name slugtech/slug descriptionProgrammers, developers, technology reporters and bloggers from St. Louis/description subscriber_count2/subscriber_count member_count66/member_count uri/STLT_Business/tech/uri followingfalse/following modepublic/mode user id95984397/id nameSTL Tweets Business/name screen_nameSTLT_Business/screen_name locationSt. Louis, MO/location descriptionI'm watching St. Louis businesses, organizations, reporters and columnists./description profile_image_urlhttp://a3.twimg.com/profile_images/661611485/ STLT-Twitter_Pic-business_normal.png/profile_image_url urlhttp://stltweets.com/Tweets/Business/url protectedfalse/protected followers_count111/followers_count profile_background_colorff/profile_background_color profile_text_color9c9c9c/profile_text_color profile_link_color5483c9/profile_link_color profile_sidebar_fill_color062042/profile_sidebar_fill_color profile_sidebar_border_colorC0DEED/ profile_sidebar_border_color friends_count256/friends_count created_atThu Dec 10 21:11:58 + 2009/created_at favourites_count0/favourites_count utc_offset-21600/utc_offset time_zoneCentral Time (US amp; Canada)/time_zone profile_background_image_urlhttp://a1.twimg.com/ profile_background_images/70631318/STLT-Twitter_Profile-business.png/ profile_background_image_url profile_background_tilefalse/profile_background_tile profile_use_background_imagetrue/profile_use_background_image notificationsfalse/notifications geo_enabledtrue/geo_enabled verifiedfalse/verified followingfalse/following statuses_count31/statuses_count langen/lang contributors_enabledfalse/contributors_enabled follow_request_sentfalse/follow_request_sent listed_count/listed_count /user /list list id7865951/id nameEconomy_and_Finance/name full_name@STLT_Business/economy-and-finance/full_name slugeconomy-and-finance/slug descriptionLocal St. Louis columnists, analysts, reporters covering finance, economics and investing. /description subscriber_count1/subscriber_count member_count14/member_count uri/STLT_Business/economy-and-finance/uri followingfalse/following modepublic/mode user id95984397/id nameSTL Tweets Business/name screen_nameSTLT_Business/screen_name locationSt. Louis, MO/location descriptionI'm watching St.
Re: [twitter-dev] Re: Not able to connect to twitter API from Google Appengine
Hi Everyone, Here are the details on the issues with Google App Engine. Twitter blocked a portion of the GAE network because an unknown user set up a large proxy farm, forwarding large amounts of traffic to twitter.com. This was probably an attempt to avoid our rate limits, which is against the Twitter terms of service, among other privacy and security issues. We recognize that those in shared hosting environments like Google App Engine are often held hostage by the actions of their peers and will continue to investigate ways that we can deal with issues like this without necessarily cutting off all traffic from a shared hosting services, but those operating under such circumstances should be aware that this kind of blacklisting will occur from time to time. If you continue to experience issues with your Google App Engine application, please reply to this thread with a link to your application, and, if possible, the IP address from which your remote requests are originating. Thanks, Taylor On Fri, Jul 23, 2010 at 12:08 PM, nischalshetty nischalshett...@gmail.com wrote: @John It's hosted on the Google Appengine. I guess you guys are already on it to fix the issue. -Nischal On Jul 23, 11:55 pm, John Adams j...@twitter.com wrote: Please post or forward your app's IP range so we can investigate. Thanks. -j On Fri, Jul 23, 2010 at 11:50 AM, nischalshetty nischalshett...@gmail.comwrote: Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp:// api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...knowif you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File
[twitter-dev] Re: Undocumented fields?
Wonderful, thanks. VERY helpful. Exactly the problem we were having. Mark On Jul 23, 1:52 pm, Matt Harris thematthar...@twitter.com wrote: Hi Mark, These fields were added in January 2010 to address the problem when the cursors were too long for javascript to handle. The original announcement is on our API Announce list [1] and there are no plans to remove this functionality. Hope that helps, Matt 1.http://groups.google.com/group/twitter-api-announce/browse_thread/thr... On Fri, Jul 23, 2010 at 8:45 AM, Mark Krieger markskrie...@gmail.comwrote: I found that statuses/friends and statuses/followers have an undocumented field called next_cursor_str and prev_cursor_str, which are simply the string values of those fields in addition to the digits passed back in next_cursor and prev_cursor. Is this planned to stay this way? (can I rely on them always being in the api?) I was working around a known json_decode bug on 32-bit machines on one of our test portables, where it could not decode the next_cursor, no big deal, but when I found the 'str' versions of the cursors I turned off the workaround. Once $id's get large enough, 32-bit machines will need json_decode to work right tooso the workaround might be needed then. Mark -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
Still not working for me. That's been all day. Mine is GAE too. On Jul 23, 8:08 pm, nischalshetty nischalshett...@gmail.com wrote: @John It's hosted on the Google Appengine. I guess you guys are already on it to fix the issue. -Nischal On Jul 23, 11:55 pm, John Adams j...@twitter.com wrote: Please post or forward your app's IP range so we can investigate. Thanks. -j On Fri, Jul 23, 2010 at 11:50 AM, nischalshetty nischalshett...@gmail.comwrote: Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp:// api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...knowif you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
I'm still getting this and have been all day. Please can someone advise what's happening and why Twitter seemingly doesn't want to talk to GAE? On Jul 23, 5:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp://api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...us know if you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 360, in _call_chain result = func(*args) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1115, in https_open return self.do_open(httplib.HTTPSConnection, req) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 1080, in do_open r = h.getresponse() File /base/python_runtime/python_dist/lib/python2.5/httplib.py, line 197, in getresponse self._allow_truncated, self._follow_redirects) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 241, in fetch return rpc.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 501, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/urlfetch.py, line 325, in _get_fetch_result raise DownloadError(str(err)) DownloadError: ApplicationError: 2 It was fine several days ago. On Jul 23, 2:15 pm, nischalshetty nischalshett...@gmail.com wrote: My apphttp://www.justunfollow.comisjustnotableto connect to twitter from Google Appengine. It's most probably an app engine issue (none of the app engine apps seem to be able to connect to twitter), but nevertheless I'm writing here to see if it so happened that twitter has blocked access to app engine. The error says : Could not fecth URL for http calls made to twitter from google Appengine -Nischal
[twitter-dev] Re: API problem when passing since_id
It's happening consistently with me I'm afraid. I'm using my own twitter account for testing: roytang. On Jul 24, 1:36 am, Matt Harris thematthar...@twitter.com wrote: A Something is technically wrong error sometimes happens but normally it goes away when you request again a little bit later. Is this still happening when you make that request? If it is could you let us know the screen name which this is happening to. Best, Matt On Thu, Jul 22, 2010 at 10:59 PM, Roy royt...@gmail.com wrote: Hi, I've been encountering this issue: If I access http://api.twitter.com/1/statuses/user_timeline.json - this is fine. But when I pass since_id like so: http://api.twitter.com/1/statuses/user_timeline.json?since_id=1923315... I'm getting the Something is technically wrong. error page. I'm using OAuth for authentication using Mike Knapp's oauth.py from http://github.com/mikeknapp/AppEngine-OAuth-Library Any idea what I'm doing wrong? Thanks! -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
I'm still facing issues. Please help me - http://www.justunfollow.com I have no idea about the IP addresses though. -Nischal On Jul 24, 12:26 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Everyone, Here are the details on the issues with Google App Engine. Twitter blocked a portion of the GAE network because an unknown user set up a large proxy farm, forwarding large amounts of traffic to twitter.com. This was probably an attempt to avoid our rate limits, which is against the Twitter terms of service, among other privacy and security issues. We recognize that those in shared hosting environments like Google App Engine are often held hostage by the actions of their peers and will continue to investigate ways that we can deal with issues like this without necessarily cutting off all traffic from a shared hosting services, but those operating under such circumstances should be aware that this kind of blacklisting will occur from time to time. If you continue to experience issues with your Google App Engine application, please reply to this thread with a link to your application, and, if possible, the IP address from which your remote requests are originating. Thanks, Taylor On Fri, Jul 23, 2010 at 12:08 PM, nischalshettynischalshett...@gmail.com wrote: @John It's hosted on the Google Appengine. I guess you guys are already on it to fix the issue. -Nischal On Jul 23, 11:55 pm, John Adams j...@twitter.com wrote: Please post or forward your app's IP range so we can investigate. Thanks. -j On Fri, Jul 23, 2010 at 11:50 AM, nischalshetty nischalshett...@gmail.comwrote: Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp:// api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...knowif you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 399, in _open '_open', req)
[twitter-dev] Re: Streaming volume dropped x5 in the past few days
Matt, Thanks for the info. How do we apply for the Gardenhose access? Now we have 5x extra processing power just idling around:) Thanks, Tom On Jul 23, 1:57 pm, Matt Harris thematthar...@twitter.com wrote: Hi Tom, The sampling rates for the Spritzer and Gardenhose streams was changed just over a week ago. You can read more about this in the announcement we made [1] and in a related discussion [2]. Hope that helps, Matt 1.http://groups.google.com/group/twitter-development-talk/browse_thread... 2.http://groups.google.com/group/twitter-development-talk/browse_thread... On Fri, Jul 23, 2010 at 9:39 AM, tomz tom.z.z...@gmail.com wrote: Not sure if others experienced that same, the tweet volume from the streaming API had been 2-3+million tweets a day a week ago and in the past week it dropped to around 600k/day, any reason for that? Thanks, Tom -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris
Re: [twitter-dev] Status of contributions API?
Our focus has veered a bit on the Contributors API -- the feature itself continues to be evaluated and utilized by a few accounts, but the actual API expression of using Contributor features is on hold for now as we focus on more important things. Would certainly make for some great client integration features. Thanks! Taylor On Fri, Jul 23, 2010 at 10:34 AM, @epc epcoste...@gmail.com wrote: Is there a target for the contributions API opening up? Alternately is there a document somewhere laying out who you need to be / how much it costs to utilize the contributions API? Asking mostly out of curiosity as I work through a new app for a client. -- -ed costello
Re: [twitter-dev] Breaking change on Lists API endpoint?
Thanks for your good-humored analysis of the issue. This is a new feature we haven't documented or announced yet, and causes a conflict we should have obviously thought more deeply about in advance. Here's a work around to access the same end point you know and love for lists named all: https://api.twitter.com/1/STLT_Business/lists/show.xml?list_id=all (which would work for twitter/team also). https://api.twitter.com/1/twitter/lists/show.xml?list_id=team More about this mysterious lists/all later. Let me know if this alternate access point doesn't provide the output you are expecting. Taylor On Fri, Jul 23, 2010 at 12:22 PM, @IDisposable idisposa...@gmail.com wrote: When trying to translate a list slug to a list ID, we make a call against the API endpoint https://api.twitter.com/1/STLT_Business/lists/tech.xml (where STLT_Business is the Twitter Screen name and tech is the list slug) This returns a nice valid XML like this: list id7866001/id nameTech/name full_name@STLT_Business/tech/full_name slugtech/slug descriptionProgrammers, developers, technology reporters and bloggers from St. Louis/description subscriber_count2/subscriber_count member_count66/member_count uri/STLT_Business/tech/uri followingfalse/following modepublic/mode user id95984397/id nameSTL Tweets Business/name screen_nameSTLT_Business/screen_name locationSt. Louis, MO/location descriptionI'm watching St. Louis businesses, organizations, reporters and columnists./description profile_image_urlhttp://a3.twimg.com/profile_images/661611485/ STLT-Twitter_Pic-business_normal.png/profile_image_url urlhttp://stltweets.com/Tweets/Business/url protectedfalse/protected followers_count111/followers_count profile_background_colorff/profile_background_color profile_text_color9c9c9c/profile_text_color profile_link_color5483c9/profile_link_color profile_sidebar_fill_color062042/profile_sidebar_fill_color profile_sidebar_border_colorC0DEED/ profile_sidebar_border_color friends_count256/friends_count created_atThu Dec 10 21:11:58 + 2009/created_at favourites_count0/favourites_count utc_offset-21600/utc_offset time_zoneCentral Time (US amp; Canada)/time_zone profile_background_image_urlhttp://a1.twimg.com/ profile_background_images/70631318/STLT-Twitter_Profile-business.png/ profile_background_image_url profile_background_tilefalse/profile_background_tile profile_use_background_imagetrue/profile_use_background_image notificationsfalse/notifications geo_enabledtrue/geo_enabled verifiedfalse/verified followingfalse/following statuses_count31/statuses_count langen/lang contributors_enabledfalse/contributors_enabled follow_request_sentfalse/follow_request_sent listed_count/listed_count /user /list As of sometime today, that process started not to work when the list slug is all. Instead of getting the information like shown above (e.g. an XML root node of list, we get a response with ALL of my lists. This did NOT happen before today. Here's the sample from https://api.twitter.com/1/STLT_Business/lists/all.xml lists type=array list id7866001/id nameTech/name full_name@STLT_Business/tech/full_name slugtech/slug descriptionProgrammers, developers, technology reporters and bloggers from St. Louis/description subscriber_count2/subscriber_count member_count66/member_count uri/STLT_Business/tech/uri followingfalse/following modepublic/mode user id95984397/id nameSTL Tweets Business/name screen_nameSTLT_Business/screen_name locationSt. Louis, MO/location descriptionI'm watching St. Louis businesses, organizations, reporters and columnists./description profile_image_urlhttp://a3.twimg.com/profile_images/661611485/ STLT-Twitter_Pic-business_normal.png/profile_image_url urlhttp://stltweets.com/Tweets/Business/url protectedfalse/protected followers_count111/followers_count profile_background_colorff/profile_background_color profile_text_color9c9c9c/profile_text_color profile_link_color5483c9/profile_link_color profile_sidebar_fill_color062042/profile_sidebar_fill_color profile_sidebar_border_colorC0DEED/ profile_sidebar_border_color friends_count256/friends_count created_atThu Dec 10 21:11:58 + 2009/created_at favourites_count0/favourites_count utc_offset-21600/utc_offset time_zoneCentral Time (US amp; Canada)/time_zone profile_background_image_urlhttp://a1.twimg.com/ profile_background_images/70631318/STLT-Twitter_Profile-business.png/ profile_background_image_url profile_background_tilefalse/profile_background_tile profile_use_background_imagetrue/profile_use_background_image notificationsfalse/notifications geo_enabledtrue/geo_enabled verifiedfalse/verified followingfalse/following statuses_count31/statuses_count langen/lang
[twitter-dev] Still having issues, though less.
The Twitter app I run is still having issues with URL requests right now though far less than it did previously. Previously like 90% of all calls were failing, now it seems like about 50/50 success/fail... better, but still unreliable.
[twitter-dev] xAuth
I'm getting a 401 when I try to use xAuth in my iPhone app. Is this occurring for others?
[twitter-dev] Re: Breaking change on Lists API endpoint?
Thanks for your good-humored analysis of the issue. This is a new feature we haven't documented or announced yet, and causes a conflict we should have obviously thought more deeply about in advance. Okay, so I read into this that it is going to stay... can you then correct the return type to have a lists_list root node so the parsers that (rightly) switch on root node type get what was expected from the other (non-filtered) call? Here's a work around to access the same end point you know and love for lists named all: https://api.twitter.com/1/STLT_Business/lists/show.xml?list_id=all I could do that, but it seems that would only help _me_ out... I use the LinqToTwitter library, which builds nice RESTful URLs... I'm a committer on that library, so I just want to fix this or ignore it... More about this mysterious lists/all later. Let me know if this alternate access point doesn't provide the output you are expecting. That response is just fine, if that's the way you want list URLs built going forward... but I would need your request to make it so before Joe will want to alter the LinqToTwitter library. For now, until you tell me the long-term plan, I've tweaked to accept the lists root node, and I'm renaming all my lists that are currently all to something that doesn't clash with you guys Would Everyone be safe? Marc
[twitter-dev] Re: Hosted proxy server service?
I bought an instance from Rackspace Cloud http://rackspacecloud.com/ and installed Nginx for that purpose. Now it works great and only cost 12 bucks a month. @livid On Jul 24, 2:31 am, Ryan W rwilli...@gmail.com wrote: Respectively, I'm not trying to get around anything. I'm simply trying to make the Twitter Search API usable from App Engine. A proxy server has been suggested many times before by Twitter employees: -http://groups.google.com/group/twitter-development-talk/browse_thread... -http://groups.google.com/group/twitter-development-talk/browse_thread... etc. That's why I ask. I just need a dedicated IP to issue search requests from. On Jul 23, 11:10 am, John Adams j...@twitter.com wrote: Setting up an open (or private) proxy in an attempt to get around our rate limits will possibly result in your application or IP being banned. The rate limits are there so that everyone can share the service. -j On Fri, Jul 23, 2010 at 9:07 AM, Ryan W rwilli...@gmail.com wrote: I've given up trying to get anything done with Twitter Search API from Google App Engine because of the rate limiting. Are there any services that provide just proxy hosting, where I can pay a few bucks a month to get a dedicated IP and proxy server running? I'd like to keep it simple and avoid the full VPS option, but it's difficult to wade through the noise when googling to see if such a service exists. Looks like most VPS providers charge $2/month for a dedicated IP. Somebody with an existing VPS could even offer such a service.
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
Hi Taylor, I think it's almost impossible to determine the originated IP, because every time Google uses a different server to request, and in theory only the requested ends (Twitter) can see the originated IPs. My app is http://v2ex.appspot.com/ , now is still experiencing the problem from time to time. I guess the problematic requests are made via basic auth, or you can easily deactivate its consumer key, right? Now I'm long for August 16. Thanks, @livid On Jul 24, 3:26 am, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Everyone, Here are the details on the issues with Google App Engine. Twitter blocked a portion of the GAE network because an unknown user set up a large proxy farm, forwarding large amounts of traffic to twitter.com. This was probably an attempt to avoid our rate limits, which is against the Twitter terms of service, among other privacy and security issues. We recognize that those in shared hosting environments like Google App Engine are often held hostage by the actions of their peers and will continue to investigate ways that we can deal with issues like this without necessarily cutting off all traffic from a shared hosting services, but those operating under such circumstances should be aware that this kind of blacklisting will occur from time to time. If you continue to experience issues with your Google App Engine application, please reply to this thread with a link to your application, and, if possible, the IP address from which your remote requests are originating. Thanks, Taylor On Fri, Jul 23, 2010 at 12:08 PM, nischalshetty nischalshett...@gmail.com wrote: @John It's hosted on the Google Appengine. I guess you guys are already on it to fix the issue. -Nischal On Jul 23, 11:55 pm, John Adams j...@twitter.com wrote: Please post or forward your app's IP range so we can investigate. Thanks. -j On Fri, Jul 23, 2010 at 11:50 AM, nischalshetty nischalshett...@gmail.comwrote: Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp:// api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...knowif you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101,
Re: [twitter-dev] Re: Twitter oAuth for PHP, some advice needed
Thanks Abraham. I'm still a bit baffled, but I'm sure the origin is local, haha. I used your testing routine with the Sign in to Twitter dialog to try to access the account token and secret for storage. In your redirect.php file, it does look like you are setting session vars in there for the token and secret before the redirect to Twitter. But it also says in your comments that those are temporary credentials. I was confused by that, because it's my understanding they're not supposed to expire, which is how they can be used again for future access. Do I have that wrong? I'm looking for the credentials that developers are storing for re-use of their user's Twitter accounts. Even though your redirect.php file is creating a session for the variables, when the callback to the quick and dirty code occurs, the variables are not accessible. I get the below notices. br / bNotice/b: Undefined variable: _SESSION in b/path/twittertest- oauth2.php/b on line b21/bbr / br / bNotice/b: Undefined variable: _SESSION in b/path/twittertest- oauth2.php/b on line b21/bbr / br / bNotice/b: Undefined index: oauth_token in b/path/twitteroauth/ twitteroauth.php/b on line b118/bbr / br / bNotice/b: Undefined index: oauth_token_secret in b/path/ twitteroauth/twitteroauth.php/b on line b118/bbr / array(1) { [ ]= string(0) } Any advice for keeping hope alive? :) Thanks again Paul G On Jul 23, 2010, at 1:13 PM, Abraham Williams wrote: This is quick and dirty and assumes that oauth_token and oauth_token_secret are set in a session before you are redirected to twitter.com to authorize the application. $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $_SESSION['oauth_token'], $_SESSION['oauth_token_secret']); $access_token = $connection-getAccessToken($_REQUEST ['oauth_verifier']); var_dump($access_token); Abraham - Abraham Williams | Hacker Advocate | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private.
[twitter-dev] Re: Status of contributions API?
On Jul 23, 4:08 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Our focus has veered a bit on the Contributors API -- the feature itself continues to be evaluated and utilized by a few accounts, but the actual API expression of using Contributor features is on hold for now as we focus on more important things. Would certainly make for some great client integration features. Thanks. Can I suggest throwing together a page on dev.twitter.com that says basically that (far easier to search than the group)? -- -ed costello
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
I am with same problema, DownloadError: ApplicationError: 2 On both my GAE apps: http://apoiomaisfeliz.appspot.com/ http://apoio.minhamarina.org.br/ Can Twitter API block the proxy farm without stopping our permitted apps? On Jul 23, 4:26 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Everyone, Here are the details on the issues with Google App Engine. Twitter blocked a portion of the GAE network because an unknown user set up a large proxy farm, forwarding large amounts of traffic to twitter.com. This was probably an attempt to avoid our rate limits, which is against the Twitter terms of service, among other privacy and security issues. We recognize that those in shared hosting environments like Google App Engine are often held hostage by the actions of their peers and will continue to investigate ways that we can deal with issues like this without necessarily cutting off all traffic from a shared hosting services, but those operating under such circumstances should be aware that this kind of blacklisting will occur from time to time. If you continue to experience issues with your Google App Engine application, please reply to this thread with a link to your application, and, if possible, the IP address from which your remote requests are originating. Thanks, Taylor On Fri, Jul 23, 2010 at 12:08 PM, nischalshetty nischalshett...@gmail.com wrote: @John It's hosted on the Google Appengine. I guess you guys are already on it to fix the issue. -Nischal On Jul 23, 11:55 pm, John Adams j...@twitter.com wrote: Please post or forward your app's IP range so we can investigate. Thanks. -j On Fri, Jul 23, 2010 at 11:50 AM, nischalshetty nischalshett...@gmail.comwrote: Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp:// api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...knowif you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ oauthtwitter.py, line 101, in _FetchUrl url_data = opener.open(url).read() File /base/python_runtime/python_dist/lib/python2.5/urllib2.py, line 381, in open response = self._open(req, data) File
Re: [twitter-dev] Re: Not able to connect to twitter API from Google Appengine
About thirty minutes ago we lifted all of the blocks on Google App engine IPs; You should no longer have issues connecting from GAE to us. -j On Fri, Jul 23, 2010 at 3:06 PM, Marco Gomes mvtgo...@gmail.com wrote: I am with same problema, DownloadError: ApplicationError: 2 On both my GAE apps: http://apoiomaisfeliz.appspot.com/ http://apoio.minhamarina.org.br/ Can Twitter API block the proxy farm without stopping our permitted apps? On Jul 23, 4:26 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Everyone, Here are the details on the issues with Google App Engine. Twitter blocked a portion of the GAE network because an unknown user set up a large proxy farm, forwarding large amounts of traffic to twitter.com. This was probably an attempt to avoid our rate limits, which is against the Twitter terms of service, among other privacy and security issues. We recognize that those in shared hosting environments like Google App Engine are often held hostage by the actions of their peers and will continue to investigate ways that we can deal with issues like this without necessarily cutting off all traffic from a shared hosting services, but those operating under such circumstances should be aware that this kind of blacklisting will occur from time to time. If you continue to experience issues with your Google App Engine application, please reply to this thread with a link to your application, and, if possible, the IP address from which your remote requests are originating. Thanks, Taylor On Fri, Jul 23, 2010 at 12:08 PM, nischalshetty nischalshett...@gmail.com wrote: @John It's hosted on the Google Appengine. I guess you guys are already on it to fix the issue. -Nischal On Jul 23, 11:55 pm, John Adams j...@twitter.com wrote: Please post or forward your app's IP range so we can investigate. Thanks. -j On Fri, Jul 23, 2010 at 11:50 AM, nischalshetty nischalshett...@gmail.comwrote: Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp:// api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...knowif you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it! Taylor On Fri, Jul 23, 2010 at 3:13 AM, Livid v2ex.li...@me.com wrote: I'm getting the same error for my community (with a built-in Twitter OAuth client) running on GAE:http://v2ex.appspot.com Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 511, in __call__ handler.get(*groups) File /base/data/home/apps/v2ex/1.343564127440067233/t.py, line 157, in get statuses = twitter.GetHomeTimeline(count = 100) File /base/data/home/apps/v2ex/1.343564127440067233/twitter/ twitter.py, line 1451, in GetHomeTimeline json = self._FetchUrl(url, parameters=parameters) File
Re: [twitter-dev] Re: API problem when passing since_id
Hey Roy, Is this running on Google App Engine? We have some problems earlier today which may have been causing this for you. If not can you try running: curl http://api.twitter.com/1/statuses/user_timeline.json?since_id=1923315\screen_name=roytang and let me know if that works for you. Matt On Fri, Jul 23, 2010 at 12:11 PM, Roy royt...@gmail.com wrote: It's happening consistently with me I'm afraid. I'm using my own twitter account for testing: roytang. On Jul 24, 1:36 am, Matt Harris thematthar...@twitter.com wrote: A Something is technically wrong error sometimes happens but normally it goes away when you request again a little bit later. Is this still happening when you make that request? If it is could you let us know the screen name which this is happening to. Best, Matt On Thu, Jul 22, 2010 at 10:59 PM, Roy royt...@gmail.com wrote: Hi, I've been encountering this issue: If I access http://api.twitter.com/1/statuses/user_timeline.json - this is fine. But when I pass since_id like so: http://api.twitter.com/1/statuses/user_timeline.json?since_id=1923315. .. I'm getting the Something is technically wrong. error page. I'm using OAuth for authentication using Mike Knapp's oauth.py from http://github.com/mikeknapp/AppEngine-OAuth-Library Any idea what I'm doing wrong? Thanks! -- Matt Harris Developer Advocate, Twitterhttp://twitter.com/themattharris -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Still having issues, though less.
Hey George, Can you give an example of the calls that are not working and the responses you are getting? Is this application running on your server or on a cloud solution? Matt On Fri, Jul 23, 2010 at 1:19 PM, George McBay george.mc...@gmail.comwrote: The Twitter app I run is still having issues with URL requests right now though far less than it did previously. Previously like 90% of all calls were failing, now it seems like about 50/50 success/fail... better, but still unreliable. -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
Re: [twitter-dev] Re: xauth token exchange failing
As far as we know this is resolved and things should be working fine. I'm not familiar with your setup so need to ask if you applied for xAuth and were granted it? If not that will be the causes of the 401. If you did what API call are you trying to make and what does your signature base string look like? (Remember to remove any secrets and passwords) Best, Matt On Fri, Jul 23, 2010 at 1:20 PM, DrewC drew.cogb...@smallplanet.com wrote: Guys- did this get resolved for you? Or are you still having issues? I'm getting a 401 error with xauth. On Jul 19, 6:10 pm, Isaiah Carew isa...@me.com wrote: OK, good to know. Just want to make sure it's not just me. Misery loves company, I guess. :-P isaiahhttp://twitter.com/isaiah On Jul 19, 2010, at 2:54 PM, Tim Davies wrote: Im getting the same isalah. Twitter are aware of the issue. its during handshake for creating new tokens and maybe linked to several other OAuth issues that came to attention this morning. Im hoping it will be fixed shortly! -- Matt Harris Developer Advocate, Twitter http://twitter.com/themattharris
[twitter-dev] Re: Not able to connect to twitter API from Google Appengine
@John Thank you very much for lifting the ban. It's working now. Our apps depend completely on Twitter. I have been working and putting in a lot of time and effort (and money on app engine for the resources) to manage my app http://justunfollow.com My app gets a good number of users and I have been thinking of making some money off it. But, if something like this happens, all my efforts would take a beating! Can't you guys be able to determine if the app making the request is legit or not. I mean, we all use our consumer keys, at least the apps using their consumer key must be allowed to make requests. IP should come into play only when the consumer key is missing. Can this be done? -Nischal On Jul 24, 3:12 am, John Adams j...@twitter.com wrote: About thirty minutes ago we lifted all of the blocks on Google App engine IPs; You should no longer have issues connecting from GAE to us. -j On Fri, Jul 23, 2010 at 3:06 PM, Marco Gomes mvtgo...@gmail.com wrote: I am with same problema, DownloadError: ApplicationError: 2 On both my GAE apps: http://apoiomaisfeliz.appspot.com/ http://apoio.minhamarina.org.br/ Can Twitter API block the proxy farm without stopping our permitted apps? On Jul 23, 4:26 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi Everyone, Here are the details on the issues with Google App Engine. Twitter blocked a portion of the GAE network because an unknown user set up a large proxy farm, forwarding large amounts of traffic to twitter.com. This was probably an attempt to avoid our rate limits, which is against the Twitter terms of service, among other privacy and security issues. We recognize that those in shared hosting environments like Google App Engine are often held hostage by the actions of their peers and will continue to investigate ways that we can deal with issues like this without necessarily cutting off all traffic from a shared hosting services, but those operating under such circumstances should be aware that this kind of blacklisting will occur from time to time. If you continue to experience issues with your Google App Engine application, please reply to this thread with a link to your application, and, if possible, the IP address from which your remote requests are originating. Thanks, Taylor On Fri, Jul 23, 2010 at 12:08 PM, nischalshetty nischalshett...@gmail.com wrote: @John It's hosted on the Google Appengine. I guess you guys are already on it to fix the issue. -Nischal On Jul 23, 11:55 pm, John Adams j...@twitter.com wrote: Please post or forward your app's IP range so we can investigate. Thanks. -j On Fri, Jul 23, 2010 at 11:50 AM, nischalshetty nischalshett...@gmail.comwrote: Alrite, I can see intermittent errors. So all's not well yet... -Nischal On Jul 23, 11:35 pm, nischalshetty nischalshett...@gmail.com wrote: Oh my GOD! I can see it working! Yippe Thank you so much. A post or update on what caused the issue would be welcome! -Nischal On Jul 23, 9:51 pm, Greg Jones psycle@gmail.com wrote: Hi Taylor, It doesn't connect to either http or https. Happy to help testing anything else...app's not live yet, but was a bit of a scare this morning! cheers, Greg On Jul 23, 5:32 pm, nischalshetty nischalshett...@gmail.com wrote: @Taylor The problem is even with the simple search request. So basically its for all API calls to twitter. -Nischal On Jul 23, 8:56 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hey all, We're still looking into this. To help us eliminate some possibile issues, can someone who's working behind the Google App Engine IP addresses attempt to connect to bothhttp:// api.twitter.com/oauth/request_tokenandhttps://api.twitter.com/...knowif you're seeing a difference between the two? (I'm trying to rule out that the SSL wildcard certificate is to blame or not). Thanks, Taylor On Fri, Jul 23, 2010 at 7:45 AM, nischalshetty nischalshett...@gmail.com wrote: @Taylor Ah! You're my hero! I've been frantically trying to get in touch with anyone and everyone over twitter and google app engine. The App engine folks are yet to read the long thread I've started in their forum. I hope if the issue is on your end you find a fix soon. It's been well over 15-20 hours since my app has been unusable, it hurts! -Nischal On Jul 23, 7:06 pm, Taylor Singletary taylorsinglet...@twitter.com wrote: Hi folks on Google App Engine experiencing difficulties, We're looking into it!
Re: [twitter-dev] Re: Twitter oAuth for PHP, some advice needed
Hello Paul, In redirect.php the request token (also called temporary credentials) are one use. After the user returns from twitter.com having authorized the application they are exchanged for an access token from Twitter which is long lasting and what you are after. If the request token is not being saved/retrieved from sessions properly you can print it and the authenticate URL in redirect.php instead of automatically redirecting. Copy/paste the authenticate url into a browser window and authorize the app to access the user account. Then you can manually put the request token into the quick and dirty code instead of pulling from a session. Keep in mind that you can only use the request token once so if you don't print the access token the first time you will have to do it all again. Abraham - Abraham Williams | Hacker Advocate | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private. On Fri, Jul 23, 2010 at 14:23, Paul S Gutches p...@taosinteractive.comwrote: Thanks Abraham. I'm still a bit baffled, but I'm sure the origin is local, haha. I used your testing routine with the Sign in to Twitter dialog to try to access the account token and secret for storage. In your redirect.php file, it does look like you are setting session vars in there for the token and secret before the redirect to Twitter. But it also says in your comments that those are temporary credentials. I was confused by that, because it's my understanding they're not supposed to expire, which is how they can be used again for future access. Do I have that wrong? I'm looking for the credentials that developers are storing for re-use of their user's Twitter accounts. Even though your redirect.php file is creating a session for the variables, when the callback to the quick and dirty code occurs, the variables are not accessible. I get the below notices. br / bNotice/b: Undefined variable: _SESSION in b/path/twittertest-oauth2.php/b on line b21/bbr / br / bNotice/b: Undefined variable: _SESSION in b/path/twittertest-oauth2.php/b on line b21/bbr / br / bNotice/b: Undefined index: oauth_token in b/path/twitteroauth/twitteroauth.php/b on line b118/bbr / br / bNotice/b: Undefined index: oauth_token_secret in b/path/twitteroauth/twitteroauth.php/b on line b118/bbr / array(1) { [ ]= string(0) } Any advice for keeping hope alive? :) Thanks again Paul G On Jul 23, 2010, at 1:13 PM, Abraham Williams wrote: This is quick and dirty and assumes that oauth_token and oauth_token_secret are set in a session before you are redirected to twitter.com to authorize the application. $connection = new TwitterOAuth(CONSUMER_KEY, CONSUMER_SECRET, $_SESSION['oauth_token'], $_SESSION['oauth_token_secret']); $access_token = $connection-getAccessToken($_REQUEST['oauth_verifier']); var_dump($access_token); Abraham - Abraham Williams | Hacker Advocate | http://abrah.am @abraham | http://projects.abrah.am | http://blog.abrah.am This email is: [ ] shareable [x] ask first [ ] private.
[twitter-dev] Re: Hosted proxy server service?
@livid thanks for the recommendation. Sounds like that's the way to go. On Jul 23, 1:55 pm, Livid v2ex.li...@me.com wrote: I bought an instance from Rackspace Cloudhttp://rackspacecloud.com/ and installed Nginx for that purpose. Now it works great and only cost 12 bucks a month. @livid On Jul 24, 2:31 am, Ryan W rwilli...@gmail.com wrote: Respectively, I'm not trying to get around anything. I'm simply trying to make the Twitter Search API usable from App Engine. A proxy server has been suggested many times before by Twitter employees: -http://groups.google.com/group/twitter-development-talk/browse_thread... -http://groups.google.com/group/twitter-development-talk/browse_thread... etc. That's why I ask. I just need a dedicated IP to issue search requests from. On Jul 23, 11:10 am, John Adams j...@twitter.com wrote: Setting up an open (or private) proxy in an attempt to get around our rate limits will possibly result in your application or IP being banned. The rate limits are there so that everyone can share the service. -j On Fri, Jul 23, 2010 at 9:07 AM, Ryan W rwilli...@gmail.com wrote: I've given up trying to get anything done with Twitter Search API from Google App Engine because of the rate limiting. Are there any services that provide just proxy hosting, where I can pay a few bucks a month to get a dedicated IP and proxy server running? I'd like to keep it simple and avoid the full VPS option, but it's difficult to wade through the noise when googling to see if such a service exists. Looks like most VPS providers charge $2/month for a dedicated IP. Somebody with an existing VPS could even offer such a service.