api works on some calls but not on api.GetLists ...

52 views
Skip to first unread message

Evan Smith

unread,
May 22, 2017, 11:56:48 AM5/22/17
to python-twitter
Hello,

I assume I configured something wrong.

The api.GetUser works fine, as doe the api.GetFollowersPaged

However, api.GetList is not working

I tried the "test" code, and it also fails, thus I figure a configuration issue (the pathname is correct, file exists)

    p = "/Users/anon/Desktop/ra/ra-feeds/ra-twitter/python-twitter/testdata/get_lists.json"
    with open(p) as f:
        resp_data = [f.read()]
    responses.add(GET, DEFAULT_URL, body=resp_data)
    resp = api.GetLists()
    print(resp)
    exit(0)

I get a print out of
 []

where I assume I should get a list ...

I am on ubuntu
I did a
pip install python-twitter
Using python 2.7

thanks!!!


Reply all
Reply to author
Forward
0 new messages