Skip to content

Commit 73dd315

Browse files
authored
Merge pull request #2 from sendinblue/feature_formatting-files
file format
2 parents b92dccc + ddf9362 commit 73dd315

File tree

6 files changed

+26
-31
lines changed

6 files changed

+26
-31
lines changed

README.md

Lines changed: 19 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
1-
# SendinBlue Api V3 Node.js Library
1+
# SendinBlue's API v3 Node.js Library
22

3-
SendinBlueApi - Node.js client for sendinblue-apiv3
4-
SendinBlue provide a RESTFul API that can be used with any languages. With this API, you will be able to : - Manage your campaigns and get the statistics - Manage your contacts - Send transactional Emails and SMS - and much more... You can download our wrappers at https://github.com/orgs/sendinblue **Possible responses** | Code | Message | | :-------------: | ------------- | | 200 | OK. Successful Request | | 201 | OK. Successful Creation | | 202 | OK. Request accepted | | 204 | OK. Successful Update/Deletion | | 400 | Error. Bad Request | | 401 | Error. Authentication Needed | | 402 | Error. Not enough credit, plan upgrade needed | | 403 | Error. Permission denied | | 404 | Error. Object does not exist | | 405 | Error. Method not allowed |
5-
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
3+
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.
4+
5+
This is the wrapper for the API. It implements all the features of the API v3. It supports callbacks.
6+
7+
SendinBlue's API matches the [OpenAPI v2 definition](https://www.openapis.org/). The specification can be downloaded herede.
8+
9+
This library is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project and is reviewed and maintained by SendinBlue:
610

711
- API version: 3.0.0
8-
- Package version: 3.0.0
12+
- Package version: 1.0.0
913
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
10-
For more information, please visit [https://account.sendinblue.com/support](https://account.sendinblue.com/support)
1114

1215
## Installation
1316

1417
### For [Node.js](https://nodejs.org/)
1518

1619
#### npm
1720

18-
To publish the library as a [npm](https://www.npmjs.com/),
19-
please follow the procedure in ["Publishing npm packages"](https://docs.npmjs.com/getting-started/publishing-npm-packages).
21+
The following recommended installation requires [npm](https://npmjs.org/). If you are unfamiliar with npm, see the [npm docs](https://npmjs.org/doc/).
2022

2123
Then install it via:
2224

@@ -26,7 +28,7 @@ npm install sendinblue-apiv3 --save
2628

2729
##### Local development
2830

29-
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
31+
To use the library locally without publishing to a remote npm registry, first install the dependencies by changing
3032
into the directory containing `package.json` (and this README). Let's call this `JAVASCRIPT_CLIENT_DIR`. Then run:
3133

3234
```shell
@@ -45,7 +47,7 @@ Finally, switch to the directory you want to use your sendinblue-apiv3 from, and
4547
npm link /path/to/<JAVASCRIPT_CLIENT_DIR>
4648
```
4749

48-
You should now be able to `require('sendinblue-apiv3')` in javascript files from the directory you ran the last
50+
You should now be able to `require('sendinblue-apiv3')` in javascript files from the directory you ran the last
4951
command above from.
5052

5153
#### git
@@ -58,19 +60,6 @@ then install it via:
5860
npm install sendinblue/APIv3-nodejs-library --save
5961
```
6062

61-
### For browser
62-
63-
The library also works in the browser environment via npm and [browserify](http://browserify.org/). After following
64-
the above steps with Node.js and installing browserify with `npm install -g browserify`,
65-
perform the following (assuming *main.js* is your entry file, that's to say your javascript file where you actually
66-
use this library):
67-
68-
```shell
69-
browserify main.js > bundle.js
70-
```
71-
72-
Then include *bundle.js* in the HTML pages.
73-
7463
### Webpack Configuration
7564

7665
Using Webpack you may encounter the following error: "Module not found: Error:
@@ -462,10 +451,16 @@ Class | Method | HTTP request | Description
462451

463452
## Documentation for Authorization
464453

465-
466454
### api-key
467455

468456
- **Type**: API key
469457
- **API key parameter name**: api-key
470458
- **Location**: HTTP header
471459

460+
## Support and Feedback
461+
462+
Be sure to visit the SendinBlue official [documentation website](https://sendinblue.readme.io/docs ) for additional information about our API.
463+
464+
If you find a bug, please post the issue on [Github](https://github.com/sendinblue/APIv3-nodejs-library/issues).
465+
466+
As always, if you need additional assistance, drop us a note [here](https://account.sendinblue.com/support).

docs/SMTPApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ apiKey.apiKey = 'YOUR API KEY';
260260
var apiInstance = new SendinBlueApi.SMTPApi();
261261

262262
var opts = {
263-
'limit': 100, // Number | Number of documents returned per page
263+
'limit': 50, // Number | Number of documents returned per page
264264
'offset': 0, // Number | Index of the first document on the page
265265
'startDate': new Date("2013-10-20"), // Date | Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD)
266266
'endDate': new Date("2013-10-20"), // Date | Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD)
@@ -370,7 +370,7 @@ var apiInstance = new SendinBlueApi.SMTPApi();
370370

371371
var opts = {
372372
'templateStatus': false, // Boolean | Filter on the status of the template. Active = true, inactive = false
373-
'limit': 500, // Number | Number of documents returned per page
373+
'limit': 50, // Number | Number of documents returned per page
374374
'offset': 0 // Number | Index of the first document in the page
375375
};
376376

docs/TransactionalSMSApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ apiKey.apiKey = 'YOUR API KEY';
2828
var apiInstance = new SendinBlueApi.TransactionalSMSApi();
2929

3030
var opts = {
31-
'limit': 100, // Number | Number of documents per page
31+
'limit': 50, // Number | Number of documents per page
3232
'startDate': new Date("2013-10-20"), // Date | Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report
3333
'endDate': new Date("2013-10-20"), // Date | Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report
3434
'offset': 0, // Number | Index of the first document of the page

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendinblue-apiv3",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Official SendinBlue provided RESTFul API V3 nodejs library",
55
"license": "ISC",
66
"main": "src/index.js",

src/api/SMTPApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@
252252
/**
253253
* Get your SMTP activity aggregated per day
254254
* @param {Object} opts Optional parameters
255-
* @param {Number} opts.limit Number of documents returned per page (default to 100)
255+
* @param {Number} opts.limit Number of documents returned per page (default to 50)
256256
* @param {Number} opts.offset Index of the first document on the page (default to 0)
257257
* @param {Date} opts.startDate Mandatory if endDate is used. Starting date of the report (YYYY-MM-DD)
258258
* @param {Date} opts.endDate Mandatory if startDate is used. Ending date of the report (YYYY-MM-DD)
@@ -350,7 +350,7 @@
350350
* Get the list of SMTP templates
351351
* @param {Object} opts Optional parameters
352352
* @param {Boolean} opts.templateStatus Filter on the status of the template. Active &#x3D; true, inactive &#x3D; false (default to false)
353-
* @param {Number} opts.limit Number of documents returned per page (default to 500)
353+
* @param {Number} opts.limit Number of documents returned per page (default to 50)
354354
* @param {Number} opts.offset Index of the first document in the page (default to 0)
355355
* @param {module:api/SMTPApi~getSmtpTemplatesCallback} callback The callback function, accepting three arguments: error, data, response
356356
* data is of type: {@link module:model/InlineResponse20012}

src/api/TransactionalSMSApi.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
/**
6060
* Get all the SMS activity (unaggregated events)
6161
* @param {Object} opts Optional parameters
62-
* @param {Number} opts.limit Number of documents per page (default to 100)
62+
* @param {Number} opts.limit Number of documents per page (default to 50)
6363
* @param {Date} opts.startDate Mandatory if endDate is used. Starting date (YYYY-MM-DD) of the report
6464
* @param {Date} opts.endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) of the report
6565
* @param {Number} opts.offset Index of the first document of the page (default to 0)

0 commit comments

Comments
 (0)