View Source Meliex.Client (Meliex v1.0.0)
Link to this section Summary
Link to this section Types
@type credential() :: %{
access_token: :string,
refresh_token: :string,
expires_at: :integer
}
Link to this section Functions
@spec delete(credential(), String.t()) :: {:ok, Tesla.Env.t()} | {:error, any()}
@spec get(credential(), String.t(), map()) :: {:ok, Tesla.Env.t()} | {:error, any()}
@spec get( atom() | %{:expires_at => number(), optional(any()) => any()}, binary(), any() ) :: {:error, any()} | {:ok, Tesla.Env.t()}
@spec patch(credential(), String.t(), map()) :: {:ok, Tesla.Env.t()} | {:error, any()}
@spec post(credential(), String.t(), map()) :: {:ok, Tesla.Env.t()} | {:error, any()}
@spec put(credential(), String.t(), map()) :: {:ok, Tesla.Env.t()} | {:error, any()}