I am trying to generate my signature with HMAC-SHA1 as suggested by the Twitter documentation.
But I am using the abraham/twitteroauth package to make this "easier" and I leave a screenshot of what it is returning to me.
And the package really works.
Note: What I want to do is RT and FAV to other Tweets from other users. In addition to that, create replies.
Any ideas what can I do or how can I generate this signature?
I tried it with POSTMAN (the one provided by Twitter) and it works there, but it doesn't work in my code.
The data to generate the signature are:
- consumer_key
- consumer_secret
- access_token
- token_secret
I am also pointing to the endpoint: https://api.twitter.com/2/users/:id/retweets


Although I would like to know how to generate the signature without using packages, I want to share with you something that worked for me (using the package).
I wanted to use Guzzle to test how the Twitter API works through Laravel.
And since what I wanted to do was like a Tweet so I did it as follows. Using abraham/twitteroauth package.
So I separated my code a bit.
//Then I called this data from another method
Note: My user 2 has a JSON field with the information like this