View Source Cosmox.Helpers.ApiHelpers (Cosmox v0.1.0)
Defines a series of helper functions to incapsulate the common behaviour of calling the Cosmos API.
Link to this section Summary
Link to this section Functions
Link to this function
call(resource_type, method, resource_link, resource_path, headers \\ [], body \\ nil)
View Source@spec call( resource_type :: Cosmox.Auth.resource_type(), method :: Cosmox.RestClient.method(), resource_link :: binary(), resource_path :: binary(), headers :: Cosmox.RestClient.headers(), body :: struct() | map() | binary() | nil ) :: {:ok, Finch.Response.t()} | {:error, Cosmox.Response.ErrorMessage.t()}