1- # SendinblueApiv3 ::AttributesApi
1+ # SibApiV3Sdk ::AttributesApi
22
33All URIs are relative to * https://api.sendinblue.com/v3 *
44
@@ -17,25 +17,25 @@ Creates contact attributes
1717### Example
1818``` ruby
1919# load the gem
20- require ' sendinblue-apiv3 '
20+ require ' sib-api-v3-sdk '
2121# setup authorization
22- SendinblueApiv3 .configure do |config |
22+ SibApiV3Sdk .configure do |config |
2323 # Configure API key authorization: api-key
2424 config.api_key[' api-key' ] = ' YOUR API KEY'
2525 # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
2626 # config.api_key_prefix['api-key'] = 'Bearer'
2727end
2828
29- api_instance = SendinblueApiv3 ::AttributesApi .new
29+ api_instance = SibApiV3Sdk ::AttributesApi .new
3030
31- create_attribute = SendinblueApiv3 ::CreateAttribute .new # CreateAttribute | Values to create an attribute
31+ create_attribute = SibApiV3Sdk ::CreateAttribute .new # CreateAttribute | Values to create an attribute
3232
3333
3434begin
3535 # Creates contact attributes
3636 result = api_instance.create_attribute(create_attribute)
3737 p result
38- rescue SendinblueApiv3 ::ApiError => e
38+ rescue SibApiV3Sdk ::ApiError => e
3939 puts " Exception when calling AttributesApi->create_attribute: #{ e } "
4040end
4141```
@@ -69,24 +69,24 @@ Deletes an attribute
6969### Example
7070``` ruby
7171# load the gem
72- require ' sendinblue-apiv3 '
72+ require ' sib-api-v3-sdk '
7373# setup authorization
74- SendinblueApiv3 .configure do |config |
74+ SibApiV3Sdk .configure do |config |
7575 # Configure API key authorization: api-key
7676 config.api_key[' api-key' ] = ' YOUR API KEY'
7777 # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
7878 # config.api_key_prefix['api-key'] = 'Bearer'
7979end
8080
81- api_instance = SendinblueApiv3 ::AttributesApi .new
81+ api_instance = SibApiV3Sdk ::AttributesApi .new
8282
8383attribute_id = " attribute_id_example" # String | id of the attribute
8484
8585
8686begin
8787 # Deletes an attribute
8888 api_instance.delete_attribute(attribute_id)
89- rescue SendinblueApiv3 ::ApiError => e
89+ rescue SibApiV3Sdk ::ApiError => e
9090 puts " Exception when calling AttributesApi->delete_attribute: #{ e } "
9191end
9292```
@@ -120,22 +120,22 @@ Lists all attributes
120120### Example
121121``` ruby
122122# load the gem
123- require ' sendinblue-apiv3 '
123+ require ' sib-api-v3-sdk '
124124# setup authorization
125- SendinblueApiv3 .configure do |config |
125+ SibApiV3Sdk .configure do |config |
126126 # Configure API key authorization: api-key
127127 config.api_key[' api-key' ] = ' YOUR API KEY'
128128 # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
129129 # config.api_key_prefix['api-key'] = 'Bearer'
130130end
131131
132- api_instance = SendinblueApiv3 ::AttributesApi .new
132+ api_instance = SibApiV3Sdk ::AttributesApi .new
133133
134134begin
135135 # Lists all attributes
136136 result = api_instance.get_attributes
137137 p result
138- rescue SendinblueApiv3 ::ApiError => e
138+ rescue SibApiV3Sdk ::ApiError => e
139139 puts " Exception when calling AttributesApi->get_attributes: #{ e } "
140140end
141141```
0 commit comments