ExOpenSea.HTTPClient (ex_open_sea v0.0.4)

Link to this section Summary

Link to this section Types

@type api_key() :: String.t()
Link to this type

auth_response()

@type auth_response() :: {:ok, map()} | {:error, error_reason()}
Link to this type

error_reason()

@type error_reason() ::
  :timeout
  | Maptu.Extension.non_strict_error_reason()
  | HTTPoison.Error.t()
  | map()
@type params() :: map()
@type path() :: String.t()
Link to this type

query_encoder()

@type query_encoder() :: module()
@type uri() :: String.t()
@type verb() :: :get | :post | :put | :delete

Link to this section Functions

Link to this function

auth_get(path, api_key, params, query_encoder \\ QueryEncoders.WwwForm)

@spec auth_get(path(), api_key(), params(), query_encoder()) :: auth_response()
Link to this function

auth_post(path, api_key, params, query_encoder \\ QueryEncoders.WwwForm)

@spec auth_post(path(), api_key(), params(), query_encoder()) :: auth_response()
Link to this function

auth_request(verb, uri, api_key, body)

@spec auth_request(verb(), uri(), api_key(), term()) :: auth_response()
@spec domain() :: String.t()
@spec origin() :: String.t()
@spec protocol() :: String.t()
@spec url(uri()) :: String.t()