farmbot v6.0.0 Farmbot.HTTP View Source
Farmbot HTTP adapter for accessing the world and farmbot web api easily.
Link to this section Summary
Functions
HTTP delete request
Same as delete/5 but raises Farmbot.HTTP.Error exception
HTTP get request
Same as get/5 but raises Farmbot.HTTP.Error exception
HTTP patch request
Same as patch/5 but raises Farmbot.HTTP.Error exception
HTTP post request
Same as post/5 but raises Farmbot.HTTP.Error exception
HTTP put request
Same as put/5 but raises Farmbot.HTTP.Error exception
Make an http request. Will not raise.
method- can be any http verburl- fully formatted url or an api slug.body- body can be any of:- binary
{:multipart, [{binary_key, binary_value}]}
- headers -
[{binary_key, binary_value}] opts - Keyword opts to be passed to adapter (hackney/httpoison)
file- option to be passed if the output should be saved to a file
Same as request/6 - but raises a Farmbot.HTTP.Error exception
Link to this section Functions
HTTP delete request.
Same as delete/5 but raises Farmbot.HTTP.Error exception.
HTTP get request.
Same as get/5 but raises Farmbot.HTTP.Error exception.
HTTP patch request.
Same as patch/5 but raises Farmbot.HTTP.Error exception.
HTTP post request.
Same as post/5 but raises Farmbot.HTTP.Error exception.
HTTP put request.
Same as put/5 but raises Farmbot.HTTP.Error exception.
Make an http request. Will not raise.
method- can be any http verburl- fully formatted url or an api slug.body- body can be any of:- binary
{:multipart, [{binary_key, binary_value}]}
- headers -
[{binary_key, binary_value}] opts - Keyword opts to be passed to adapter (hackney/httpoison)
file- option to be passed if the output should be saved to a file.
Same as request/6 - but raises a Farmbot.HTTP.Error exception.