Dnsimple.Client (dnsimple v3.1.1) View Source
Link to this section Summary
Functions
Issues a DELETE request to the given url.
Returns the representation of an empty body in a request.
Issues a GET request to the given url.
Issues a PATCH request to the given url.
Issues a POST request to the given url.
Issues a PUT request to the given url.
Prepends the correct API version to path.
Link to this section Types
Specs
Specs
Specs
Link to this section Functions
Specs
delete(t(), binary(), Keyword.t()) :: {:ok | :error, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()}
Issues a DELETE request to the given url.
Specs
empty_body() :: nil
Returns the representation of an empty body in a request.
Examples
iex> Dnsimple.Client.empty_body() nil
Specs
get(t(), binary(), Keyword.t()) :: {:ok | :error, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()}
Issues a GET request to the given url.
Specs
patch(t(), binary(), body(), Keyword.t()) :: {:ok | :error, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()}
Issues a PATCH request to the given url.
Specs
post(t(), binary(), body(), Keyword.t()) :: {:ok | :error, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()}
Issues a POST request to the given url.
Specs
put(t(), binary(), body(), Keyword.t()) :: {:ok | :error, HTTPoison.Response.t() | HTTPoison.AsyncResponse.t()}
Issues a PUT request to the given url.
Specs
Prepends the correct API version to path.
Examples
iex> Dnsimple.Client.versioned "/whoami"
"/v2/whoami"