ex_uptimerobot v0.4.0 ExUptimerobot.Request

Sending HTTP requests to the Uptime Robot API.

Generally you will not need to interact with this module directly. Instead, you might want to use the different modules for making API calls, which then refer to this module for their request needs.

Summary

Functions

Build a request body based on the passed keyword list of params

Send a POST request with a given API action and params

Check the response from the Uptime Robot service to determine whether the API response status returns a success or a failure

Functions

build_body(params)

Build a request body based on the passed keyword list of params.

post(action, params \\ [format: "json"])

Send a POST request with a given API action and params.

If no params are provided, only a default parameter format=json will be used.

response_status?(body)
response_status?(any) :: tuple

Check the response from the Uptime Robot service to determine whether the API response status returns a success or a failure.