akahu - v1.15.3 / ConnectionsResource
Utilities to view connections that are available to your app, and refresh accounts under a given connection.
-
BaseResource
↳
ConnectionsResource
▸ list(): Promise
<Connection
[]>
List all connections that the app has access to.
https://developers.akahu.nz/reference/get_connections
Promise
<Connection
[]>
▸ get(connectionId
): Promise
<Connection
>
Get an individual connection detail.
https://developers.akahu.nz/reference/get_connections-id
Name | Type |
---|---|
connectionId |
string |
Promise
<Connection
>
▸ refresh(token
, connectionId
): Promise
<void
>
Refresh all accounts that are made using the given connection and have been
connected by the user associated with the specified token
.
https://developers.akahu.nz/reference/post_refresh-id
Name | Type |
---|---|
token |
string |
connectionId |
string |
Promise
<void
>