Closed ryuujo1573 closed 2 years ago
auth info is passed through params
The support of API v2 is in current development, the way it works is not definitive yet but you can already use it by cloning the repo, switching to the branch api_v2 and run python setup.py install
The README is a work in progress and is currently a mess but you should find examples to do what you want below there https://github.com/python-twitter-tools/twitter/tree/api_v2#querying-the-api
非常感谢!
Hi, I ran into v2, and the package seemed not evaluated for api v2 yet. I was wondering if there's way to use OAuth 1.0a with api v2? My solution is not working...
excuse the mess Orz
I copied the
oauth.py
and changed the order of performs in
api.py
: (aroundline 300
)then preyer for result: I got the header 'OAuth include_entities=true, oauth_consumer_key=Bhlb7DP1F69fgqxLrVAlB36QS, oauth_nonce=13575949106932897288, oauth_signature_method=HMAC-SHA1, oauth_timestamp=1637390069, oauth_token=1330472103414534146-Wfhxwik0byG2lgeOmyB1l6UYPzKTtF, oauth_version=1.0, oauth_signature=ebHLt38Yq4QIi/Rpikz7BKnsWV8%3D' and I was told
Unauthorized
which might indicate that the procedure of signature or sth. is wrongWhat should I do? Thank you for your reading and sharing!