gfcapalbo / python-twitter

Automatically exported from code.google.com/p/python-twitter
Apache License 2.0
0 stars 0 forks source link

API proxy site support #89

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. The user can not modify the API root URL
2. So some users can not access twitter directly if the twitter is blocked.
3. The users in Iran and China can not use this script.

What is the expected output? What do you see instead?
The API URL is configurable. Not like this: url =
'http://twitter.com/statuses/public_timeline.json' in the source file.
Please add an option to re-write this setting.

What version of the product are you using? On what operating system?
0.6

Please provide any additional information below.

Original issue reported on code.google.com by Jiz.X...@gmail.com on 17 Aug 2009 at 9:28

GoogleCodeExporter commented 9 years ago
I created a patch to address the issue.
See the attachment.

A new argument of Api.__init__ was added:
      api_url:
          The base URL of twitter API. Defaults to DEFAULT_TWITTER_URL.
          Only specify this if you need an alternate twitter API proxy.

Original comment by ftoffice...@gmail.com on 6 Sep 2009 at 12:14

Attachments:

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago

Original comment by bear42 on 16 Oct 2010 at 8:08