1
- # SendinBlueApi .AttributesApi
1
+ # SibApiV3Sdk .AttributesApi
2
2
3
3
All URIs are relative to * https://api.sendinblue.com/v3 *
4
4
@@ -17,16 +17,18 @@ Creates contact attributes
17
17
18
18
### Example
19
19
``` javascript
20
- var SendinBlueApi = require (' sendin_blue_api ' );
21
- var defaultClient = SendinBlueApi .ApiClient .instance ;
20
+ var SibApiV3Sdk = require (' sib-api-v3-sdk ' );
21
+ var defaultClient = SibApiV3Sdk .ApiClient .instance ;
22
22
23
23
// Configure API key authorization: api-key
24
24
var apiKey = defaultClient .authentications [' api-key' ];
25
25
apiKey .apiKey = ' YOUR API KEY' ;
26
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
27
+ // apiKey.apiKeyPrefix = 'Token';
26
28
27
- var apiInstance = new SendinBlueApi .AttributesApi ();
29
+ var apiInstance = new SibApiV3Sdk .AttributesApi ();
28
30
29
- var createAttribute = new SendinBlueApi .CreateAttribute (); // CreateAttribute | Values to create an attribute
31
+ var createAttribute = new SibApiV3Sdk .CreateAttribute (); // CreateAttribute | Values to create an attribute
30
32
31
33
apiInstance .createAttribute (createAttribute).then (function (data ) {
32
34
console .log (' API called successfully. Returned data: ' + data);
@@ -63,14 +65,16 @@ Deletes an attribute
63
65
64
66
### Example
65
67
``` javascript
66
- var SendinBlueApi = require (' sendin_blue_api ' );
67
- var defaultClient = SendinBlueApi .ApiClient .instance ;
68
+ var SibApiV3Sdk = require (' sib-api-v3-sdk ' );
69
+ var defaultClient = SibApiV3Sdk .ApiClient .instance ;
68
70
69
71
// Configure API key authorization: api-key
70
72
var apiKey = defaultClient .authentications [' api-key' ];
71
73
apiKey .apiKey = ' YOUR API KEY' ;
74
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
75
+ // apiKey.apiKeyPrefix = 'Token';
72
76
73
- var apiInstance = new SendinBlueApi .AttributesApi ();
77
+ var apiInstance = new SibApiV3Sdk .AttributesApi ();
74
78
75
79
var attributeId = " attributeId_example" ; // String | id of the attribute
76
80
@@ -109,14 +113,16 @@ Lists all attributes
109
113
110
114
### Example
111
115
``` javascript
112
- var SendinBlueApi = require (' sendin_blue_api ' );
113
- var defaultClient = SendinBlueApi .ApiClient .instance ;
116
+ var SibApiV3Sdk = require (' sib-api-v3-sdk ' );
117
+ var defaultClient = SibApiV3Sdk .ApiClient .instance ;
114
118
115
119
// Configure API key authorization: api-key
116
120
var apiKey = defaultClient .authentications [' api-key' ];
117
121
apiKey .apiKey = ' YOUR API KEY' ;
122
+ // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
123
+ // apiKey.apiKeyPrefix = 'Token';
118
124
119
- var apiInstance = new SendinBlueApi .AttributesApi ();
125
+ var apiInstance = new SibApiV3Sdk .AttributesApi ();
120
126
apiInstance .getAttributes ().then (function (data ) {
121
127
console .log (' API called successfully. Returned data: ' + data);
122
128
}, function (error ) {
0 commit comments