ibanity v0.5.1 Ibanity.Xs2a.Synchronization
Synchronization API wrapper
Link to this section Summary
Link to this section Functions
Link to this function
create(request)
Creates a new synchronization resource.
Note that at this moment it only supports account
as resource type.
Returns {:ok, synchronization}
if successful, {:error, reason}
otherwise.
Example
iex> [
...> resource_type: "account",
...> resource_id: "88099509-ce43-4a49-ba98-115af962d96d",
...> subtype: "accountDetails"
...> ]
...> |> Request.attributes
...> |> Request.customer_access_token("...")
...> |> Synchronization.create
{:ok, %Ibanity.Xs2a.Synchronization{id: "f92fc927-7c39-48c1-aa4b-2820efbfed00", ...}}
Link to this function
find(request)
Retrieves a synchronization resource.
Returns {:ok, synchronization}
if successful, {:error, reason}
otherwise.
Example
iex> Request.id("0516f501-4a1c-4e37-8716-758f2bff8e37")
...> |> Request.customer_access_token("...")
...> |> Synchronization.find
{:ok, %Ibanity.Xs2a.Synchronization{id: "0516f501-4a1c-4e37-8716-758f2bff8e37"}}