Commit 7bb87979 authored by kk6's avatar kk6
Browse files

Fix args according docs.

parent 3ec42435
......@@ -284,7 +284,7 @@ class TweepyAPITests(TweepyTestCase):
params = {
'slug': 'test',
'owner_screen_name': username,
'screen_names': ['twitterapi', 'twittermobile']
'screen_name': ['twitterapi', 'twittermobile']
}
def assert_list(l):
......
......@@ -577,10 +577,10 @@ class API(object):
)
""" Perform bulk add of list members from user ID or screenname """
def add_list_members(self, screen_names=None, user_ids=None, slug=None,
def add_list_members(self, screen_name=None, user_id=None, slug=None,
list_id=None, owner_id=None, owner_screen_name=None):
return self._add_list_members(list_to_csv(screen_names),
list_to_csv(user_ids),
return self._add_list_members(list_to_csv(screen_name),
list_to_csv(user_id),
slug, list_id, owner_id,
owner_screen_name)
......@@ -593,10 +593,10 @@ class API(object):
)
""" Perform bulk remove of list members from user ID or screenname """
def remove_list_members(self, screen_names=None, user_ids=None, slug=None,
def remove_list_members(self, screen_name=None, user_id=None, slug=None,
list_id=None, owner_id=None, owner_screen_name=None):
return self._remove_list_members(list_to_csv(screen_names),
list_to_csv(user_ids),
return self._remove_list_members(list_to_csv(screen_name),
list_to_csv(user_id),
slug, list_id, owner_id,
owner_screen_name)
......
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