File tree Expand file tree Collapse file tree 13 files changed +130
-0
lines changed Expand file tree Collapse file tree 13 files changed +130
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class AccountApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Get your account information, plan and credits details
23
33
# @param [Hash] opts the optional parameters
24
34
# @return [GetAccount]
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class AttributesApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Create contact attribute
23
33
# @param attribute_category Category of the attribute
24
34
# @param attribute_name Name of the attribute
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class ContactsApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Add existing contacts to a list
23
33
# @param list_id Id of the list
24
34
# @param contact_emails Emails addresses OR IDs of the contacts
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class EmailCampaignsApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Create an email campaign
23
33
# @param email_campaigns Values to create a campaign
24
34
# @param [Hash] opts the optional parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class FoldersApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Create a folder
23
33
# @param create_folder Name of the folder
24
34
# @param [Hash] opts the optional parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class ListsApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Add existing contacts to a list
23
33
# @param list_id Id of the list
24
34
# @param contact_emails Emails addresses OR IDs of the contacts
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class ProcessApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Return the informations for a process
23
33
# @param process_id Id of the process
24
34
# @param [Hash] opts the optional parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class ResellerApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Add Email and/or SMS credits to a specific child account
23
33
# @param child_identifier Either auth key or id of reseller's child
24
34
# @param add_credits Values to post to add credit to a specific child account
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class SendersApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Create a new sender
23
33
# @param [Hash] opts the optional parameters
24
34
# @option opts [CreateSender] :sender sender's name
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class SMSCampaignsApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Creates an SMS campaign
23
33
# @param create_sms_campaign Values to create an SMS Campaign
24
34
# @param [Hash] opts the optional parameters
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class TransactionalEmailsApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Add a new domain to the list of blocked domains
23
33
# Blocks a new domain in order to avoid messages being sent to the same
24
34
# @param block_domain
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class TransactionalSMSApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Get all your SMS activity (unaggregated events)
23
33
# @param [Hash] opts the optional parameters
24
34
# @option opts [Integer] :limit Number of documents per page (default to 50)
Original file line number Diff line number Diff line change @@ -19,6 +19,16 @@ class WebhooksApi
19
19
def initialize ( api_client = ApiClient . default )
20
20
@api_client = api_client
21
21
end
22
+
23
+ # Set custom user_agent if explicitly passed in api
24
+ # default will still remain Swagger-Codegen/#{VERSION}/ruby
25
+ def setUserAgent ( user_agent )
26
+ @user_agent = user_agent
27
+ if user_agent . is_a? ( String ) && user_agent . downcase . start_with? ( 'sendinblue_' )
28
+ @api_client . default_headers [ 'User-Agent' ] = @user_agent
29
+ end
30
+ end
31
+
22
32
# Create a webhook
23
33
# @param create_webhook Values to create a webhook
24
34
# @param [Hash] opts the optional parameters
You can’t perform that action at this time.
0 commit comments