Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Twitter REST API v1 is no longer active. Please migrate to API v1.1 #349

Closed
zufanka opened this issue Dec 19, 2016 · 7 comments
Closed
Labels

Comments

@zufanka
Copy link

zufanka commented Dec 19, 2016

$ twitter search \#klimaat
Twitter sent status 410 for URL: search.json using parameters: (oauth_consumer_key=xxxxxxxxxxxxxxxx&oauth_nonce=xxxxxxxxxxxxxxxx&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1482147150&oauth_token=xxxxxxxxxxxxxxxx-xxxxxxxxxxxxxxxx&oauth_version=1.0&q=%2523klimaat&oauth_signature=xxxxxxxxxxxxxxxx) details: {'errors': [{'message': 'The Twitter REST API v1 is no longer active. Please migrate to API v1.1. https://dev.twitter.com/docs/api/1.1/overview.', 'code': 64}]} Use 'twitter -h' for help.

is there something I can do?

Python 3.5.2 :: Anaconda 4.2.0 (64-bit)

@boogheta
Copy link
Collaborator

boogheta commented Dec 19, 2016

Hi,

The CLI commands are not at all up to date, hence the messages. You can propose a pull request to fix this :)
It basically lies in adapting this piece of code https://github.com/sixohsix/twitter/blob/master/twitter/cmdline.py#L469-L486 to the current search api described there https://dev.twitter.com/rest/reference/get/search/tweets

@zufanka
Copy link
Author

zufanka commented Dec 19, 2016

Hi!

Thanks .. I unfortunately can't do that.
Shame, seems very useful :)

@ghost
Copy link

ghost commented Jan 7, 2017

Hi Ms.zufanka.
I suggest just for your information,
How about you try git-clone this repository now?
So you execute setup.py in it and install the twitter.
Now, your codes must be executed successfully.

@keikoro
Copy link
Contributor

keikoro commented Jun 5, 2017

@boogheta I'm getting the same error when trying to post alt text along with images... is that related to this issue or am I doing something wrong on my end? Thanks.

@smsaladi
Copy link

Facing this issue as well

@RouxRC RouxRC added the CLI label Dec 23, 2017
@RouxRC
Copy link
Member

RouxRC commented Dec 23, 2017

@kerstin Do you do so as explained at the bottom of the readme using the _json argument ? Support for alt text along images was added with #326 and should normally work using it.

@keikoro
Copy link
Contributor

keikoro commented Dec 24, 2017

@RouxRC I don't know rn since it's been a while since I used the library to do this. Also, we talked in the issue you linked – I said I could get it to work with a local version, but not with a cloud-hosted one that relies on the last version found on PyPI. (Not sure if you meant to say it should always work now or...?)

@RouxRC RouxRC closed this as completed Nov 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants