geduldig / TwitterAPI

Minimal python wrapper for Twitter's REST and Streaming APIs
936 stars 263 forks source link

_init__() got an unexpected keyword argument 'api_version' #182

Closed brandnamewater closed 3 years ago

brandnamewater commented 3 years ago

I'm attempting to get users tweets by USER_ID like here: https://github.com/geduldig/TwitterAPI/blob/master/examples/v2/user_tweets.py

The error: init() got an unexpected keyword argument 'api_version'

If I don't use api_version='2' I get Endpoint "users/:PARAM/tweets" unsupported.

I reinstalled pip install TwitterAPI but I had the most recent version.

Is there another version I need to use?

geduldig commented 3 years ago

Do you know what version of TwitterAPI you have installed? When you ran pip install TwitterAPI did you include the --upgrade parameter?

You must specify api_version='2', otherwise version 1.1 is assumed. Version 1.1 doesn't have "users/:PARAM/tweets" as an endpoint.