I want to send a http post request in ruby for this :
body='{
"request": {
"branch":"master"
}}'
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token smEOuqMAAUcwLHBnFjnJkA" \
-d "$body" \
https://api.travis-ci.org/repo/shahsaurabh0605%2Fdaru/requests
How do I do it?