python - Tweepy 2.1: Add member to a list -


using tweepy2.1, trying add member (people) of twitter account list (testlist) with:

import tweepy  ...  api = tweepy.api(auth)  api.add_list_member(testlist, people) 

i following error:

tweeperror: [{'message': 'you must specify either list id or slug , owner', 'code': 112}] 

i have tried other ways of calling add_list_member function, nothing worked. also, have difficulties incomplete tweepy documentation.

anyone have solution issue?

you're specifying 'slug' or text label/name of list. work need provide account list owned by. can specify owner keyword arguments.

api.add_list_member(screen_name='@usertoadd', slug='testlist', owner_screen_name='@mytwittername')


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -