Method: TestRail::APIClient#send_post
- Defined in:
- lib/testrail.rb
#send_post(uri, data) ⇒ Object
Send POST
Issues a POST request (write) against the API and returns the result (as Ruby hash).
Arguments:
uri The API method to call including parameters
(e.g. add_case/1)
data The data to submit as part of the request (as
Ruby hash, strings must be UTF-8 encoded)
219 220 221 |
# File 'lib/testrail.rb', line 219 def send_post(uri, data) _send_request('POST', uri, data) end |