我想在ruby中发送一个http post请求:
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
我该怎么做?