@@ -31,15 +31,15 @@ Once you have [installed](#installation) the node module in your project, you ca
31
31
``` javascript
32
32
const SibApiV3Sdk = require (' @sendinblue/client' )
33
33
34
- let apiInstance = new SibApiV3Sdk.AccountApi ()
34
+ const apiInstance = new SibApiV3Sdk.AccountApi ()
35
35
36
36
// Configure API key authorization: apiKey
37
37
38
38
apiInstance .setApiKey (SibApiV3Sdk .AccountApiApiKeys .apiKey , ' YOUR API KEY' )
39
39
40
40
apiInstance .getAccount ().then (
41
41
function (data ) {
42
- console .log (' API called successfully. Returned data: ' + data)
42
+ console .log (' API called successfully. Returned data: ' , data . body )
43
43
},
44
44
function (error ) {
45
45
console .error (error)
@@ -50,21 +50,21 @@ apiInstance.getAccount().then(
50
50
``` javascript
51
51
const SibApiV3Sdk = require (' @sendinblue/client' )
52
52
53
- let apiInstance = new SibApiV3Sdk.ContactsApi ()
53
+ const apiInstance = new SibApiV3Sdk.ContactsApi ()
54
54
55
55
// Configure API key authorization: apiKey
56
56
57
57
apiInstance .setApiKey (SibApiV3Sdk .AccountApiApiKeys .apiKey , ' YOUR API KEY' )
58
58
59
- let limit = 10 // Number | Number of documents per page
60
- let offset = 0 // Number | Index of the first document of the page
59
+ const limit = 10 // Number | Number of documents per page
60
+ const offset = 0 // Number | Index of the first document of the page
61
61
62
62
apiInstance .getLists (limit, offset).then (
63
63
function (data ) {
64
- console .log (' API called successfully. Returned data: ' + data)
64
+ console .log (' API called successfully. Returned data: ' , data . body )
65
65
apiInstance .getAttributes ().then (
66
66
function (data ) {
67
- console .log (' API called successfully. Returned data: ' + data)
67
+ console .log (' API called successfully. Returned data: ' , data . body )
68
68
},
69
69
function (error ) {
70
70
console .error (error)
0 commit comments