Commit ef95d9c8 authored by Joshua Roesslein's avatar Joshua Roesslein
Browse files

Add users search API method. API.search_users().

parent 28e864a2
All changes made to the library that might affect applications
during upgrade will be listed here.
1.2 -> 1.3
1.3 -> 1.4 [Future release]
===========================
+ Added people search API method. API.search_users()
1.2 -> 1.3 [Current release]
=====================
+ Lists API methods added
+ API.verify_credentials() now returns an User object if credentials
......
......@@ -57,6 +57,9 @@ class TweepyAPITests(unittest.TestCase):
u = self.api.get_user(783214)
self.assertEqual(u.screen_name, 'twitter')
def testsearchusers(self):
self.api.search_users('twitter')
def testme(self):
me = self.api.me()
self.assertEqual(me.screen_name, username)
......
......@@ -146,6 +146,14 @@ class API(object):
def me(self):
return self.get_user(screen_name=self.auth.get_username())
""" users/search """
search_users = bind_api(
path = '/users/search.json',
parser = parse_users,
require_auth = True,
allowed_param = ['q', 'per_page', 'page']
)
""" statuses/friends """
friends = bind_api(
path = '/statuses/friends.json',
......
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