@bunnyapp/api-client 1.0.7 → 1.0.9
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 -5
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -7,7 +7,7 @@ A node sdk for Bunny CRM
|
|
|
7
7
|
Install the latest package.
|
|
8
8
|
|
|
9
9
|
```sh
|
|
10
|
-
npm install
|
|
10
|
+
npm install @bunnyapp/api-client --save
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
Create a Bunny api client using either a valid access token or client credentials.
|
|
@@ -18,8 +18,8 @@ The benefit of providing an accessToken is the request will be faster as an acce
|
|
|
18
18
|
downside of this approach is that if the token expires then your requests will start to fail.
|
|
19
19
|
|
|
20
20
|
```js
|
|
21
|
-
const
|
|
22
|
-
const bunny = new
|
|
21
|
+
const BunnyClient = require("@bunnyapp/api-client");
|
|
22
|
+
const bunny = new BunnyClient({
|
|
23
23
|
baseUrl: "https://<subdomain>.bunny.com",
|
|
24
24
|
accessToken: "<bunny-access-token>",
|
|
25
25
|
});
|
|
@@ -30,8 +30,8 @@ const bunny = new Bunny({
|
|
|
30
30
|
Alternately you can provide clientId, clientSecret, & scope. In this case the client will generate an access token and if the token expires it will generate another one.
|
|
31
31
|
|
|
32
32
|
```js
|
|
33
|
-
const
|
|
34
|
-
const bunny = new
|
|
33
|
+
const BunnyClient = require("@bunnyapp/api-client");
|
|
34
|
+
const bunny = new BunnyClient({
|
|
35
35
|
baseUrl: "https://<subdomain>.bunny.com",
|
|
36
36
|
clientId: "<bunny-client-id>",
|
|
37
37
|
clientSecret: "<bunny-client-secret>",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bunnyapp/api-client",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.9",
|
|
4
4
|
"description": "Node.js client for Bunny CRM",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"directories": {
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"keywords": [
|
|
17
17
|
"crm",
|
|
18
18
|
"billing",
|
|
19
|
+
"cpq",
|
|
19
20
|
"saas",
|
|
20
21
|
"subscriptions"
|
|
21
22
|
],
|