def testlookupusers(self):
def check(users):
self.assertEqual(len(users), 2)
- check(self.api.lookup_users(user_ids=[6844292, 6253282]))
+ check(self.api.lookup_users(user_id=[6844292, 6253282]))
check(self.api.lookup_users(screen_names=['twitterapi', 'twitter']))
@tape.use_cassette('testsearchusers.json')
)
@payload('user', list=True)
- def lookup_users(self, user_ids=None, screen_names=None, *args, **kwargs):
+ def lookup_users(self, user_id=None, screen_names=None, *args, **kwargs):
""" :reference: https://developer.twitter.com/en/docs/accounts-and-users/follow-search-get-users/api-reference/get-users-lookup
"""
return self.request(
- 'POST', 'users/lookup', list_to_csv(user_ids),
+ 'POST', 'users/lookup', list_to_csv(user_id),
list_to_csv(screen_names), *args, endpoint_parameters=(
'user_id', 'screen_name', 'include_entities', 'tweet_mode'
), **kwargs