CompaniesHouse.Client behaviour (CompaniesHouse v0.2.0)
View SourceDocumentation for CompaniesHouse.Client
.
Summary
Functions
Creates a new client using application configuration.
Creates a new client with default environment (:sandbox).
Creates a new client with specified environment. Raises ArgumentError if environment is invalid.
Types
Callbacks
@callback delete(path :: nonempty_binary(), client :: t()) :: CompaniesHouse.Response.t()
@callback get(path :: nonempty_binary(), client :: t()) :: CompaniesHouse.Response.t()
@callback get(nonempty_binary(), keyword(), t()) :: CompaniesHouse.Response.t()
@callback post(nonempty_binary(), keyword(), t()) :: CompaniesHouse.Response.t()
@callback put(nonempty_binary(), keyword(), t()) :: CompaniesHouse.Response.t()