Want to write api of twitter to post tweet without any gem/library means with curl command

I am new to ruby want to create an api which post tweet to twitter
help of any gem include as we did on command line by running below code:

curl --request ‘POST’ ‘https://api.twitter.com/1.1/statuses/update.json
–data ‘status=Maybe+he%27ll+finally+find+his+keys.+%23peterfalk’
‘Authorization: OAuth oauth_consumer_key=“i6baQCTt1sCXAo8YWcKhuly9Z”,
oauth_signature_method=“HMAC-SHA1”, oauth_timestamp=“1461568353”,
oauth_version=“1.0”’ --verbose

But in controller how can we use this command so it get ouath_signature
post the tweet.

As In php it did with curl want same way ion ruby.

Please help me to get out of it

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs