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

Link to this function

delete(credential, path)

View Source
@spec delete(credential(), String.t()) :: {:ok, Tesla.Env.t()} | {:error, any()}
Link to this function

get(credential, path, params \\ %{})

View Source
@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()}
Link to this function

patch(credential, path, params \\ %{})

View Source
@spec patch(credential(), String.t(), map()) :: {:ok, Tesla.Env.t()} | {:error, any()}
Link to this function

post(credential, path, params \\ %{})

View Source
@spec post(credential(), String.t(), map()) :: {:ok, Tesla.Env.t()} | {:error, any()}
Link to this function

put(credential, path, params \\ %{})

View Source
@spec put(credential(), String.t(), map()) :: {:ok, Tesla.Env.t()} | {:error, any()}