Xero.Config (Xero v1.0.0)

Copy Markdown View Source

NimbleOptions-validated configuration for the Xero client.

Configuration Keys

KeyTypeDefaultDescription
client_idstringrequiredXero app Client ID
client_secretstringrequiredXero app Client Secret
redirect_uristringrequiredOAuth callback URL
scopeslist(string)[openid, ...]Requested OAuth scopes
base_urlstringhttps://api.xero.comAPI base URL
identity_urlstringhttps://identity.xero.comIdentity URL
timeoutinteger30_000Request timeout (ms)
connect_timeoutinteger10_000Connection timeout (ms)
pool_sizeinteger10Finch pool size
pool_countinteger4Number of Finch pools
max_retriesinteger3Retry attempts on failure
retry_base_delayinteger1_000Base backoff delay (ms)
retry_max_delayinteger30_000Max backoff delay (ms)
log_levelatom:infoLog level

Summary

Functions

get()

@spec get() :: keyword()

get(key)

@spec get(atom()) :: term()

schema()

@spec schema() :: NimbleOptions.t()