mailersend-ruby 3.0.1 → 3.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.envrc +2 -0
- data/.github/workflows/main.yml +1 -1
- data/.github/workflows/publish_gem.yml +1 -1
- data/.gitignore +2 -1
- data/CHANGELOG.md +12 -0
- data/README.md +534 -0
- data/fixtures/dmarc_monitoring/add_favorite.yml +31 -0
- data/fixtures/dmarc_monitoring/create.yml +34 -0
- data/fixtures/dmarc_monitoring/delete.yml +31 -0
- data/fixtures/dmarc_monitoring/list.yml +32 -0
- data/fixtures/dmarc_monitoring/remove_favorite.yml +31 -0
- data/fixtures/dmarc_monitoring/report.yml +31 -0
- data/fixtures/dmarc_monitoring/report_by_ip.yml +31 -0
- data/fixtures/dmarc_monitoring/report_sources.yml +31 -0
- data/fixtures/dmarc_monitoring/update.yml +34 -0
- data/fixtures/email/email_send_template_language.yml +56 -0
- data/fixtures/emails/emails_list_emails.yml +35 -0
- data/fixtures/emails/emails_list_emails_empty_page.yml +35 -0
- data/fixtures/emails/emails_single_email.yml +35 -0
- data/fixtures/whatsapp/whatsapp_send.yml +47 -0
- data/fixtures/whatsapp/whatsapp_send_multiple_recipients.yml +47 -0
- data/fixtures/whatsapp/whatsapp_send_personalization.yml +47 -0
- data/fixtures/whatsapp_activities/whatsapp_activities_list.yml +43 -0
- data/fixtures/whatsapp_inbound_messages/whatsapp_inbound_messages_get.yml +43 -0
- data/fixtures/whatsapp_inbound_messages/whatsapp_inbound_messages_list.yml +43 -0
- data/fixtures/whatsapp_items/whatsapp_items_get.yml +43 -0
- data/fixtures/whatsapp_items/whatsapp_items_list.yml +43 -0
- data/fixtures/whatsapp_messages/whatsapp_messages_get.yml +43 -0
- data/fixtures/whatsapp_messages/whatsapp_messages_list.yml +43 -0
- data/fixtures/whatsapp_recipient/whatsapp_recipient_get.yml +43 -0
- data/fixtures/whatsapp_recipient/whatsapp_recipient_list.yml +43 -0
- data/fixtures/whatsapp_templates/whatsapp_templates_get.yml +43 -0
- data/fixtures/whatsapp_templates/whatsapp_templates_list.yml +43 -0
- data/flake.lock +27 -0
- data/flake.nix +25 -0
- data/lefthook.yml +14 -0
- data/lib/mailersend/dmarc_monitoring/dmarc_monitoring.rb +59 -0
- data/lib/mailersend/email/email.rb +10 -0
- data/lib/mailersend/emails/emails.rb +44 -0
- data/lib/mailersend/version.rb +1 -1
- data/lib/mailersend/whatsapp/whatsapp.rb +47 -0
- data/lib/mailersend/whatsapp_activities/whatsapp_activities.rb +45 -0
- data/lib/mailersend/whatsapp_inbound_messages/whatsapp_inbound_messages.rb +47 -0
- data/lib/mailersend/whatsapp_items/whatsapp_items.rb +57 -0
- data/lib/mailersend/whatsapp_messages/whatsapp_messages.rb +47 -0
- data/lib/mailersend/whatsapp_recipient/whatsapp_recipient.rb +38 -0
- data/lib/mailersend/whatsapp_templates/whatsapp_templates.rb +44 -0
- data/lib/mailersend.rb +9 -0
- data/spec/dmarc_monitoring_rspec.rb +100 -0
- data/spec/email_rspec.rb +15 -0
- data/spec/emails_rspec.rb +175 -0
- data/spec/whatsapp_activities_rspec.rb +38 -0
- data/spec/whatsapp_inbound_messages_rspec.rb +49 -0
- data/spec/whatsapp_items_rspec.rb +52 -0
- data/spec/whatsapp_messages_rspec.rb +50 -0
- data/spec/whatsapp_recipient_rspec.rb +40 -0
- data/spec/whatsapp_rspec.rb +65 -0
- data/spec/whatsapp_templates_rspec.rb +48 -0
- metadata +52 -3
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.mailersend.com/v1/dmarc-monitoring
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"domain_id":"example_domain_id"}'
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.0.1
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/json; charset=utf-8
|
|
20
|
+
Host:
|
|
21
|
+
- api.mailersend.com
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 201
|
|
25
|
+
message: Created
|
|
26
|
+
headers:
|
|
27
|
+
Content-Type:
|
|
28
|
+
- application/json
|
|
29
|
+
body:
|
|
30
|
+
encoding: UTF-8
|
|
31
|
+
string: '{"data":{"id":"example_monitor_id","dmarc_record":"v=DMARC1; p=none;","wanted_dmarc_record":null,"dmarc_record_valid":false,"spf_record":"v=spf1
|
|
32
|
+
include:spf.example.com ~all","spf_record_valid":true,"domain":{"id":"example_domain_id","name":"example.com"},"created_at":"2024-01-01T00:00:00.000000Z","updated_at":"2024-01-01T00:00:00.000000Z"}}'
|
|
33
|
+
recorded_at: Mon, 01 Jan 2024 00:00:00 GMT
|
|
34
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: delete
|
|
5
|
+
uri: https://api.mailersend.com/v1/dmarc-monitoring/example_monitor_id
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.0.1
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 204
|
|
23
|
+
message: No Content
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
body:
|
|
28
|
+
encoding: UTF-8
|
|
29
|
+
string: ''
|
|
30
|
+
recorded_at: Mon, 01 Jan 2024 00:00:00 GMT
|
|
31
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.mailersend.com/v1/dmarc-monitoring
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.0.1
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
body:
|
|
28
|
+
encoding: UTF-8
|
|
29
|
+
string: '{"data":[{"id":"example_monitor_id","dmarc_record":"v=DMARC1; p=none;","wanted_dmarc_record":"v=DMARC1;
|
|
30
|
+
p=reject;","dmarc_record_valid":false,"spf_record":"v=spf1 include:spf.example.com ~all","spf_record_valid":true,"domain":{"id":"example_domain_id","name":"example.com"},"created_at":"2024-01-01T00:00:00.000000Z","updated_at":"2024-01-01T00:00:00.000000Z"}]}'
|
|
31
|
+
recorded_at: Mon, 01 Jan 2024 00:00:00 GMT
|
|
32
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: delete
|
|
5
|
+
uri: https://api.mailersend.com/v1/dmarc-monitoring/example_monitor_id/favorite/1.2.3.4
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.0.1
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
body:
|
|
28
|
+
encoding: UTF-8
|
|
29
|
+
string: ''
|
|
30
|
+
recorded_at: Mon, 01 Jan 2024 00:00:00 GMT
|
|
31
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.mailersend.com/v1/dmarc-monitoring/example_monitor_id/report
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.0.1
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
body:
|
|
28
|
+
encoding: UTF-8
|
|
29
|
+
string: '{"data":[{"ip":"1.2.3.4","dmarc_pass_rate":95,"spf_pass_rate":98,"dkim_pass_rate":97,"message_count":1000,"is_favorite":false,"country":"US"}]}'
|
|
30
|
+
recorded_at: Mon, 01 Jan 2024 00:00:00 GMT
|
|
31
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.mailersend.com/v1/dmarc-monitoring/example_monitor_id/report/1.2.3.4
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.0.1
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
body:
|
|
28
|
+
encoding: UTF-8
|
|
29
|
+
string: '{"data":[{"source_name":"google.com","message_count":500,"dmarc_pass":490,"spf_pass":495,"dkim_pass":492,"policy_applied":"none","disposition":"none","date":"2024-01-01"}]}'
|
|
30
|
+
recorded_at: Mon, 01 Jan 2024 00:00:00 GMT
|
|
31
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.mailersend.com/v1/dmarc-monitoring/example_monitor_id/report-sources
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.0.1
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
body:
|
|
28
|
+
encoding: UTF-8
|
|
29
|
+
string: '{"data":[{"name":"google.com","report_count":12},{"name":"yahoo.com","report_count":5}]}'
|
|
30
|
+
recorded_at: Mon, 01 Jan 2024 00:00:00 GMT
|
|
31
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: put
|
|
5
|
+
uri: https://api.mailersend.com/v1/dmarc-monitoring/example_monitor_id
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"wanted_dmarc_record":"v=DMARC1; p=reject;"}'
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.0.1
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/json; charset=utf-8
|
|
20
|
+
Host:
|
|
21
|
+
- api.mailersend.com
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 200
|
|
25
|
+
message: OK
|
|
26
|
+
headers:
|
|
27
|
+
Content-Type:
|
|
28
|
+
- application/json
|
|
29
|
+
body:
|
|
30
|
+
encoding: UTF-8
|
|
31
|
+
string: '{"data":{"id":"example_monitor_id","dmarc_record":"v=DMARC1; p=none;","wanted_dmarc_record":"v=DMARC1;
|
|
32
|
+
p=reject;","dmarc_record_valid":false,"spf_record":"v=spf1 include:spf.example.com ~all","spf_record_valid":true,"domain":{"id":"example_domain_id","name":"example.com"},"created_at":"2024-01-01T00:00:00.000000Z","updated_at":"2024-01-02T00:00:00.000000Z"}}'
|
|
33
|
+
recorded_at: Mon, 01 Jan 2024 00:00:00 GMT
|
|
34
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.mailersend.com/v1/email
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"from":{"email":"sender@test-sdk.com","name":"Sender"},"to":[{"email":"test@mailerlite.com","name":"Test"}],"subject":"Test
|
|
9
|
+
Email","template_id":"123abc","language":"de"}'
|
|
10
|
+
headers:
|
|
11
|
+
Authorization:
|
|
12
|
+
- "<AUTH>"
|
|
13
|
+
User-Agent:
|
|
14
|
+
- MailerSend-client-ruby/2.0.3
|
|
15
|
+
Accept:
|
|
16
|
+
- application/json
|
|
17
|
+
Connection:
|
|
18
|
+
- close
|
|
19
|
+
Content-Type:
|
|
20
|
+
- application/json; charset=utf-8
|
|
21
|
+
Host:
|
|
22
|
+
- api.mailersend.com
|
|
23
|
+
response:
|
|
24
|
+
status:
|
|
25
|
+
code: 202
|
|
26
|
+
message: Accepted
|
|
27
|
+
headers:
|
|
28
|
+
Date:
|
|
29
|
+
- Tue, 17 Dec 2024 14:04:19 GMT
|
|
30
|
+
Content-Type:
|
|
31
|
+
- text/html; charset=UTF-8
|
|
32
|
+
Transfer-Encoding:
|
|
33
|
+
- chunked
|
|
34
|
+
Connection:
|
|
35
|
+
- close
|
|
36
|
+
X-Message-Id:
|
|
37
|
+
- 676184e34aed90153c5efa6f
|
|
38
|
+
Cache-Control:
|
|
39
|
+
- no-cache, private
|
|
40
|
+
X-Apiquota-Remaining:
|
|
41
|
+
- "-1"
|
|
42
|
+
X-Apiquota-Reset:
|
|
43
|
+
- '2024-12-18T00:00:00Z'
|
|
44
|
+
Strict-Transport-Security:
|
|
45
|
+
- max-age=31536000; includeSubDomains
|
|
46
|
+
Cf-Cache-Status:
|
|
47
|
+
- DYNAMIC
|
|
48
|
+
Server:
|
|
49
|
+
- cloudflare
|
|
50
|
+
Cf-Ray:
|
|
51
|
+
- 8f37762bbd275b9a-VIE
|
|
52
|
+
body:
|
|
53
|
+
encoding: UTF-8
|
|
54
|
+
string: ''
|
|
55
|
+
recorded_at: Tue, 17 Dec 2024 14:04:19 GMT
|
|
56
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.mailersend.com/v1/emails?date_from=1756252800&date_to=1756339200&domain_id=jpzkmgq7e5vl059v&limit=10&page=1
|
|
6
|
+
body:
|
|
7
|
+
encoding: ASCII-8BIT
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.2.0
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
Cache-Control:
|
|
28
|
+
- no-cache, private
|
|
29
|
+
X-Apiquota-Remaining:
|
|
30
|
+
- "-1"
|
|
31
|
+
body:
|
|
32
|
+
encoding: UTF-8
|
|
33
|
+
string: '{"data":[{"id":"6a8fa9b1902fab56e0ce50dd","from":"sender@example.com","to":"rcpt@example.org","subject":"Welcome","text":null,"html":null,"template_id":"7nxe3yjmeq28vp0k","domain_id":"7nxe3yjmeq28vp0k","message_id":"6a8fa9b1902fab56e0ce50aa","status":"sent","tags":["newsletter"],"interaction":["opened"],"suppression_reason":null,"created_at":"2026-08-27T16:48:42.000000Z","updated_at":"2026-08-27T16:48:42.000000Z","headers":[{"name":"X-Custom","value":"foo"}]}],"links":{"first":"https://api.mailersend.com/v1/emails?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"current_page_url":"https://api.mailersend.com/v1/emails?page=1","from":1,"path":"https://api.mailersend.com/v1/emails","per_page":10,"to":3}}'
|
|
34
|
+
recorded_at: Thu, 27 Aug 2026 16:48:42 GMT
|
|
35
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.mailersend.com/v1/emails?date_from=1756252800&date_to=1756339200&domain_id=jpzkmgq7e5vl059v&limit=10&page=2
|
|
6
|
+
body:
|
|
7
|
+
encoding: ASCII-8BIT
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.2.0
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
Cache-Control:
|
|
28
|
+
- no-cache, private
|
|
29
|
+
X-Apiquota-Remaining:
|
|
30
|
+
- "-1"
|
|
31
|
+
body:
|
|
32
|
+
encoding: UTF-8
|
|
33
|
+
string: '{"data":[],"links":{"first":"https://api.mailersend.com/v1/emails?page=1","last":null,"prev":"https://api.mailersend.com/v1/emails?page=1","next":null},"meta":{"current_page":2,"current_page_url":"https://api.mailersend.com/v1/emails?page=2","from":null,"path":"https://api.mailersend.com/v1/emails","per_page":10,"to":null}}'
|
|
34
|
+
recorded_at: Thu, 27 Aug 2026 16:48:42 GMT
|
|
35
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.mailersend.com/v1/email/6a8fa9b1902fab56e0ce50dd
|
|
6
|
+
body:
|
|
7
|
+
encoding: ASCII-8BIT
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.2.0
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Content-Type:
|
|
26
|
+
- application/json
|
|
27
|
+
Cache-Control:
|
|
28
|
+
- no-cache, private
|
|
29
|
+
X-Apiquota-Remaining:
|
|
30
|
+
- "-1"
|
|
31
|
+
body:
|
|
32
|
+
encoding: UTF-8
|
|
33
|
+
string: '{"data":{"id":"6a8fa9b1902fab56e0ce50dd","from":"sender@example.com","to":"rcpt@example.org","subject":"Welcome","text":"Welcome aboard.","html":"<p>Welcome aboard.</p>","template_id":"7nxe3yjmeq28vp0k","domain_id":"7nxe3yjmeq28vp0k","message_id":"6a8fa9b1902fab56e0ce50aa","status":"sent","tags":["newsletter"],"interaction":["opened"],"suppression_reason":null,"created_at":"2026-08-27T16:48:42.000000Z","updated_at":"2026-08-27T16:48:42.000000Z","headers":[{"name":"X-Custom","value":"foo"}],"recipient":{"id":"6a8fa9b1902fab56e0ce50ee","email":"rcpt@example.org","created_at":"2026-08-27T16:48:42.000000Z","updated_at":"2026-08-27T16:48:42.000000Z","deleted_at":null},"activity":[{"id":"6a8fa9b1902fab56e0ce50f3","type":"opened","created_at":"2026-08-27T16:48:57.000000Z"},{"id":"6a8fa9b1902fab56e0ce50f2","type":"delivered","created_at":"2026-08-27T16:48:47.000000Z"},{"id":"6a8fa9b1902fab56e0ce50f1","type":"sent","created_at":"2026-08-27T16:48:42.000000Z"}]}}'
|
|
34
|
+
recorded_at: Thu, 27 Aug 2026 16:48:42 GMT
|
|
35
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.mailersend.com/v1/whatsapp/send
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"from":"15550001234","to":["+48600000001"],"template_id":"23zxk54v6gjy6v7m"}'
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.3.0
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/json; charset=utf-8
|
|
20
|
+
Host:
|
|
21
|
+
- api.mailersend.com
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 202
|
|
25
|
+
message: Accepted
|
|
26
|
+
headers:
|
|
27
|
+
Date:
|
|
28
|
+
- Mon, 31 Aug 2026 07:24:20 GMT
|
|
29
|
+
Content-Type:
|
|
30
|
+
- application/json
|
|
31
|
+
Transfer-Encoding:
|
|
32
|
+
- chunked
|
|
33
|
+
Connection:
|
|
34
|
+
- close
|
|
35
|
+
X-Message-Id:
|
|
36
|
+
- 67f91abd69f79df391e9d78d
|
|
37
|
+
Cache-Control:
|
|
38
|
+
- no-cache, private
|
|
39
|
+
Strict-Transport-Security:
|
|
40
|
+
- max-age=31536000; includeSubDomains
|
|
41
|
+
Server:
|
|
42
|
+
- cloudflare
|
|
43
|
+
body:
|
|
44
|
+
encoding: UTF-8
|
|
45
|
+
string: '{"data":{"id":"67f91abd69f79df391e9d78d","created_at":"2026-08-31 07:24:20"}}'
|
|
46
|
+
recorded_at: Mon, 31 Aug 2026 07:24:20 GMT
|
|
47
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.mailersend.com/v1/whatsapp/send
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"from":"15550001234","to":["+48600000001","+48600000002"],"template_id":"23zxk54v6gjy6v7m"}'
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.3.0
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/json; charset=utf-8
|
|
20
|
+
Host:
|
|
21
|
+
- api.mailersend.com
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 202
|
|
25
|
+
message: Accepted
|
|
26
|
+
headers:
|
|
27
|
+
Date:
|
|
28
|
+
- Mon, 31 Aug 2026 07:24:20 GMT
|
|
29
|
+
Content-Type:
|
|
30
|
+
- application/json
|
|
31
|
+
Transfer-Encoding:
|
|
32
|
+
- chunked
|
|
33
|
+
Connection:
|
|
34
|
+
- close
|
|
35
|
+
X-Message-Id:
|
|
36
|
+
- 67f91abd69f79df391e9d78d
|
|
37
|
+
Cache-Control:
|
|
38
|
+
- no-cache, private
|
|
39
|
+
Strict-Transport-Security:
|
|
40
|
+
- max-age=31536000; includeSubDomains
|
|
41
|
+
Server:
|
|
42
|
+
- cloudflare
|
|
43
|
+
body:
|
|
44
|
+
encoding: UTF-8
|
|
45
|
+
string: '{"data":{"id":"67f91abd69f79df391e9d78d","created_at":"2026-08-31 07:24:20"}}'
|
|
46
|
+
recorded_at: Mon, 31 Aug 2026 07:24:20 GMT
|
|
47
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: post
|
|
5
|
+
uri: https://api.mailersend.com/v1/whatsapp/send
|
|
6
|
+
body:
|
|
7
|
+
encoding: UTF-8
|
|
8
|
+
string: '{"from":"15550001234","to":["+48600000001"],"template_id":"23zxk54v6gjy6v7m","personalization":[{"to":"+48600000001","data":{"header":["Order #12345"],"body":["John","December 31, 2026"],"buttons":["orders/12345"]}}]}'
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.3.0
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Content-Type:
|
|
19
|
+
- application/json; charset=utf-8
|
|
20
|
+
Host:
|
|
21
|
+
- api.mailersend.com
|
|
22
|
+
response:
|
|
23
|
+
status:
|
|
24
|
+
code: 202
|
|
25
|
+
message: Accepted
|
|
26
|
+
headers:
|
|
27
|
+
Date:
|
|
28
|
+
- Mon, 31 Aug 2026 07:24:20 GMT
|
|
29
|
+
Content-Type:
|
|
30
|
+
- application/json
|
|
31
|
+
Transfer-Encoding:
|
|
32
|
+
- chunked
|
|
33
|
+
Connection:
|
|
34
|
+
- close
|
|
35
|
+
X-Message-Id:
|
|
36
|
+
- 67f91abd69f79df391e9d78d
|
|
37
|
+
Cache-Control:
|
|
38
|
+
- no-cache, private
|
|
39
|
+
Strict-Transport-Security:
|
|
40
|
+
- max-age=31536000; includeSubDomains
|
|
41
|
+
Server:
|
|
42
|
+
- cloudflare
|
|
43
|
+
body:
|
|
44
|
+
encoding: UTF-8
|
|
45
|
+
string: '{"data":{"id":"67f91abd69f79df391e9d78d","created_at":"2026-08-31 07:24:20"}}'
|
|
46
|
+
recorded_at: Mon, 31 Aug 2026 07:24:20 GMT
|
|
47
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.mailersend.com/v1/whatsapp/activities?date_from=1791936000&date_to=1792022400&limit=25&page=1&recipient=48600000001&type%5B%5D=delivered&type%5B%5D=read&whatsapp_item_id=67f91abe2202f3705540234a&whatsapp_message_id=67f91abd69f79df391e9d78d
|
|
6
|
+
body:
|
|
7
|
+
encoding: ASCII-8BIT
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.4.0
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Date:
|
|
26
|
+
- Tue, 20 Oct 2026 08:00:00 GMT
|
|
27
|
+
Content-Type:
|
|
28
|
+
- application/json
|
|
29
|
+
Transfer-Encoding:
|
|
30
|
+
- chunked
|
|
31
|
+
Connection:
|
|
32
|
+
- close
|
|
33
|
+
Cache-Control:
|
|
34
|
+
- no-cache, private
|
|
35
|
+
Strict-Transport-Security:
|
|
36
|
+
- max-age=31536000; includeSubDomains
|
|
37
|
+
Server:
|
|
38
|
+
- cloudflare
|
|
39
|
+
body:
|
|
40
|
+
encoding: UTF-8
|
|
41
|
+
string: '{"data":[{"id":"6acf9f214069f5eceb882bf1","whatsapp_item_id":"67f91abe2202f3705540234a","whatsapp_message_id":"67f91abd69f79df391e9d78d","whatsapp_account_id":"3enl6x27wmrxrl2v","from":"15550001234","to":"48600000001","type":"read","created_at":"2026-10-14T12:31:02.000000Z"},{"id":"6acf9f214069f5eceb882bea","whatsapp_item_id":"67f91abe2202f3705540234a","whatsapp_message_id":"67f91abd69f79df391e9d78d","whatsapp_account_id":"3enl6x27wmrxrl2v","from":"15550001234","to":"48600000001","type":"delivered","created_at":"2026-10-14T12:25:36.000000Z"}],"links":{"first":"https://api.mailersend.com/v1/whatsapp/activities?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"current_page_url":"https://api.mailersend.com/v1/whatsapp/activities?page=1","from":1,"path":"https://api.mailersend.com/v1/whatsapp/activities","per_page":25,"to":2}}'
|
|
42
|
+
recorded_at: Tue, 20 Oct 2026 08:00:00 GMT
|
|
43
|
+
recorded_with: VCR 6.3.1
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
---
|
|
2
|
+
http_interactions:
|
|
3
|
+
- request:
|
|
4
|
+
method: get
|
|
5
|
+
uri: https://api.mailersend.com/v1/whatsapp/inbound-messages/62f114a3165fe0d8db0288d1
|
|
6
|
+
body:
|
|
7
|
+
encoding: ASCII-8BIT
|
|
8
|
+
string: ''
|
|
9
|
+
headers:
|
|
10
|
+
Authorization:
|
|
11
|
+
- "<AUTH>"
|
|
12
|
+
User-Agent:
|
|
13
|
+
- MailerSend-client-ruby/3.4.0
|
|
14
|
+
Accept:
|
|
15
|
+
- application/json
|
|
16
|
+
Connection:
|
|
17
|
+
- close
|
|
18
|
+
Host:
|
|
19
|
+
- api.mailersend.com
|
|
20
|
+
response:
|
|
21
|
+
status:
|
|
22
|
+
code: 200
|
|
23
|
+
message: OK
|
|
24
|
+
headers:
|
|
25
|
+
Date:
|
|
26
|
+
- Tue, 20 Oct 2026 08:00:00 GMT
|
|
27
|
+
Content-Type:
|
|
28
|
+
- application/json
|
|
29
|
+
Transfer-Encoding:
|
|
30
|
+
- chunked
|
|
31
|
+
Connection:
|
|
32
|
+
- close
|
|
33
|
+
Cache-Control:
|
|
34
|
+
- no-cache, private
|
|
35
|
+
Strict-Transport-Security:
|
|
36
|
+
- max-age=31536000; includeSubDomains
|
|
37
|
+
Server:
|
|
38
|
+
- cloudflare
|
|
39
|
+
body:
|
|
40
|
+
encoding: UTF-8
|
|
41
|
+
string: '{"data":{"id":"62f114a3165fe0d8db0288d1","whatsapp_account_id":"3enl6x27wmrxrl2v","from":"48600000001","to":"15550001234","type":"interactive","received_at":"2026-10-14T12:36:44.000000Z","meta":{"reply_type":"list_reply","id":"delivery_today","title":"Deliver today","description":"Between 4 PM and 8 PM"},"context":{"message_id":"wamid.HBgLMzcwNjMzMjI3OTcVAgARGBIwREE3N0EwN0EyNjhENjEwOEMA"}}}'
|
|
42
|
+
recorded_at: Tue, 20 Oct 2026 08:00:00 GMT
|
|
43
|
+
recorded_with: VCR 6.3.1
|