timber-node 0.3.0 → 0.4.1
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 +3 -9
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -10,12 +10,6 @@ Easily interact with Timber's core features like managing expenses, invoices, ve
|
|
|
10
10
|
npm install timber-node
|
|
11
11
|
```
|
|
12
12
|
|
|
13
|
-
Or install directly from the GitHub repo:
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm install git+https://github.com/Timber-UAE/timber-be-sdk-s.git
|
|
17
|
-
```
|
|
18
|
-
|
|
19
13
|
## Getting Started
|
|
20
14
|
|
|
21
15
|
```typescript
|
|
@@ -32,7 +26,7 @@ console.log(expenses.data);
|
|
|
32
26
|
|
|
33
27
|
## Authentication
|
|
34
28
|
|
|
35
|
-
Timber uses API Key-based authentication. Generate this API key from your Timber profile settings.
|
|
29
|
+
Timber uses API Key-based authentication. Generate this API key from your Timber profile developer settings.
|
|
36
30
|
|
|
37
31
|
```typescript
|
|
38
32
|
const client = createClient('your-api-key');
|
|
@@ -68,11 +62,11 @@ Each service provides common operations like `create`, `get`, `list`, `update`,
|
|
|
68
62
|
|
|
69
63
|
```typescript
|
|
70
64
|
const response = await client.expense.create({
|
|
71
|
-
type: '
|
|
65
|
+
type: 'Travel',
|
|
72
66
|
merchant: 'Uber',
|
|
73
67
|
category: 'Transportation',
|
|
74
68
|
date: '2025-06-23',
|
|
75
|
-
payment_method: '
|
|
69
|
+
payment_method: 'cash',
|
|
76
70
|
amount: 45.75,
|
|
77
71
|
});
|
|
78
72
|
console.log(response.data);
|