Skip to content

Commit 8f03abe

Browse files
Merge pull request #36 from sendinblue/chore/publish-automation
Chore: publish automation
2 parents 3d65266 + 2167ca9 commit 8f03abe

File tree

811 files changed

+18917
-47586
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

811 files changed

+18917
-47586
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
1-
wwwroot/*.js
1+
dist/
22
node_modules
3-
typings
4-
dist

.openapi-generator-ignore

Lines changed: 0 additions & 23 deletions
This file was deleted.

.openapi-generator/VERSION

Lines changed: 0 additions & 1 deletion
This file was deleted.

LICENSE.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

README.md

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# APIv3-typescript-library
2+
23
SendinBlue's API v3 TypeScript-Node Library
34

45
SendinBlue's API exposes the entire SendinBlue features via a standardized programmatic interface. Please refer to the full [documentation](https://developers.sendinblue.com) to learn more.
@@ -18,52 +19,62 @@ The following recommended installation requires [npm](https://npmjs.org/). If yo
1819
Then install it via:
1920

2021
```shell
21-
npm install sib-api-v3-typescript --save
22+
npm install @sendinblue/client --save
23+
# or
24+
yarn add @sendinblue/client
2225
```
2326

2427
## Getting Started
2528

2629
Once you have [installed](#installation) the node module in your project, you can execute the following sample code JS code :
2730

2831
```javascript
29-
const SibApiV3Sdk = require('sib-api-v3-typescript');
32+
const SibApiV3Sdk = require('@sendinblue/client')
3033

31-
let apiInstance = new SibApiV3Sdk.AccountApi()
34+
const apiInstance = new SibApiV3Sdk.AccountApi()
3235

3336
// Configure API key authorization: apiKey
3437

35-
apiInstance.setApiKey(SibApiV3Sdk.AccountApiApiKeys.apiKey, 'YOUR API KEY');
38+
apiInstance.setApiKey(SibApiV3Sdk.AccountApiApiKeys.apiKey, 'YOUR API KEY')
3639

37-
apiInstance.getAccount().then(function(data) {
38-
console.log('API called successfully. Returned data: ' + data);
39-
}, function(error) {
40-
console.error(error);
41-
});
40+
apiInstance.getAccount().then(
41+
function (data) {
42+
console.log('API called successfully. Returned data: ', data.body)
43+
},
44+
function (error) {
45+
console.error(error)
46+
}
47+
)
4248
```
4349

4450
```javascript
45-
const SibApiV3Sdk = require('sib-api-v3-typescript');
51+
const SibApiV3Sdk = require('@sendinblue/client')
4652

47-
let apiInstance = new SibApiV3Sdk.ContactsApi()
53+
const apiInstance = new SibApiV3Sdk.ContactsApi()
4854

4955
// Configure API key authorization: apiKey
5056

51-
apiInstance.setApiKey(SibApiV3Sdk.AccountApiApiKeys.apiKey, 'YOUR API KEY');
52-
53-
let limit = 10; // Number | Number of documents per page
54-
let offset = 0; // Number | Index of the first document of the page
55-
56-
apiInstance.getLists(limit, offset).then(function(data) {
57-
console.log('API called successfully. Returned data: ' + data);
58-
apiInstance.getAttributes().then(function(data) {
59-
console.log('API called successfully. Returned data: ' + data);
60-
}, function(error) {
61-
console.error(error);
62-
});
63-
64-
}, function(error) {
65-
console.error(error);
66-
});
57+
apiInstance.setApiKey(SibApiV3Sdk.AccountApiApiKeys.apiKey, 'YOUR API KEY')
58+
59+
const limit = 10 // Number | Number of documents per page
60+
const offset = 0 // Number | Index of the first document of the page
61+
62+
apiInstance.getLists(limit, offset).then(
63+
function (data) {
64+
console.log('API called successfully. Returned data: ', data.body)
65+
apiInstance.getAttributes().then(
66+
function (data) {
67+
console.log('API called successfully. Returned data: ', data.body)
68+
},
69+
function (error) {
70+
console.error(error)
71+
}
72+
)
73+
},
74+
function (error) {
75+
console.error(error)
76+
}
77+
)
6778
```
6879

69-
For more examples, refer the [Endpoints Guide](https://developers.sendinblue.com/reference)
80+
For more examples, refer the [Endpoints Guide](https://developers.sendinblue.com/reference)

api.d.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

api.js

Lines changed: 0 additions & 8 deletions
This file was deleted.

api.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

api.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

api/accountApi.d.ts

Lines changed: 0 additions & 35 deletions
This file was deleted.

api/accountApi.js

Lines changed: 0 additions & 137 deletions
This file was deleted.

api/accountApi.js.map

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)