mailerlite-ruby 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.env.example +1 -0
- data/.github/workflows/main.yml +17 -0
- data/.github/workflows/publish_gem.yml +21 -0
- data/.gitignore +60 -0
- data/.rspec +1 -0
- data/.rubocop.yml +36 -0
- data/CHANGELOG.md +1 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +801 -0
- data/Rakefile +8 -0
- data/bin/console +8 -0
- data/bin/setup +8 -0
- data/fixtures/automations/fetch.yml +61 -0
- data/fixtures/automations/get.yml +68 -0
- data/fixtures/automations/get_subscriber_activity.yml +71 -0
- data/fixtures/batch/request.yml +59 -0
- data/fixtures/campaigns/activity.yml +64 -0
- data/fixtures/campaigns/create.yml +65 -0
- data/fixtures/campaigns/delete.yml +53 -0
- data/fixtures/campaigns/fetch.yml +64 -0
- data/fixtures/campaigns/get.yml +68 -0
- data/fixtures/campaigns/languages.yml +60 -0
- data/fixtures/campaigns/schedule.yml +160 -0
- data/fixtures/campaigns/update.yml +159 -0
- data/fixtures/fields/create.yml +57 -0
- data/fixtures/fields/delete.yml +53 -0
- data/fixtures/fields/get.yml +60 -0
- data/fixtures/fields/update.yml +57 -0
- data/fixtures/forms/delete.yml +53 -0
- data/fixtures/forms/fetch.yml +60 -0
- data/fixtures/forms/fetch_subscribers.yml +59 -0
- data/fixtures/forms/list.yml +62 -0
- data/fixtures/forms/update.yml +60 -0
- data/fixtures/groups/assign_subscriber.yml +58 -0
- data/fixtures/groups/create.yml +58 -0
- data/fixtures/groups/delete.yml +53 -0
- data/fixtures/groups/get.yml +63 -0
- data/fixtures/groups/get_subscribers.yml +62 -0
- data/fixtures/groups/unassign_subscriber.yml +53 -0
- data/fixtures/groups/update.yml +58 -0
- data/fixtures/segments/delete.yml +53 -0
- data/fixtures/segments/get_subscribers.yml +61 -0
- data/fixtures/segments/list.yml +60 -0
- data/fixtures/segments/update.yml +58 -0
- data/fixtures/subscribers/create.yml +57 -0
- data/fixtures/subscribers/delete.yml +51 -0
- data/fixtures/subscribers/fetch.yml +68 -0
- data/fixtures/subscribers/fetch_count.yml +55 -0
- data/fixtures/subscribers/get.yml +62 -0
- data/fixtures/timezones/list.yml +575 -0
- data/fixtures/webhooks/create.yml +58 -0
- data/fixtures/webhooks/delete.yml +53 -0
- data/fixtures/webhooks/get.yml +58 -0
- data/fixtures/webhooks/list.yml +61 -0
- data/fixtures/webhooks/update.yml +58 -0
- data/lib/mailerlite/automations/automations.rb +62 -0
- data/lib/mailerlite/batch/batch.rb +24 -0
- data/lib/mailerlite/campaigns/campaigns.rb +216 -0
- data/lib/mailerlite/client.rb +35 -0
- data/lib/mailerlite/fields/fields.rb +61 -0
- data/lib/mailerlite/forms/forms.rb +73 -0
- data/lib/mailerlite/groups/groups.rb +90 -0
- data/lib/mailerlite/segments/segments.rb +62 -0
- data/lib/mailerlite/subscribers/subscribers.rb +116 -0
- data/lib/mailerlite/timezones/timezones.rb +22 -0
- data/lib/mailerlite/version.rb +5 -0
- data/lib/mailerlite/webhooks/webhooks.rb +67 -0
- data/lib/mailerlite-ruby.rb +3 -0
- data/lib/mailerlite.rb +13 -0
- data/mailerlite-ruby.gemspec +42 -0
- data/renovate.json +5 -0
- data/spec/automations_rspec.rb +63 -0
- data/spec/batches_rspec.rb +41 -0
- data/spec/campaigns_rspec.rb +155 -0
- data/spec/fields_rspec.rb +70 -0
- data/spec/forms_rspec.rb +81 -0
- data/spec/groups_rspec.rb +97 -0
- data/spec/segments_rspec.rb +70 -0
- data/spec/spec_helper.rb +101 -0
- data/spec/subscribers_rspec.rb +84 -0
- data/spec/timezones_rspec.rb +36 -0
- data/spec/webhooks_rspec.rb +86 -0
- metadata +303 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://connect.mailerlite.com/api/campaigns/languages
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerLite-client-ruby/0.1.1
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- connect.mailerlite.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Fri, 23 Dec 2022 21:56:57 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- close
|
35
|
+
Cache-Control:
|
36
|
+
- no-cache, private
|
37
|
+
X-Locale:
|
38
|
+
- en
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '120'
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '119'
|
43
|
+
Access-Control-Allow-Origin:
|
44
|
+
- "*"
|
45
|
+
Strict-Transport-Security:
|
46
|
+
- max-age=15724800; includeSubDomains
|
47
|
+
Cf-Cache-Status:
|
48
|
+
- DYNAMIC
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 77e459a36d91de47-MCT
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"data":[{"id":"23","shortcode":"ar","iso639":"ar","name":"(arabic)\u0627\u0644\u0639\u0631\u0628\u064a\u0629","direction":"rtl"},{"id":"34","shortcode":"ca","iso639":"ca","name":"Catal\u00e0","direction":"ltr"},{"id":"21","shortcode":"cz","iso639":"cs-CZ","name":"\u010cesk\u00fd","direction":"ltr"},{"id":"35","shortcode":"ch","iso639":"ch","name":"Chinese","direction":"ltr"},{"id":"16","shortcode":"dk","iso639":"da-DK","name":"Dansk","direction":"ltr"},{"id":"5","shortcode":"de","iso639":"de-DE","name":"Deutsch","direction":"ltr"},{"id":"15","shortcode":"ee","iso639":"et-EE","name":"Eesti","direction":"ltr"},{"id":"4","shortcode":"en","iso639":"en-US","name":"English","direction":"ltr"},{"id":"8","shortcode":"es","iso639":"es-ES","name":"Espa\u00f1ol","direction":"ltr"},{"id":"9","shortcode":"mx","iso639":"es-MX","name":"Espa\u00f1ol
|
56
|
+
(Mexican)","direction":"ltr"},{"id":"17","shortcode":"fi","iso639":"fi-FI","name":"Finnish","direction":"ltr"},{"id":"6","shortcode":"fr","iso639":"fr-FR","name":"Fran\u00e7ais","direction":"ltr"},{"id":"26","shortcode":"frq","iso639":"fr-CA","name":"Fran\u00e7ais
|
57
|
+
- Qu\u00e9bec","direction":"ltr"},{"id":"36","shortcode":"he","iso639":"he","name":"(hebrew)\u05e2\u05d1\u05e8\u05d9\u05ea","direction":"rtl"},{"id":"20","shortcode":"hr","iso639":"hr-HR","name":"Hrvatski","direction":"ltr"},{"id":"7","shortcode":"it","iso639":"it-IT","name":"Italiano","direction":"ltr"},{"id":"37","shortcode":"ja","iso639":"jpn","name":"Japanese","direction":"ltr"},{"id":"14","shortcode":"lv","iso639":"lv-LV","name":"Latvie\u0161u","direction":"ltr"},{"id":"1","shortcode":"lt","iso639":"lt-LT","name":"Lietuvi\u0161kai","direction":"ltr"},{"id":"32","shortcode":"hu","iso639":"hu-HU","name":"Magyar","direction":"ltr"},{"id":"13","shortcode":"nl","iso639":"nl-NL","name":"Nederlands","direction":"ltr"},{"id":"28","shortcode":"no","iso639":"nn-NO","name":"Norsk","direction":"ltr"},{"id":"33","shortcode":"pr","iso639":"fa-IR","name":"(persian)\u0641\u0627\u0631\u0633\u06cc","direction":"rtl"},{"id":"2","shortcode":"pl","iso639":"pl-PL","name":"Polski","direction":"ltr"},{"id":"18","shortcode":"pt","iso639":"pt-PT","name":"Portugu\u00eas","direction":"ltr"},{"id":"19","shortcode":"ptbr","iso639":"pt-BR","name":"Portugu\u00eas
|
58
|
+
(Brazil)","direction":"ltr"},{"id":"27","shortcode":"ro","iso639":"ro-RO","name":"Rom\u00e2n\u0103","direction":"ltr"},{"id":"22","shortcode":"sl","iso639":"sl-SI","name":"Slovenski","direction":"ltr"},{"id":"10","shortcode":"sk","iso639":"sk-SK","name":"Slovensky","direction":"ltr"},{"id":"11","shortcode":"se","iso639":"sv-SE","name":"Svenska","direction":"ltr"},{"id":"25","shortcode":"tr","iso639":"tr-TR","name":"T\u00fcrk\u00e7e","direction":"ltr"},{"id":"24","shortcode":"gr","iso639":"el-GR","name":"\u0395\u03bb\u03bb\u03b7\u03bd\u03b9\u03ba\u03ac","direction":"ltr"},{"id":"30","shortcode":"bg","iso639":"bg-BG","name":"\u0411\u044a\u043b\u0433\u0430\u0440\u0441\u043a\u0438","direction":"ltr"},{"id":"29","shortcode":"mk","iso639":"mk-MK","name":"\u041c\u0430\u043a\u0435\u0434\u043e\u043d\u0441\u043a\u0438","direction":"ltr"},{"id":"3","shortcode":"ru","iso639":"ru-RU","name":"\u0420\u0443\u0441\u0441\u043a\u0438\u0439","direction":"ltr"},{"id":"31","shortcode":"sr","iso639":"sr-Cyrl","name":"\u0421\u0440\u043f\u0441\u043a\u0438","direction":"ltr"},{"id":"12","shortcode":"ua","iso639":"uk-UA","name":"\u0423\u043a\u0440\u0430\u0457\u043d\u0441\u044c\u043a\u0430","direction":"ltr"}]}'
|
59
|
+
recorded_at: Fri, 23 Dec 2022 21:56:56 GMT
|
60
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,160 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://connect.mailerlite.com/api/campaigns/75323121649846116/schedule
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"delivery":"scheduled","schedule":{"date":"2022-12-31","hours":"22","minutes":"00"}}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerLite-client-ruby/0.1.1
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- connect.mailerlite.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Fri, 23 Dec 2022 22:18:04 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- close
|
35
|
+
Cache-Control:
|
36
|
+
- no-cache, private
|
37
|
+
X-Locale:
|
38
|
+
- en
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '120'
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '119'
|
43
|
+
Access-Control-Allow-Origin:
|
44
|
+
- "*"
|
45
|
+
Strict-Transport-Security:
|
46
|
+
- max-age=15724800; includeSubDomains
|
47
|
+
Cf-Cache-Status:
|
48
|
+
- DYNAMIC
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 77e4788f5f71d1e8-MCT
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"data":{"id":"75323121649846116","account_id":"252151","name":"Test
|
56
|
+
Campaign 2","type":"regular","status":"ready","missing_data":[],"settings":{"track_opens":"1","use_google_analytics":"0","ecommerce_tracking":"0"},"filter":[],"filter_for_humans":[],"delivery_schedule":"scheduled","language_id":"4","created_at":"2022-12-23
|
57
|
+
22:15:26","updated_at":"2022-12-23 22:18:04","scheduled_for":"2022-12-31 22:00:00","queued_at":null,"started_at":null,"finished_at":null,"stopped_at":null,"default_email_id":"75323121669769061","emails":[{"id":"75323121669769061","account_id":"252151","emailable_id":"75323121649846116","emailable_type":"campaigns","type":"builder_rich_text","from":"sdk@mailerlite.com","from_name":"SDK
|
58
|
+
account","name":null,"subject":"Test Campaign 2","content":"<!DOCTYPE html
|
59
|
+
PUBLIC \"-\/\/W3C\/\/DTD HTML 3.2\/\/EN\">\n<html>\n <head>\n <!--{$head_top}-->\n <!--[if
|
60
|
+
gte mso 9]>\n\t\t<xml>\n\t\t\t<o:OfficeDocumentsettings>\n\t\t\t<o:AllowPNG\/>\n\t\t\t<o:PixelsPerInch>96<\/o:PixelsPerInch>\n\t\t\t<\/o:OfficeDocumentsettings>\n\t\t<\/xml>\n\t<![endif]-->\n <meta
|
61
|
+
http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\">\n <meta
|
62
|
+
name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta
|
63
|
+
http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"format-detection\"
|
64
|
+
content=\"address=no\">\n <meta name=\"format-detection\" content=\"telephone=no\">\n <meta
|
65
|
+
name=\"format-detection\" content=\"email=no\">\n <meta name=\"x-apple-disable-message-reformatting\"><!--[if
|
66
|
+
!mso]><!-->\n\n <style type=\"text\/css\">\n @import url(\"https:\/\/assets.mlcdn.com\/fonts.css?version=1671538\");\n <\/style><!--<![endif]-->\n\n <style
|
67
|
+
type=\"text\/css\">\n .ReadMsgBody { width: 100%; }\n .ExternalClass{
|
68
|
+
width: 100%; }\n .ExternalClass * { line-height: 100%; }\n .ExternalClass,
|
69
|
+
.ExternalClass p, .ExternalClass td, .ExternalClass div, .ExternalClass span,
|
70
|
+
.ExternalClass font { line-height:100%; }\n body { margin: 0; padding:
|
71
|
+
0; }\n body, table, td, p, a, li { -webkit-text-size-adjust: 100%; -ms-text-size-adjust:
|
72
|
+
100%; }\n table td { border-collapse: collapse; }\n table { border-spacing:
|
73
|
+
0; border-collapse: collapse; }\n p, a, li, td, blockquote { mso-line-height-rule:
|
74
|
+
exactly; }\n p, a, li, td, body, table, blockquote { -ms-text-size-adjust:
|
75
|
+
100%; -webkit-text-size-adjust: 100%; }\n img, a img { border: 0; outline:
|
76
|
+
none; text-decoration: none; }\n img { -ms-interpolation-mode: bicubic;
|
77
|
+
}\n * img[tabindex=\"0\"] + div { display: none !important; }\n a[href^=tel],a[href^=sms],a[href^=mailto],
|
78
|
+
a[href^=date] { color: inherit; cursor: pointer; text-decoration: none; }\n a[x-apple-data-detectors]{
|
79
|
+
color: inherit!important; text-decoration: none!important; font-size: inherit!important;
|
80
|
+
font-family: inherit!important; font-weight: inherit!important; line-height:
|
81
|
+
inherit!important; }\n #MessageViewBody a { color: inherit; text-decoration:
|
82
|
+
none; font-size: inherit; font-family: inherit; font-weight: inherit; line-height:
|
83
|
+
inherit; }\n #MessageViewBody { width: 100% !important; }\n #MessageWebViewDiv
|
84
|
+
{ width: 100% !important; }\n\n .mlMainContent ol ol {\n list-style-type:
|
85
|
+
lower-alpha;\n }\n .mlMainContent ol ol ol {\n list-style-type: lower-roman;\n }\n\n @-moz-document
|
86
|
+
url-prefix() {\n .bodyText p a, .bodyTitle p a {\n word-break: break-word;\n }\n }\n\n @media
|
87
|
+
screen {\n body {\n font-family: Arial, Helvetica, sans-serif;\n }\n *
|
88
|
+
{\n direction: ltr;\n }\n }\n\n @media only screen and (max-width:
|
89
|
+
640px) {\n .mlTemplateContainer{\n padding: 10px 10px 0 10px !important;\n }\n \/*
|
90
|
+
-- *\/\n .mlTemplateAd{\n padding: 0 10px 0 10px !important;\n }\n \/*
|
91
|
+
-- *\/\n .mlMainContent {\n width: 100%!important;\n min-width:
|
92
|
+
10%!important;\n margin: 0!important;\n float: none!important;\n }\n \/*
|
93
|
+
-- *\/\n .mlContentTable{\n width: 100%!important;\n min-width:
|
94
|
+
10%!important;\n margin: 0!important;\n float: none!important;\n }\n \/*
|
95
|
+
-- *\/\n .marginBottom{\n margin-bottom: 15px!important;\n }\n \/*
|
96
|
+
-- *\/\n .mobileHide{\n display: none!important;\n }\n \/*
|
97
|
+
-- *\/\n body{\n margin: 0px!important;\n padding: 0px!important;\n }\n \/*
|
98
|
+
-- *\/\n body, table, td, p, a, li, blockquote{\n -webkit-text-size-adjust:
|
99
|
+
none!important;\n }\n \/* -- *\/\n }\n <\/style><!-- WINDOWS
|
100
|
+
10 HACKS FOR LINK AND BG COLOR -->\n <!--[if (mso)|(mso 16)]>\n <style
|
101
|
+
type=\"text\/css\">\n .mlContentButton a { text-decoration: none; }\n <\/style>\n <![endif]-->\n\n <style
|
102
|
+
type=\"text\/css\">\n @media (max-width: 680px) {\n .ml-rte-table h1,\n .ml-rte-table
|
103
|
+
p {\n word-break: normal!important;\n }\n }\n @media only screen
|
104
|
+
and (max-width: 640px) {\n .mlContentButton a{\n display: block!important;\n width:
|
105
|
+
auto!important;\n }\n }\n <\/style><!--{$head_bottom}-->\n <title><\/title>\n <\/head>\n <body
|
106
|
+
style=\n \"background-color: #ffffff; padding: 0; margin: 0; -webkit-font-smoothing:antialiased;
|
107
|
+
-webkit-text-size-adjust:none;\">\n <!--{$body_top}-->\n <table role=\"article\"
|
108
|
+
aria-roledescription=\"email\" aria-label=\"\" align=\"center\" border=\"0\"\n cellpadding=\"0\"
|
109
|
+
cellspacing=\"0\" width=\"680\" style=\"width: 680px; min-width: 680px;\"
|
110
|
+
class=\n \"mlMainContent\" dir=\"ltr\">\n <tr>\n <td class=\"mlTemplateContainer\"
|
111
|
+
style=\"padding: 20px 20px 0px 20px;\">\n <table border=\"0\" cellpadding=\"0\"
|
112
|
+
cellspacing=\"\" width=\"100%\" class=\"mlMainContent\">\n <tr>\n <td>\n <!-- -->\n <div
|
113
|
+
class=\"ml-rte-text\">\n <p style=\n \"font-family:
|
114
|
+
Arial, Helvetica, sans-serif; color: #000000; font-size: 14px; line-height:
|
115
|
+
125%; margin: 0px 0px 20px 0px;\">\n Start writing your
|
116
|
+
text\n <\/p>\n <\/div><!-- -->\n <\/td>\n <\/tr>\n <\/table>\n <table
|
117
|
+
align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"
|
118
|
+
class=\n \"mlMainContent\" style=\n \"border-top: 1px solid
|
119
|
+
#d1d3d3; width: 100%; border-collapse: initial;\"><\/table>\n <table
|
120
|
+
border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"mlMainContent\">\n <tr>\n <td
|
121
|
+
style=\n \"font-family: Arial, Helvetica, sans-serif; font-size:
|
122
|
+
12px; line-height: 125%; color: #000000; padding-top: 15px;\"\n class=\"ml-rte-footer\"
|
123
|
+
align=\"left\">\n <p style=\n \"font-family:
|
124
|
+
Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; line-height:
|
125
|
+
125%; margin: 0 0 10px 0;\">\n <b>SDK account Devs<\/b>\n <\/p>\n <p
|
126
|
+
style=\n \"font-family: Arial, Helvetica, sans-serif; font-size:
|
127
|
+
12px; color: #000000; line-height: 125%; margin: 0 0 10px 0;\">\n \u00a0\n <\/p>\n <p
|
128
|
+
style=\n \"font-family: Arial, Helvetica, sans-serif; font-size:
|
129
|
+
12px; color: #000000; line-height: 125%; margin: 0 0 10px 0;\">\n You
|
130
|
+
received this email because you signed up on our website or made a purchase\n from
|
131
|
+
us.\n <\/p>\n <\/td>\n <\/tr>\n <tr>\n <td
|
132
|
+
id=\"mlRTEfooterUnsubscribe\" style=\"line-height: 125%;\" align=\"left\">\n <a
|
133
|
+
href=\"{$unsubscribe}\" style=\n \"color: #000000; font-family:
|
134
|
+
Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; font-style:
|
135
|
+
normal; text-decoration: underline;\">\n <span style=\n \"font-family:
|
136
|
+
Arial, Helvetica, sans-serif; color: #000000;\">Unsubscribe<\/span><\/a>\n <span
|
137
|
+
style=\n \"font-family: Arial, Helvetica, sans-serif; color:
|
138
|
+
#000000; font-size: 12px; padding: 0 5px;\">\n <span>|<\/span><\/span>
|
139
|
+
<a href=\"{$preferences}\" style=\n \"color: #000000; font-family:
|
140
|
+
Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; font-style:
|
141
|
+
normal; text-decoration: underline;\">\n <span style=\"font-family:
|
142
|
+
Arial, Helvetica, sans-serif; color: #000000;\">Update\n your
|
143
|
+
preferences<\/span><\/a>\n <\/td>\n <\/tr>\n <tr>\n <td
|
144
|
+
height=\"20\"><\/td>\n <\/tr>\n <\/table>\n <table
|
145
|
+
border=\"0\" cellpadding=\"0\" cellspacing=\"\" width=\"100%\" class=\"mlMainContent\"\n style=\"border-top:
|
146
|
+
1px solid #d1d3d3; width: 100%; border-collapse: initial;\">\n <tr
|
147
|
+
class=\"ml-hide-branding\">\n <td>\n <table border=\"0\"
|
148
|
+
cellpadding=\"0\" cellspacing=\"\">\n <tr>\n <td
|
149
|
+
style=\"padding-top:20px;\">\n <a href=\"https:\/\/www.mailerlite.com\"
|
150
|
+
target=\"_blank\"><img width=\"100\" border=\n \"0\"
|
151
|
+
alt=\"Sent by MailerLite\" src=\n \"https:\/\/assets.mlcdn.com\/ml\/logo\/sent-by-mailerlite.png\"
|
152
|
+
style=\n \"display: block;\"><\/a>\n <\/td>\n <\/tr>\n <\/table>\n <\/td>\n <\/tr>\n <tr>\n <td
|
153
|
+
height=\"20\"><\/td>\n <\/tr>\n <\/table>\n <\/td>\n <\/tr>\n <\/table><!--{$body_bottom}-->\n <\/body>\n<\/html>","plain_text":"Hello,\n\nYou
|
154
|
+
have received a newsletter from {$account}.\n\nHowever, your email software
|
155
|
+
can''t display HTML emails. You can view the newsletter by clicking here:\n\n{$url}\n\n\n\nYou''re
|
156
|
+
receiving this newsletter because you have shown interest in {$account}.\nNot
|
157
|
+
interested anymore? Click here to unsubscribe:\n{$unsubscribe}\n","screenshot_url":"https:\/\/storage.googleapis.com\/mailerlite-screenshots-prod\/screenshot\/emails\/75323121669769061\/1284x736.png","preview_url":"https:\/\/preview.mailerlite.io\/preview\/252151\/emails\/75323121669769061","created_at":"2022-12-23
|
158
|
+
22:15:26","updated_at":"2022-12-23 22:15:51","is_designed":true,"language_id":4,"language":{"id":"4","shortcode":"en","iso639":"en-US","name":"English","direction":"ltr"},"is_winner":false,"stats":{"sent":0,"opens_count":0,"unique_opens_count":0,"open_rate":{"float":0,"string":"0%"},"clicks_count":0,"unique_clicks_count":0,"click_rate":{"float":0,"string":"0%"},"unsubscribes_count":0,"unsubscribe_rate":{"float":0,"string":"0%"},"spam_count":0,"spam_rate":{"float":0,"string":"0%"},"hard_bounces_count":0,"hard_bounce_rate":{"float":0,"string":"0%"},"soft_bounces_count":0,"soft_bounce_rate":{"float":0,"string":"0%"},"forwards_count":0},"send_after":null,"track_opens":true,"uses_quiz":false}],"used_in_automations":false,"type_for_humans":"Regular","is_stopped":false,"has_winner":null,"winner_version_for_human":null,"winner_sending_time_for_humans":null,"winner_selected_manually_at":null,"can":{"update":true,"delete":true,"send":true,"copy":true,"resend":false},"uses_ecommerce":false,"uses_survey":false,"can_be_scheduled":false,"warnings":[],"is_currently_sending_out":false}}'
|
159
|
+
recorded_at: Fri, 23 Dec 2022 22:18:03 GMT
|
160
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,159 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://connect.mailerlite.com/api/campaigns/74917804992628332
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"test_campaign1","emails":[{"subject":"testsubject1","from":"sdk@mailerlite.com","from_name":"user","content":"<!DOCTYPE
|
9
|
+
html>\n <html>\n <body>\n This
|
10
|
+
is a test email\n </body>\n </html>"}]}'
|
11
|
+
headers:
|
12
|
+
Authorization:
|
13
|
+
- "<AUTH>"
|
14
|
+
User-Agent:
|
15
|
+
- MailerLite-client-ruby/0.1.1
|
16
|
+
Accept:
|
17
|
+
- application/json
|
18
|
+
Content-Type:
|
19
|
+
- application/json
|
20
|
+
Connection:
|
21
|
+
- close
|
22
|
+
Host:
|
23
|
+
- connect.mailerlite.com
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
Date:
|
30
|
+
- Mon, 19 Dec 2022 10:58:28 GMT
|
31
|
+
Content-Type:
|
32
|
+
- application/json
|
33
|
+
Transfer-Encoding:
|
34
|
+
- chunked
|
35
|
+
Connection:
|
36
|
+
- close
|
37
|
+
Cache-Control:
|
38
|
+
- no-cache, private
|
39
|
+
X-Locale:
|
40
|
+
- en
|
41
|
+
X-Ratelimit-Limit:
|
42
|
+
- '120'
|
43
|
+
X-Ratelimit-Remaining:
|
44
|
+
- '119'
|
45
|
+
Access-Control-Allow-Origin:
|
46
|
+
- "*"
|
47
|
+
Strict-Transport-Security:
|
48
|
+
- max-age=15724800; includeSubDomains
|
49
|
+
Cf-Cache-Status:
|
50
|
+
- DYNAMIC
|
51
|
+
Server:
|
52
|
+
- cloudflare
|
53
|
+
Cf-Ray:
|
54
|
+
- 77bf9f8c2d82d1f4-MCT
|
55
|
+
body:
|
56
|
+
encoding: UTF-8
|
57
|
+
string: '{"data":{"id":"74917804992628332","account_id":"252151","name":"test_campaign1","type":"regular","status":"draft","missing_data":[],"settings":[],"filter":[],"filter_for_humans":[],"delivery_schedule":null,"language_id":"4","created_at":"2022-12-19
|
58
|
+
10:53:06","updated_at":"2022-12-19 10:54:01","scheduled_for":null,"queued_at":null,"started_at":null,"finished_at":null,"stopped_at":null,"default_email_id":"74917805026182765","emails":[{"id":"74917805026182765","account_id":"252151","emailable_id":"74917804992628332","emailable_type":"campaigns","type":"builder_rich_text","from":"sdk@mailerlite.com","from_name":"user","name":null,"subject":"testsubject1","content":"<!DOCTYPE
|
59
|
+
html PUBLIC \"-\/\/W3C\/\/DTD HTML 3.2\/\/EN\">\n<html>\n <head>\n <!--{$head_top}-->\n <!--[if
|
60
|
+
gte mso 9]>\n\t\t<xml>\n\t\t\t<o:OfficeDocumentsettings>\n\t\t\t<o:AllowPNG\/>\n\t\t\t<o:PixelsPerInch>96<\/o:PixelsPerInch>\n\t\t\t<\/o:OfficeDocumentsettings>\n\t\t<\/xml>\n\t<![endif]-->\n <meta
|
61
|
+
http-equiv=\"Content-Type\" content=\"text\/html; charset=utf-8\">\n <meta
|
62
|
+
name=\"viewport\" content=\"width=device-width, initial-scale=1.0\">\n <meta
|
63
|
+
http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n <meta name=\"format-detection\"
|
64
|
+
content=\"address=no\">\n <meta name=\"format-detection\" content=\"telephone=no\">\n <meta
|
65
|
+
name=\"format-detection\" content=\"email=no\">\n <meta name=\"x-apple-disable-message-reformatting\"><!--[if
|
66
|
+
!mso]><!-->\n\n <style type=\"text\/css\">\n @import url(\"https:\/\/assets.mlcdn.com\/fonts.css?version=1670578\");\n <\/style><!--<![endif]-->\n\n <style
|
67
|
+
type=\"text\/css\">\n .ReadMsgBody { width: 100%; }\n .ExternalClass{
|
68
|
+
width: 100%; }\n .ExternalClass * { line-height: 100%; }\n .ExternalClass,
|
69
|
+
.ExternalClass p, .ExternalClass td, .ExternalClass div, .ExternalClass span,
|
70
|
+
.ExternalClass font { line-height:100%; }\n body { margin: 0; padding:
|
71
|
+
0; }\n body, table, td, p, a, li { -webkit-text-size-adjust: 100%; -ms-text-size-adjust:
|
72
|
+
100%; }\n table td { border-collapse: collapse; }\n table { border-spacing:
|
73
|
+
0; border-collapse: collapse; }\n p, a, li, td, blockquote { mso-line-height-rule:
|
74
|
+
exactly; }\n p, a, li, td, body, table, blockquote { -ms-text-size-adjust:
|
75
|
+
100%; -webkit-text-size-adjust: 100%; }\n img, a img { border: 0; outline:
|
76
|
+
none; text-decoration: none; }\n img { -ms-interpolation-mode: bicubic;
|
77
|
+
}\n * img[tabindex=\"0\"] + div { display: none !important; }\n a[href^=tel],a[href^=sms],a[href^=mailto],
|
78
|
+
a[href^=date] { color: inherit; cursor: pointer; text-decoration: none; }\n a[x-apple-data-detectors]{
|
79
|
+
color: inherit!important; text-decoration: none!important; font-size: inherit!important;
|
80
|
+
font-family: inherit!important; font-weight: inherit!important; line-height:
|
81
|
+
inherit!important; }\n #MessageViewBody a { color: inherit; text-decoration:
|
82
|
+
none; font-size: inherit; font-family: inherit; font-weight: inherit; line-height:
|
83
|
+
inherit; }\n #MessageViewBody { width: 100% !important; }\n #MessageWebViewDiv
|
84
|
+
{ width: 100% !important; }\n\n .mlMainContent ol ol {\n list-style-type:
|
85
|
+
lower-alpha;\n }\n .mlMainContent ol ol ol {\n list-style-type: lower-roman;\n }\n\n @-moz-document
|
86
|
+
url-prefix() {\n .bodyText p a, .bodyTitle p a {\n word-break: break-word;\n }\n }\n\n @media
|
87
|
+
screen {\n body {\n font-family: Arial, Helvetica, sans-serif;\n }\n *
|
88
|
+
{\n direction: ltr;\n }\n }\n\n @media only screen and (max-width:
|
89
|
+
640px) {\n .mlTemplateContainer{\n padding: 10px 10px 0 10px !important;\n }\n \/*
|
90
|
+
-- *\/\n .mlTemplateAd{\n padding: 0 10px 0 10px !important;\n }\n \/*
|
91
|
+
-- *\/\n .mlMainContent {\n width: 100%!important;\n min-width:
|
92
|
+
10%!important;\n margin: 0!important;\n float: none!important;\n }\n \/*
|
93
|
+
-- *\/\n .mlContentTable{\n width: 100%!important;\n min-width:
|
94
|
+
10%!important;\n margin: 0!important;\n float: none!important;\n }\n \/*
|
95
|
+
-- *\/\n .marginBottom{\n margin-bottom: 15px!important;\n }\n \/*
|
96
|
+
-- *\/\n .mobileHide{\n display: none!important;\n }\n \/*
|
97
|
+
-- *\/\n body{\n margin: 0px!important;\n padding: 0px!important;\n }\n \/*
|
98
|
+
-- *\/\n body, table, td, p, a, li, blockquote{\n -webkit-text-size-adjust:
|
99
|
+
none!important;\n }\n \/* -- *\/\n }\n <\/style><!-- WINDOWS
|
100
|
+
10 HACKS FOR LINK AND BG COLOR -->\n <!--[if (mso)|(mso 16)]>\n <style
|
101
|
+
type=\"text\/css\">\n .mlContentButton a { text-decoration: none; }\n <\/style>\n <![endif]-->\n\n <style
|
102
|
+
type=\"text\/css\">\n @media (max-width: 680px) {\n .ml-rte-table h1,\n .ml-rte-table
|
103
|
+
p {\n word-break: normal!important;\n }\n }\n @media only screen
|
104
|
+
and (max-width: 640px) {\n .mlContentButton a{\n display: block!important;\n width:
|
105
|
+
auto!important;\n }\n }\n <\/style><!--{$head_bottom}-->\n <title><\/title>\n <\/head>\n <body
|
106
|
+
style=\n \"background-color: #ffffff; padding: 0; margin: 0; -webkit-font-smoothing:antialiased;
|
107
|
+
-webkit-text-size-adjust:none;\">\n <!--{$body_top}-->\n <table role=\"article\"
|
108
|
+
aria-roledescription=\"email\" aria-label=\"\" align=\"center\" border=\"0\"\n cellpadding=\"0\"
|
109
|
+
cellspacing=\"0\" width=\"680\" style=\"width: 680px; min-width: 680px;\"
|
110
|
+
class=\n \"mlMainContent\" dir=\"ltr\">\n <tr>\n <td class=\"mlTemplateContainer\"
|
111
|
+
style=\"padding: 20px 20px 0px 20px;\">\n <table border=\"0\" cellpadding=\"0\"
|
112
|
+
cellspacing=\"\" width=\"100%\" class=\"mlMainContent\">\n <tr>\n <td>\n <!-- -->\n <div
|
113
|
+
class=\"ml-rte-text\">\n <p style=\n \"font-family:
|
114
|
+
Arial, Helvetica, sans-serif; color: #000000; font-size: 14px; line-height:
|
115
|
+
125%; margin: 0px 0px 20px 0px;\">\n This is a test email\n <\/p>\n <\/div><!-- -->\n <\/td>\n <\/tr>\n <\/table>\n <table
|
116
|
+
align=\"center\" border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\"
|
117
|
+
class=\n \"mlMainContent\" style=\n \"border-top: 1px solid
|
118
|
+
#d1d3d3; width: 100%; border-collapse: initial;\"><\/table>\n <table
|
119
|
+
border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" class=\"mlMainContent\">\n <tr>\n <td
|
120
|
+
style=\n \"font-family: Arial, Helvetica, sans-serif; font-size:
|
121
|
+
12px; line-height: 125%; color: #000000; padding-top: 15px;\"\n class=\"ml-rte-footer\"
|
122
|
+
align=\"left\">\n <p style=\n \"font-family:
|
123
|
+
Arial, Helvetica, sans-serif; font-size: 12px; color: #000000; line-height:
|
124
|
+
125%; margin: 0 0 10px 0;\">\n <b>SDK account Devs<\/b>\n <\/p>\n <p
|
125
|
+
style=\n \"font-family: Arial, Helvetica, sans-serif; font-size:
|
126
|
+
12px; color: #000000; line-height: 125%; margin: 0 0 10px 0;\">\n \u00a0\n <\/p>\n <p
|
127
|
+
style=\n \"font-family: Arial, Helvetica, sans-serif; font-size:
|
128
|
+
12px; color: #000000; line-height: 125%; margin: 0 0 10px 0;\">\n You
|
129
|
+
received this email because you signed up on our website or made a purchase\n from
|
130
|
+
us.\n <\/p>\n <\/td>\n <\/tr>\n <tr>\n <td
|
131
|
+
id=\"mlRTEfooterUnsubscribe\" style=\"line-height: 125%;\" align=\"left\">\n <a
|
132
|
+
href=\"{$unsubscribe}\" style=\n \"color: #000000; font-family:
|
133
|
+
Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; font-style:
|
134
|
+
normal; text-decoration: underline;\">\n <span style=\n \"font-family:
|
135
|
+
Arial, Helvetica, sans-serif; color: #000000;\">Unsubscribe<\/span><\/a>\n <span
|
136
|
+
style=\n \"font-family: Arial, Helvetica, sans-serif; color:
|
137
|
+
#000000; font-size: 12px; padding: 0 5px;\">\n <span>|<\/span><\/span>
|
138
|
+
<a href=\"{$preferences}\" style=\n \"color: #000000; font-family:
|
139
|
+
Arial, Helvetica, sans-serif; font-size: 12px; font-weight: bold; font-style:
|
140
|
+
normal; text-decoration: underline;\">\n <span style=\"font-family:
|
141
|
+
Arial, Helvetica, sans-serif; color: #000000;\">Update\n your
|
142
|
+
preferences<\/span><\/a>\n <\/td>\n <\/tr>\n <tr>\n <td
|
143
|
+
height=\"20\"><\/td>\n <\/tr>\n <\/table>\n <table
|
144
|
+
border=\"0\" cellpadding=\"0\" cellspacing=\"\" width=\"100%\" class=\"mlMainContent\"\n style=\"border-top:
|
145
|
+
1px solid #d1d3d3; width: 100%; border-collapse: initial;\">\n <tr
|
146
|
+
class=\"ml-hide-branding\">\n <td>\n <table border=\"0\"
|
147
|
+
cellpadding=\"0\" cellspacing=\"\">\n <tr>\n <td
|
148
|
+
style=\"padding-top:20px;\">\n <a href=\"https:\/\/www.mailerlite.com\"
|
149
|
+
target=\"_blank\"><img width=\"100\" border=\n \"0\"
|
150
|
+
alt=\"Sent by MailerLite\" src=\n \"https:\/\/assets.mlcdn.com\/ml\/logo\/sent-by-mailerlite.png\"
|
151
|
+
style=\n \"display: block;\"><\/a>\n <\/td>\n <\/tr>\n <\/table>\n <\/td>\n <\/tr>\n <tr>\n <td
|
152
|
+
height=\"20\"><\/td>\n <\/tr>\n <\/table>\n <\/td>\n <\/tr>\n <\/table><!--{$body_bottom}-->\n <\/body>\n<\/html>","plain_text":"Hello,\n\nYou
|
153
|
+
have received a newsletter from {$account}.\n\nHowever, your email software
|
154
|
+
can''t display HTML emails. You can view the newsletter by clicking here:\n\n{$url}\n\n\n\nYou''re
|
155
|
+
receiving this newsletter because you have shown interest in {$account}.\nNot
|
156
|
+
interested anymore? Click here to unsubscribe:\n{$unsubscribe}\n","screenshot_url":"https:\/\/storage.googleapis.com\/mailerlite-screenshots-prod\/screenshot\/emails\/74917805026182765\/1284x736.png","preview_url":"https:\/\/preview.mailerlite.io\/preview\/252151\/emails\/74917805026182765","created_at":"2022-12-19
|
157
|
+
10:53:06","updated_at":"2022-12-19 10:58:28","is_designed":true,"language_id":4,"language":{"id":"4","shortcode":"en","iso639":"en-US","name":"English","direction":"ltr"},"is_winner":false,"stats":{"sent":0,"opens_count":0,"unique_opens_count":0,"open_rate":{"float":0,"string":"0%"},"clicks_count":0,"unique_clicks_count":0,"click_rate":{"float":0,"string":"0%"},"unsubscribes_count":0,"unsubscribe_rate":{"float":0,"string":"0%"},"spam_count":0,"spam_rate":{"float":0,"string":"0%"},"hard_bounces_count":0,"hard_bounce_rate":{"float":0,"string":"0%"},"soft_bounces_count":0,"soft_bounce_rate":{"float":0,"string":"0%"},"forwards_count":0},"send_after":null,"track_opens":true,"uses_quiz":false}],"used_in_automations":false,"type_for_humans":"Regular","is_stopped":false,"has_winner":null,"winner_version_for_human":null,"winner_sending_time_for_humans":null,"winner_selected_manually_at":null,"can":{"update":true,"delete":true,"send":true,"copy":true,"resend":false},"uses_ecommerce":false,"uses_survey":false,"can_be_scheduled":true,"breadcrumbs":[{"url":"https:\/\/dashboard.mailerlite.com\/campaigns\/74917804992628332\/edit","text":"Details","active":false,"disabled":false,"upcoming":false,"state":null},{"url":"https:\/\/dashboard.mailerlite.com\/emails\/74917805026182765\/edit","text":"Content","active":false,"disabled":false,"upcoming":false,"state":null},{"url":"https:\/\/dashboard.mailerlite.com\/campaigns\/74917804992628332\/recipients\/basic","text":"Recipients","active":false,"disabled":false,"upcoming":false,"state":null},{"url":"https:\/\/dashboard.mailerlite.com\/campaigns\/74917804992628332\/review","text":"Review","active":false,"disabled":false,"upcoming":false,"state":null},{"url":"https:\/\/dashboard.mailerlite.com\/campaigns\/74917804992628332\/schedule","text":"Schedule","active":false,"disabled":false,"upcoming":false,"state":null}],"warnings":[],"recipients_count":3,"next_step":"https:\/\/dashboard.mailerlite.com\/campaigns\/74917804992628332\/review","is_currently_sending_out":false}}'
|
158
|
+
recorded_at: Mon, 19 Dec 2022 10:58:28 GMT
|
159
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://connect.mailerlite.com/api/fields
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"test_field_name","type":"text"}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerLite-client-ruby/0.1.1
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- connect.mailerlite.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Wed, 21 Dec 2022 22:06:26 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- close
|
35
|
+
Cache-Control:
|
36
|
+
- no-cache, private
|
37
|
+
X-Locale:
|
38
|
+
- en
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '120'
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '119'
|
43
|
+
Access-Control-Allow-Origin:
|
44
|
+
- "*"
|
45
|
+
Strict-Transport-Security:
|
46
|
+
- max-age=15724800; includeSubDomains
|
47
|
+
Cf-Cache-Status:
|
48
|
+
- DYNAMIC
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 77d3ecc359ccde4f-MCT
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"data":{"id":"91115","name":"test_field_name","key":"test_field_name","type":"text","is_default":false,"used_in_automations":false}}'
|
56
|
+
recorded_at: Wed, 21 Dec 2022 22:06:23 GMT
|
57
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://connect.mailerlite.com/api/fields/91115
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerLite-client-ruby/0.1.1
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- connect.mailerlite.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 204
|
25
|
+
message: No Content
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Wed, 21 Dec 2022 22:09:50 GMT
|
29
|
+
Connection:
|
30
|
+
- close
|
31
|
+
Cache-Control:
|
32
|
+
- no-cache, private
|
33
|
+
X-Locale:
|
34
|
+
- en
|
35
|
+
X-Ratelimit-Limit:
|
36
|
+
- '120'
|
37
|
+
X-Ratelimit-Remaining:
|
38
|
+
- '119'
|
39
|
+
Access-Control-Allow-Origin:
|
40
|
+
- "*"
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=15724800; includeSubDomains
|
43
|
+
Cf-Cache-Status:
|
44
|
+
- DYNAMIC
|
45
|
+
Server:
|
46
|
+
- cloudflare
|
47
|
+
Cf-Ray:
|
48
|
+
- 77d3f1bfaf84d1f8-MCT
|
49
|
+
body:
|
50
|
+
encoding: ASCII-8BIT
|
51
|
+
string: ''
|
52
|
+
recorded_at: Wed, 21 Dec 2022 22:09:48 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://connect.mailerlite.com/api/fields
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: "{}"
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerLite-client-ruby/0.1.1
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- connect.mailerlite.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Wed, 21 Dec 2022 22:01:22 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- close
|
35
|
+
Cache-Control:
|
36
|
+
- no-cache, private
|
37
|
+
X-Locale:
|
38
|
+
- en
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '120'
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '119'
|
43
|
+
Access-Control-Allow-Origin:
|
44
|
+
- "*"
|
45
|
+
Strict-Transport-Security:
|
46
|
+
- max-age=15724800; includeSubDomains
|
47
|
+
Cf-Cache-Status:
|
48
|
+
- DYNAMIC
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 77d3e5596b22d1d0-MCT
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"data":[{"id":"5","name":"City","key":"city","type":"text","is_default":true,"used_in_automations":true},{"id":"3","name":"Company","key":"company","type":"text","is_default":true,"used_in_automations":false},{"id":"4","name":"Country","key":"country","type":"text","is_default":true,"used_in_automations":false},{"id":"2","name":"Last
|
56
|
+
name","key":"last_name","type":"text","is_default":true,"used_in_automations":false},{"id":"1","name":"Name","key":"name","type":"text","is_default":true,"used_in_automations":false},{"id":"6","name":"Phone","key":"phone","type":"text","is_default":true,"used_in_automations":false},{"id":"7","name":"State","key":"state","type":"text","is_default":true,"used_in_automations":false},{"id":"8","name":"ZIP","key":"z_i_p","type":"text","is_default":true,"used_in_automations":false}],"links":{"first":"https:\/\/connect.mailerlite.com\/api\/fields?page=1","last":"https:\/\/connect.mailerlite.com\/api\/fields?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
|
57
|
+
Previous","active":false},{"url":"https:\/\/connect.mailerlite.com\/api\/fields?page=1","label":"1","active":true},{"url":null,"label":"Next
|
58
|
+
»","active":false}],"path":"https:\/\/connect.mailerlite.com\/api\/fields","per_page":100,"to":8,"total":8}}'
|
59
|
+
recorded_at: Wed, 21 Dec 2022 22:01:20 GMT
|
60
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,57 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://connect.mailerlite.com/api/fields/91115
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"name":"test_field2"}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerLite-client-ruby/0.1.1
|
14
|
+
Accept:
|
15
|
+
- application/json
|
16
|
+
Content-Type:
|
17
|
+
- application/json
|
18
|
+
Connection:
|
19
|
+
- close
|
20
|
+
Host:
|
21
|
+
- connect.mailerlite.com
|
22
|
+
response:
|
23
|
+
status:
|
24
|
+
code: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Wed, 21 Dec 2022 22:08:34 GMT
|
29
|
+
Content-Type:
|
30
|
+
- application/json
|
31
|
+
Transfer-Encoding:
|
32
|
+
- chunked
|
33
|
+
Connection:
|
34
|
+
- close
|
35
|
+
Cache-Control:
|
36
|
+
- no-cache, private
|
37
|
+
X-Locale:
|
38
|
+
- en
|
39
|
+
X-Ratelimit-Limit:
|
40
|
+
- '120'
|
41
|
+
X-Ratelimit-Remaining:
|
42
|
+
- '119'
|
43
|
+
Access-Control-Allow-Origin:
|
44
|
+
- "*"
|
45
|
+
Strict-Transport-Security:
|
46
|
+
- max-age=15724800; includeSubDomains
|
47
|
+
Cf-Cache-Status:
|
48
|
+
- DYNAMIC
|
49
|
+
Server:
|
50
|
+
- cloudflare
|
51
|
+
Cf-Ray:
|
52
|
+
- 77d3efe54855de5b-MCT
|
53
|
+
body:
|
54
|
+
encoding: UTF-8
|
55
|
+
string: '{"data":{"id":"91115","name":"test_field2","key":"test_field_name","type":"text","is_default":false,"used_in_automations":false}}'
|
56
|
+
recorded_at: Wed, 21 Dec 2022 22:08:32 GMT
|
57
|
+
recorded_with: VCR 6.1.0
|