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

New API 2 paths does not work with request function #129

Open
bfcns opened this issue Aug 19, 2020 · 4 comments
Open

New API 2 paths does not work with request function #129

bfcns opened this issue Aug 19, 2020 · 4 comments

Comments

@bfcns
Copy link

bfcns commented Aug 19, 2020

ExTwitter.request(:get, "2/users/by/username/<username>")

no match of right hand side value: %{message: "The query parameter [oauth_signature_method] is not one of [username,expansions,tweet.fields,user.fields]", parameters: %{oauth_signature_method: ["HMAC-SHA1"]}}

@bfcns bfcns changed the title New API paths does not work with request function New API 2 paths does not work with request function Aug 19, 2020
@sushant12
Copy link

ExTwitter encodes the consumer key, oauth_nonce etc in the url instead of passing it in the header. I believe that v2 requires them to be passed into headers

@sushant12
Copy link

@phpcitizen i have pushed a fix in my forked repo https://github.com/sushant12/extwitter/tree/v2-support

Some tests are failing, I will look into them when I get time and if possible find a way to send a PR

@chevinbrown
Copy link

Anyone have updates on using v2?

@niccolox
Copy link

Anyone have updates on using v2?

yes, my question exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants