Rails RestClient POST request failing with “400 Bad Request”
Looking at the docs there aren't any good examples of how to make a POST request. I need to make a POST request with a auth_token parameter and get a response back: response = RestClient::Request.execute(method: :post, url: 'http://api.example.com/starthere', payload: '{"auth_token" : "my_token"}', headers: {"Content-Type" => "text/plain"} ) 400 bad request error: RestClient::BadRequest: 400 Bad Request from /Users/me/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems/rest-client-1.8.0/lib/restclient/abstract_response.rb:74:in `return!' from /Users/me/.rbenv/versions/2.2.3/lib/ruby/gems/2.2.0/gems