1 |
|
2 | ## Installation
|
3 |
|
4 | ```
|
5 | $> npm i zuora-js
|
6 | ```
|
7 |
|
8 | ## Usage
|
9 |
|
10 | ```
|
11 | const { zuoraApi } = require('zuora-js')
|
12 | const clientId = 'your-client-id'
|
13 | const clientSecret = 'your-client-secret'
|
14 | const zuora = zuoraApi('https://rest.apisandbox.zuora.com', clientId, clientSecret)
|
15 |
|
16 | zuora.v1.action.query('select id, name from Product', 3, {"Zuora-Track-Id": "trackid"})
|
17 | .then(console.log)
|
18 | .catch(r => console.error(r.response.data))
|
19 | ``` |
\ | No newline at end of file |