Commit 189eaf47 authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Added new local trends methods.

parent f600f2fa
......@@ -19,6 +19,7 @@ during upgrade will be listed here.
new usage: tweepyshell <username> [password] <-- optional now
+ API
- retweet() method now works correctly
- Added local trends method: trends_available() and trends_location()
1.2 -> 1.3 [Current release]
=====================
......
......@@ -596,6 +596,20 @@ class API(object):
except TweepError:
return False
""" trends/available [coming soon] """
trends_available = bind_api(
path = '/trends/available.json',
parser = parse_json,
allowed_param = ['lat', 'long']
)
""" trends/location [coming soon] """
def trends_location(self, woeid, *args, **kargs):
return bind_api(
path = '/trends/%s.json' % woeid,
parser = parse_json,
)(self, *args, **kargs)
""" search """
search = bind_api(
search_api = True,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment