Ebay.Client (ElixirBay v0.1.0)

Copy Markdown

Represents an eBay connection and the configuration needed to call the SDK.

The client is intentionally stateless. Applications can attach an access token at runtime and decide how to persist it themselves.

Summary

Types

t()

@type t() :: %Ebay.Client{
  access_token: String.t() | nil,
  client_id: String.t() | nil,
  client_secret: String.t() | nil,
  environment: :production | :sandbox | nil,
  redirect_uri: String.t() | nil
}

Functions

new(attrs \\ [])

@spec new(keyword()) :: t()

with_token(client, access_token)

@spec with_token(t(), String.t()) :: t()