conductor-node 2.0.3 → 2.0.5
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 +8 -14
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -15,24 +15,18 @@ yarn add conductor-node
|
|
|
15
15
|
|
|
16
16
|
## Usage
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
Instantiate `Conductor` with your account's secret key, which is available from Danny.
|
|
19
19
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
To send a request to a specific QuickBooks Desktop user, you must also supply their user id.
|
|
20
|
+
The `Conductor` instance can execute _any_ read or write [QuickBooks Desktop API](https://developer.intuit.com/app/developer/qbdesktop/docs/api-reference/qbdesktop) through TypeScript and receive a fully-typed response. Each request requires the user-id of a specific QuickBooks Desktop user.
|
|
23
21
|
|
|
24
22
|
```ts
|
|
25
23
|
import Conductor from "conductor-node";
|
|
26
24
|
const conductor = new Conductor("sk_test_...");
|
|
27
25
|
|
|
28
|
-
const
|
|
29
|
-
conductor.qbd.account
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
})
|
|
35
|
-
.then((account) => {
|
|
36
|
-
console.log("Response:", account);
|
|
37
|
-
});
|
|
26
|
+
const mockQBWCUserId = "1";
|
|
27
|
+
const newAccount = await conductor.qbd.account.add(mockQBWCUserId, {
|
|
28
|
+
Name: "Test Account",
|
|
29
|
+
AccountType: "Bank",
|
|
30
|
+
OpenBalance: "100",
|
|
31
|
+
});
|
|
38
32
|
```
|