@spritz-finance/api-client 0.0.5 → 0.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -23,7 +23,10 @@ A Typescript library for interacting with the Spritz Finance API
|
|
|
23
23
|
```typescript
|
|
24
24
|
import { SpritzApiClient, Environment } from '@spritz-finance/api-client'
|
|
25
25
|
|
|
26
|
-
const client = SpritzApiClient.initialize(
|
|
26
|
+
const client = SpritzApiClient.initialize({
|
|
27
|
+
environment: Environment.Staging,
|
|
28
|
+
apiKey: 'YOUR_API_KEY_HERE'
|
|
29
|
+
})
|
|
27
30
|
```
|
|
28
31
|
|
|
29
32
|
## Bank Accounts
|
|
@@ -231,7 +234,7 @@ const payments = await client.payment.listForAccount(account.id)
|
|
|
231
234
|
|
|
232
235
|
// Example response
|
|
233
236
|
|
|
234
|
-
|
|
237
|
+
[
|
|
235
238
|
{
|
|
236
239
|
id: '6368e3a3ec516e9572bbd23b',
|
|
237
240
|
userId: '63d12d3B577fab6c6382136e',
|
package/package.json
CHANGED