extwitter icon indicating copy to clipboard operation
extwitter copied to clipboard

New API 2 paths does not work with request function

Open bfcns opened this issue 5 years ago • 4 comments

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 avatar Aug 19 '20 12:08 bfcns

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 avatar Nov 03 '20 08:11 sushant12

@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

sushant12 avatar Nov 04 '20 07:11 sushant12

Anyone have updates on using v2?

chevinbrown avatar Jun 07 '23 21:06 chevinbrown

Anyone have updates on using v2?

yes, my question exactly.

niccolox avatar Jun 16 '24 03:06 niccolox