1
- # SendinblueApiv3 ::AttributesApi
1
+ # SibApiV3Sdk ::AttributesApi
2
2
3
3
All URIs are relative to * https://api.sendinblue.com/v3 *
4
4
@@ -17,25 +17,25 @@ Creates contact attributes
17
17
### Example
18
18
``` ruby
19
19
# load the gem
20
- require ' sendinblue-apiv3 '
20
+ require ' sib-api-v3-sdk '
21
21
# setup authorization
22
- SendinblueApiv3 .configure do |config |
22
+ SibApiV3Sdk .configure do |config |
23
23
# Configure API key authorization: api-key
24
24
config.api_key[' api-key' ] = ' YOUR API KEY'
25
25
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
26
26
# config.api_key_prefix['api-key'] = 'Bearer'
27
27
end
28
28
29
- api_instance = SendinblueApiv3 ::AttributesApi .new
29
+ api_instance = SibApiV3Sdk ::AttributesApi .new
30
30
31
- create_attribute = SendinblueApiv3 ::CreateAttribute .new # CreateAttribute | Values to create an attribute
31
+ create_attribute = SibApiV3Sdk ::CreateAttribute .new # CreateAttribute | Values to create an attribute
32
32
33
33
34
34
begin
35
35
# Creates contact attributes
36
36
result = api_instance.create_attribute(create_attribute)
37
37
p result
38
- rescue SendinblueApiv3 ::ApiError => e
38
+ rescue SibApiV3Sdk ::ApiError => e
39
39
puts " Exception when calling AttributesApi->create_attribute: #{ e } "
40
40
end
41
41
```
@@ -69,24 +69,24 @@ Deletes an attribute
69
69
### Example
70
70
``` ruby
71
71
# load the gem
72
- require ' sendinblue-apiv3 '
72
+ require ' sib-api-v3-sdk '
73
73
# setup authorization
74
- SendinblueApiv3 .configure do |config |
74
+ SibApiV3Sdk .configure do |config |
75
75
# Configure API key authorization: api-key
76
76
config.api_key[' api-key' ] = ' YOUR API KEY'
77
77
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
78
78
# config.api_key_prefix['api-key'] = 'Bearer'
79
79
end
80
80
81
- api_instance = SendinblueApiv3 ::AttributesApi .new
81
+ api_instance = SibApiV3Sdk ::AttributesApi .new
82
82
83
83
attribute_id = " attribute_id_example" # String | id of the attribute
84
84
85
85
86
86
begin
87
87
# Deletes an attribute
88
88
api_instance.delete_attribute(attribute_id)
89
- rescue SendinblueApiv3 ::ApiError => e
89
+ rescue SibApiV3Sdk ::ApiError => e
90
90
puts " Exception when calling AttributesApi->delete_attribute: #{ e } "
91
91
end
92
92
```
@@ -120,22 +120,22 @@ Lists all attributes
120
120
### Example
121
121
``` ruby
122
122
# load the gem
123
- require ' sendinblue-apiv3 '
123
+ require ' sib-api-v3-sdk '
124
124
# setup authorization
125
- SendinblueApiv3 .configure do |config |
125
+ SibApiV3Sdk .configure do |config |
126
126
# Configure API key authorization: api-key
127
127
config.api_key[' api-key' ] = ' YOUR API KEY'
128
128
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
129
129
# config.api_key_prefix['api-key'] = 'Bearer'
130
130
end
131
131
132
- api_instance = SendinblueApiv3 ::AttributesApi .new
132
+ api_instance = SibApiV3Sdk ::AttributesApi .new
133
133
134
134
begin
135
135
# Lists all attributes
136
136
result = api_instance.get_attributes
137
137
p result
138
- rescue SendinblueApiv3 ::ApiError => e
138
+ rescue SibApiV3Sdk ::ApiError => e
139
139
puts " Exception when calling AttributesApi->get_attributes: #{ e } "
140
140
end
141
141
```
0 commit comments