Skip to content

Commit 8b40db7

Browse files
authored
Merge pull request #53 from sendinblue/feature_spec-updates-SABT-mixed
Mixed changes with new features
2 parents 5477392 + 27910d3 commit 8b40db7

Some content is hidden

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

53 files changed

+1232
-401
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,12 @@ apiKey.apiKey = "YOUR API KEY"
9393
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
9494
//apiKey.apiKeyPrefix['api-key'] = "Token"
9595

96+
// Configure API key authorization: partner-key
97+
var partnerKey = defaultClient.authentications['partner-key'];
98+
partnerKey.apiKey = "YOUR API KEY"
99+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
100+
//partnerKey.apiKeyPrefix['partner-key'] = "Token"
101+
96102
var api = new SibApiV3Sdk.AccountApi()
97103
api.getAccount().then(function(data) {
98104
console.log('API called successfully. Returned data: ' + data);
@@ -237,6 +243,7 @@ Class | Method | HTTP request | Description
237243
- [SibApiV3Sdk.CreateSmtpEmail](docs/CreateSmtpEmail.md)
238244
- [SibApiV3Sdk.CreateSmtpTemplate](docs/CreateSmtpTemplate.md)
239245
- [SibApiV3Sdk.CreateSmtpTemplateSender](docs/CreateSmtpTemplateSender.md)
246+
- [SibApiV3Sdk.CreateUpdateContactModel](docs/CreateUpdateContactModel.md)
240247
- [SibApiV3Sdk.CreateUpdateFolder](docs/CreateUpdateFolder.md)
241248
- [SibApiV3Sdk.CreateWebhook](docs/CreateWebhook.md)
242249
- [SibApiV3Sdk.CreatedProcessId](docs/CreatedProcessId.md)
@@ -371,10 +378,21 @@ Class | Method | HTTP request | Description
371378

372379
### api-key
373380

381+
The API key should be passed in the request headers as `api-key` for authentication.
382+
374383
- **Type**: API key
375384
- **API key parameter name**: api-key
376385
- **Location**: HTTP header
377386

387+
### partner-key
388+
389+
The partner key should be passed in the request headers as `partner-key` along with `api-key` pair for successful authentication of partner (Optional).
390+
391+
- **Type**: API key
392+
- **API key parameter name**: partner-key
393+
- **Location**: HTTP header
394+
395+
378396
## Support and Feedback
379397

380398
Be sure to visit the SendinBlue official [documentation website](https://sendinblue.readme.io/docs ) for additional information about our API.

docs/AccountApi.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,13 @@ var defaultClient = SibApiV3Sdk.ApiClient.instance;
2222
var apiKey = defaultClient.authentications['api-key'];
2323
apiKey.apiKey = 'YOUR API KEY';
2424
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
25-
//apiKey.apiKeyPrefix = 'Token';
25+
//apikey.apiKeyPrefix = 'Token';
26+
27+
// Configure API key authorization: partner-key
28+
var partnerKey = defaultClient.authentications['partner-key'];
29+
partnerKey.apiKey = 'YOUR API KEY';
30+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
31+
//partnerKey.apiKeyPrefix = 'Token';
2632

2733
var apiInstance = new SibApiV3Sdk.AccountApi();
2834
apiInstance.getAccount().then(function(data) {
@@ -42,7 +48,7 @@ This endpoint does not need any parameter.
4248

4349
### Authorization
4450

45-
[api-key](../README.md#api-key)
51+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
4652

4753
### HTTP request headers
4854

docs/AttributesApi.md

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ var defaultClient = SibApiV3Sdk.ApiClient.instance;
2525
var apiKey = defaultClient.authentications['api-key'];
2626
apiKey.apiKey = 'YOUR API KEY';
2727
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
28-
//apiKey.apiKeyPrefix = 'Token';
28+
//apikey.apiKeyPrefix = 'Token';
29+
30+
// Configure API key authorization: partner-key
31+
var partnerKey = defaultClient.authentications['partner-key'];
32+
partnerKey.apiKey = 'YOUR API KEY';
33+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
34+
//partnerKey.apiKeyPrefix = 'Token';
2935

3036
var apiInstance = new SibApiV3Sdk.AttributesApi();
3137

@@ -57,7 +63,7 @@ null (empty response body)
5763

5864
### Authorization
5965

60-
[api-key](../README.md#api-key)
66+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
6167

6268
### HTTP request headers
6369

@@ -79,7 +85,13 @@ var defaultClient = SibApiV3Sdk.ApiClient.instance;
7985
var apiKey = defaultClient.authentications['api-key'];
8086
apiKey.apiKey = 'YOUR API KEY';
8187
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
82-
//apiKey.apiKeyPrefix = 'Token';
88+
//apikey.apiKeyPrefix = 'Token';
89+
90+
// Configure API key authorization: partner-key
91+
var partnerKey = defaultClient.authentications['partner-key'];
92+
partnerKey.apiKey = 'YOUR API KEY';
93+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
94+
//partnerKey.apiKeyPrefix = 'Token';
8395

8496
var apiInstance = new SibApiV3Sdk.AttributesApi();
8597

@@ -108,7 +120,7 @@ null (empty response body)
108120

109121
### Authorization
110122

111-
[api-key](../README.md#api-key)
123+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
112124

113125
### HTTP request headers
114126

@@ -130,7 +142,13 @@ var defaultClient = SibApiV3Sdk.ApiClient.instance;
130142
var apiKey = defaultClient.authentications['api-key'];
131143
apiKey.apiKey = 'YOUR API KEY';
132144
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
133-
//apiKey.apiKeyPrefix = 'Token';
145+
//apikey.apiKeyPrefix = 'Token';
146+
147+
// Configure API key authorization: partner-key
148+
var partnerKey = defaultClient.authentications['partner-key'];
149+
partnerKey.apiKey = 'YOUR API KEY';
150+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
151+
//partnerKey.apiKeyPrefix = 'Token';
134152

135153
var apiInstance = new SibApiV3Sdk.AttributesApi();
136154
apiInstance.getAttributes().then(function(data) {
@@ -150,7 +168,7 @@ This endpoint does not need any parameter.
150168

151169
### Authorization
152170

153-
[api-key](../README.md#api-key)
171+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
154172

155173
### HTTP request headers
156174

@@ -172,7 +190,13 @@ var defaultClient = SibApiV3Sdk.ApiClient.instance;
172190
var apiKey = defaultClient.authentications['api-key'];
173191
apiKey.apiKey = 'YOUR API KEY';
174192
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
175-
//apiKey.apiKeyPrefix = 'Token';
193+
//apikey.apiKeyPrefix = 'Token';
194+
195+
// Configure API key authorization: partner-key
196+
var partnerKey = defaultClient.authentications['partner-key'];
197+
partnerKey.apiKey = 'YOUR API KEY';
198+
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
199+
//partnerKey.apiKeyPrefix = 'Token';
176200

177201
var apiInstance = new SibApiV3Sdk.AttributesApi();
178202

@@ -204,7 +228,7 @@ null (empty response body)
204228

205229
### Authorization
206230

207-
[api-key](../README.md#api-key)
231+
[api-key](../README.md#api-key), [partner-key](../README.md#partner-key)
208232

209233
### HTTP request headers
210234

0 commit comments

Comments
 (0)