Skip to content

Commit 47b2cc8

Browse files
authored
Merge pull request #28 from sendinblue/feature_AP-1447
readme update
2 parents 630808e + 478634b commit 47b2cc8

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ let apiInstance = new SibApiV3Sdk.AccountApi()
3232

3333
// Configure API key authorization: apiKey
3434

35-
let apiKey = apiInstance.authentications['apiKey'];
36-
apiKey.apiKey = "YOUR API KEY"
35+
apiInstance.setApiKey(SibApiV3Sdk.AccountApiApiKeys.apiKey, 'YOUR API KEY');
3736

3837
apiInstance.getAccount().then(function(data) {
3938
console.log('API called successfully. Returned data: ' + data);
@@ -49,8 +48,7 @@ let apiInstance = new SibApiV3Sdk.ContactsApi()
4948

5049
// Configure API key authorization: apiKey
5150

52-
let apiKey = apiInstance.authentications['apiKey'];
53-
apiKey.apiKey = "YOUR API KEY"
51+
apiInstance.setApiKey(SibApiV3Sdk.AccountApiApiKeys.apiKey, 'YOUR API KEY');
5452

5553
let limit = 10; // Number | Number of documents per page
5654
let offset = 0; // Number | Index of the first document of the page

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sib-api-v3-typescript",
3-
"version": "2.2.1",
3+
"version": "2.2.2",
44
"description": "NodeJS client for sib-api-v3-typescript",
55
"main": "api.js",
66
"types": "api.d.ts",

0 commit comments

Comments
 (0)