View Source Circlex.Api.Management (Circlex v0.1.5)

API Client to the Management API.

Reference: https://developers.circle.com/reference/getconfig

Link to this section Summary

Functions

Retrieves general configuration information.

Link to this section Functions

Retrieves general configuration information.

Reference: https://developers.circle.com/reference/getconfig

examples

Examples

iex> host = Circlex.Test.start_server()
iex> Circlex.Api.Management.get_config(host: host)
{:ok, %{payments: %{master_wallet_id: "1000216185"}}}

iex> host = Circlex.Test.start_server(no_load: true)
iex> Circlex.Api.Management.get_config(host: host)
{:error, %{error: "System Configuration Issue: no main \"merchant\" wallet specified"}}