Ebay.Auth (ElixirBay v0.1.1)

Copy Markdown

Helpers for building OAuth authorization URLs and exchanging or refreshing tokens.

These helpers intentionally return plain data structures rather than persisting any state, which keeps the SDK stateless and easy to integrate in Phoenix, GenServer, or background job flows.

Summary

Functions

authorization_url(client, scopes)

@spec authorization_url(Ebay.Client.t(), [String.t()]) :: String.t()

exchange_code(client, code)

@spec exchange_code(Ebay.Client.t(), String.t()) :: {:ok, Ebay.Auth.Token.t()}

refresh(client, refresh_token)

@spec refresh(Ebay.Client.t(), String.t()) :: {:ok, Ebay.Auth.Token.t()}