You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/CreateEmailCampaign.md
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -9,19 +9,18 @@ Name | Type | Description | Notes
9
9
**html_content** | **String** | Mandatory if htmlUrl and templateId are empty. Body of the message (HTML) | [optional]
10
10
**html_url** | **String** | Mandatory if htmlContent and templateId are empty. Url to the message (HTML) | [optional]
11
11
**template_id** | **Integer** | Mandatory if htmlContent and htmlUrl are empty. Id of the SMTP template with status 'active'. Used to copy only its content fetched from htmlContent/htmlUrl to an email campaign for RSS feature. | [optional]
12
-
**scheduled_at** | **DateTime** | Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
12
+
**scheduled_at** | **DateTime** | Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). | [optional]
13
13
**subject** | **String** | Subject of the campaign |
14
14
**reply_to** | **String** | Email on which the campaign recipients will be able to reply to | [optional]
15
15
**to_field** | **String** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization | [optional]
**attachment_url** | **String** | Absolute url of the attachment (no local file). Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps | [optional]
18
18
**inline_image_activation** | **BOOLEAN** | Use true to embedded the images in your email. Final size of the email should be less than 4MB. Campaigns with embedded images can not be sent to more than 5000 contacts | [optional][default to false]
19
19
**mirror_active** | **BOOLEAN** | Use true to enable the mirror link | [optional]
20
-
**recurring** | **BOOLEAN** | For trigger campagins use false to make sure a contact receives the same campaign only once | [optional][default to false]
21
-
**type** | **String** | Type of the campaign |
22
20
**footer** | **String** | Footer of the email campaign | [optional]
23
21
**header** | **String** | Header of the email campaign | [optional]
24
22
**utm_campaign** | **String** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [optional]
25
23
**params** | **Object** | Pass the set of attributes to customize the type classic campaign. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. Only available if 'type' is 'classic'. It's considered only if campaign is in New Template Language format. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name'&'toField' | [optional]
24
+
**send_at_best_time** | **BOOLEAN** | Set this to true if you want to send your campaign at best time. | [optional][default to false]
Copy file name to clipboardExpand all lines: docs/UpdateEmailCampaign.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@ Name | Type | Description | Notes
8
8
**name** | **String** | Name of the campaign | [optional]
9
9
**html_content** | **String** | Body of the message (HTML version). REQUIRED if htmlUrl is empty | [optional]
10
10
**html_url** | **String** | Url which contents the body of the email message. REQUIRED if htmlContent is empty | [optional]
11
-
**scheduled_at** | **DateTime** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
11
+
**scheduled_at** | **DateTime** | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part). | [optional]
12
12
**subject** | **String** | Subject of the campaign | [optional]
13
13
**reply_to** | **String** | Email on which campaign recipients will be able to reply to | [optional]
14
14
**to_field** | **String** | To personalize the «To» Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your SendinBlue account. If input parameter 'params' used please use {{contact.FNAME}} {{contact.LNAME}} for personalization | [optional]
@@ -21,5 +21,6 @@ Name | Type | Description | Notes
21
21
**header** | **String** | Header of the email campaign | [optional]
22
22
**utm_campaign** | **String** | Customize the utm_campaign value. If this field is empty, the campaign name will be used. Only alphanumeric characters and spaces are allowed | [optional]
23
23
**params** | **Object** | Pass the set of attributes to customize the type 'classic' campaign. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. The 'params' field will get updated, only if the campaign is in New Template Language, else ignored. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name'&'toField' | [optional]
24
+
**send_at_best_time** | **BOOLEAN** | Set this to true if you want to send your campaign at best time. Note:- if true, warmup ip will be disabled. | [optional]
Copy file name to clipboardExpand all lines: lib/sib-api-v3-sdk/models/create_email_campaign.rb
+16-64Lines changed: 16 additions & 64 deletions
Original file line number
Diff line number
Diff line change
@@ -32,7 +32,7 @@ class CreateEmailCampaign
32
32
# Mandatory if htmlContent and htmlUrl are empty. Id of the SMTP template with status 'active'. Used to copy only its content fetched from htmlContent/htmlUrl to an email campaign for RSS feature.
33
33
attr_accessor:template_id
34
34
35
-
# Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result.
35
+
# Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. If sendAtBestTime is set to true, your campaign will be sent according to the date passed (ignoring the time part).
36
36
attr_accessor:scheduled_at
37
37
38
38
# Subject of the campaign
@@ -55,12 +55,6 @@ class CreateEmailCampaign
55
55
# Use true to enable the mirror link
56
56
attr_accessor:mirror_active
57
57
58
-
# For trigger campagins use false to make sure a contact receives the same campaign only once
59
-
attr_accessor:recurring
60
-
61
-
# Type of the campaign
62
-
attr_accessor:type
63
-
64
58
# Footer of the email campaign
65
59
attr_accessor:footer
66
60
@@ -73,27 +67,9 @@ class CreateEmailCampaign
73
67
# Pass the set of attributes to customize the type classic campaign. For example, {'FNAME':'Joe', 'LNAME':'Doe'}. Only available if 'type' is 'classic'. It's considered only if campaign is in New Template Language format. The New Template Language is dependent on the values of 'subject', 'htmlContent/htmlUrl', 'sender.name' & 'toField'
74
68
attr_accessor:params
75
69
76
-
classEnumAttributeValidator
77
-
attr_reader:datatype
78
-
attr_reader:allowable_values
79
-
80
-
definitialize(datatype,allowable_values)
81
-
@allowable_values=allowable_values.mapdo |value|
82
-
casedatatype.to_s
83
-
when/Integer/i
84
-
value.to_i
85
-
when/Float/i
86
-
value.to_f
87
-
else
88
-
value
89
-
end
90
-
end
91
-
end
70
+
# Set this to true if you want to send your campaign at best time.
71
+
attr_accessor:send_at_best_time
92
72
93
-
defvalid?(value)
94
-
!value || allowable_values.include?(value)
95
-
end
96
-
end
97
73
98
74
# Attribute mapping from ruby-style variable name to JSON key.
0 commit comments