parroty / extwitter

Twitter client library for elixir.
MIT License
409 stars 129 forks source link

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

Open bfcns opened 4 years ago

bfcns commented 4 years ago

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"]}}

sushant12 commented 4 years ago

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 commented 4 years ago

@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 commented 1 year ago

Anyone have updates on using v2?

niccolox commented 5 months ago

Anyone have updates on using v2?

yes, my question exactly.