mailersend-ruby 2.0.3 → 3.0.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/.github/workflows/main.yml +6 -6
- data/.github/workflows/publish_gem.yml +4 -4
- data/.rspec +1 -0
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +4 -0
- data/Gemfile +7 -3
- data/README.md +10 -1
- data/fixtures/activity/activity_get_activity.yml +61 -0
- data/fixtures/api_quota/api_quota_get.yml +51 -0
- data/fixtures/bulk_email/bulk_email_send.yml +54 -0
- data/fixtures/bulk_email/bulk_email_status.yml +53 -0
- data/fixtures/domains/domains_add.yml +55 -0
- data/fixtures/domains/domains_delete.yml +47 -0
- data/fixtures/domains/domains_dns.yml +52 -0
- data/fixtures/domains/domains_list.yml +63 -0
- data/fixtures/domains/domains_recipients.yml +51 -0
- data/fixtures/domains/domains_settings.yml +55 -0
- data/fixtures/domains/domains_single.yml +53 -0
- data/fixtures/domains/domains_verify.yml +51 -0
- data/fixtures/email/email_send.yml +56 -0
- data/fixtures/inbound_routing/inbound_routing_delete.yml +47 -0
- data/fixtures/inbound_routing/inbound_routing_list.yml +53 -0
- data/fixtures/inbound_routing/inbound_routing_single.yml +51 -0
- data/fixtures/messages/messages_list_messages.yml +51 -0
- data/fixtures/messages/messages_single_message.yml +54 -0
- data/fixtures/recipients/recipients_delete.yml +47 -0
- data/fixtures/recipients/recipients_list.yml +51 -0
- data/fixtures/recipients/recipients_single.yml +51 -0
- data/fixtures/scheduled_messages/scheduled_messages_delete.yml +34 -0
- data/fixtures/scheduled_messages/scheduled_messages_get_list.yml +53 -0
- data/fixtures/scheduled_messages/scheduled_messages_get_single.yml +34 -0
- data/fixtures/sms_activity/sms_activity_list.yml +51 -0
- data/fixtures/sms_inbounds/sms_inbounds_add_sms_inbound_route.yml +53 -0
- data/fixtures/sms_inbounds/sms_inbounds_delete_sms_inbound_route.yml +47 -0
- data/fixtures/sms_inbounds/sms_inbounds_get_sms_inbound_route.yml +51 -0
- data/fixtures/sms_inbounds/sms_inbounds_list_sms_inbounds.yml +53 -0
- data/fixtures/sms_inbounds/sms_inbounds_update_sms_inbound_route.yml +53 -0
- data/fixtures/sms_messages/sms_messages_list_sms_messages.yml +56 -0
- data/fixtures/sms_number/sms_number_delete.yml +26 -0
- data/fixtures/sms_number/sms_number_get.yml +51 -0
- data/fixtures/sms_number/sms_number_list.yml +53 -0
- data/fixtures/sms_number/sms_number_update.yml +53 -0
- data/fixtures/sms_recipient/sms_recipient_get.yml +51 -0
- data/fixtures/sms_recipient/sms_recipient_list.yml +51 -0
- data/fixtures/sms_recipient/sms_recipient_update.yml +53 -0
- data/fixtures/sms_webhooks/sms_webhooks_add_sms_webhook_route.yml +53 -0
- data/fixtures/sms_webhooks/sms_webhooks_delete_sms_webhook_route.yml +47 -0
- data/fixtures/sms_webhooks/sms_webhooks_get_sms_webhook_route.yml +51 -0
- data/fixtures/sms_webhooks/sms_webhooks_list_sms_webhooks.yml +53 -0
- data/fixtures/sms_webhooks/sms_webhooks_update_sms_webhook_route.yml +53 -0
- data/fixtures/suppressions/suppressions_add_to_blocklist.yml +53 -0
- data/fixtures/suppressions/suppressions_add_to_hard_bounces.yml +53 -0
- data/fixtures/suppressions/suppressions_add_to_spam_complaints.yml +53 -0
- data/fixtures/suppressions/suppressions_add_to_unsubscribers.yml +53 -0
- data/fixtures/suppressions/suppressions_delete_from_blocklist.yml +53 -0
- data/fixtures/suppressions/suppressions_delete_from_hard_bounces.yml +53 -0
- data/fixtures/suppressions/suppressions_delete_from_spam_complaints.yml +53 -0
- data/fixtures/suppressions/suppressions_delete_from_unsubscribers.yml +53 -0
- data/fixtures/suppressions/suppressions_get_from_blocklist.yml +51 -0
- data/fixtures/suppressions/suppressions_get_hard_bounces.yml +51 -0
- data/fixtures/suppressions/suppressions_get_spam_complaints.yml +51 -0
- data/fixtures/suppressions/suppressions_get_unsubscribes.yml +51 -0
- data/fixtures/templates/templates_delete.yml +51 -0
- data/fixtures/templates/templates_list.yml +51 -0
- data/fixtures/templates/templates_single.yml +51 -0
- data/fixtures/tokens/tokens_create.yml +54 -0
- data/fixtures/tokens/tokens_delete.yml +51 -0
- data/fixtures/tokens/tokens_update.yml +54 -0
- data/fixtures/webhooks/webhooks_create.yml +56 -0
- data/fixtures/webhooks/webhooks_delete.yml +47 -0
- data/fixtures/webhooks/webhooks_list.yml +55 -0
- data/fixtures/webhooks/webhooks_single.yml +53 -0
- data/lib/mailersend/scheduled_messages/scheduled_messages.rb +1 -1
- data/lib/mailersend/version.rb +1 -1
- data/mailersend-ruby.gemspec +4 -4
- data/spec/activity_rspec.rb +26 -0
- data/spec/api_quota_rspec.rb +29 -0
- data/spec/bulk_email_rspec.rb +44 -0
- data/spec/domains_rspec.rb +94 -0
- data/spec/email_rspec.rb +29 -0
- data/spec/inbound_routing_rspec.rb +44 -0
- data/spec/messages_rspec.rb +36 -0
- data/spec/recipients_rspec.rb +44 -0
- data/spec/scheduled_messages_rspec.rb +44 -0
- data/spec/sms_activity_rspec.rb +26 -0
- data/spec/sms_inbounds_rspec.rb +77 -0
- data/spec/sms_messages_rspec.rb +26 -0
- data/spec/sms_number_rspec.rb +54 -0
- data/spec/sms_recipient_rspec.rb +46 -0
- data/spec/sms_webhooks_rspec.rb +74 -0
- data/spec/spec_helper.rb +102 -0
- data/spec/suppressions_rspec.rb +124 -0
- data/spec/templates_rspec.rb +44 -0
- data/spec/tokens_rspec.rb +44 -0
- data/spec/webhooks_rspec.rb +60 -0
- metadata +96 -10
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mailersend.com/v1/sms-recipients/627e7503d30078fb2208cc83
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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, 17 Dec 2024 23:28:13 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, private
|
35
|
+
X-Apiquota-Remaining:
|
36
|
+
- "-1"
|
37
|
+
X-Apiquota-Reset:
|
38
|
+
- '2024-12-18T00:00:00Z'
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=31536000; includeSubDomains
|
41
|
+
Cf-Cache-Status:
|
42
|
+
- DYNAMIC
|
43
|
+
Server:
|
44
|
+
- cloudflare
|
45
|
+
Cf-Ray:
|
46
|
+
- 8f3ab0313e896c86-ZAG
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":{"id":"627e7503d30078fb2208cc83","number":"+18332500000","status":"opt_out","opted_out_at":null,"opt_out_source":null,"created_at":"2022-05-13T15:10:59.000000Z","sms_number":null,"sms":[]}}'
|
50
|
+
recorded_at: Tue, 17 Dec 2024 23:28:13 GMT
|
51
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mailersend.com/v1/sms-recipients?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.0.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, 17 Dec 2024 23:27:04 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, private
|
35
|
+
X-Apiquota-Remaining:
|
36
|
+
- "-1"
|
37
|
+
X-Apiquota-Reset:
|
38
|
+
- '2024-12-18T00:00:00Z'
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=31536000; includeSubDomains
|
41
|
+
Cf-Cache-Status:
|
42
|
+
- DYNAMIC
|
43
|
+
Server:
|
44
|
+
- cloudflare
|
45
|
+
Cf-Ray:
|
46
|
+
- 8f3aae823cbdec1e-ZAG
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"id":"627e7503d30078fb2208cc83","number":"+18332500000","status":"opt_out","opted_out_at":null,"opt_out_source":null,"created_at":"2022-05-13T15:10:59.000000Z"},{"id":"627e756fd30078fb2208cc87","number":"+14132100000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-05-13T15:12:48.000000Z"},{"id":"62a8f3402c9a163d780cecc3","number":"+12513000000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-06-14T20:44:49.000000Z"},{"id":"62e7f2d02e29cb4b55050523","number":"+18474600000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-08-01T15:35:44.000000Z"},{"id":"62e7f44c2eda720e1d05e633","number":"+18332600000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-08-01T15:42:05.000000Z"},{"id":"62e7f4e8b59e9868630f52a3","number":"+16062100000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-08-01T15:44:41.000000Z"},{"id":"62e80347361532ed0001c423","number":"+16062100000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-08-01T16:45:59.000000Z"},{"id":"62ea3ea8ed10e863b2021793","number":"+18332600000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-08-03T09:23:53.000000Z"},{"id":"62ea40d51495ae44610e6a96","number":"+18332700000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-08-03T09:33:10.000000Z"},{"id":"6321a2d9fd07c623cf032c93","number":"+18133600000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-09-14T09:46:02.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=1","last":null,"prev":null,"next":"https:\/\/api.mailersend.com\/v1\/sms-recipients?page=2"},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/sms-recipients","per_page":"10","to":10}}'
|
50
|
+
recorded_at: Tue, 17 Dec 2024 23:27:04 GMT
|
51
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://api.mailersend.com/v1/sms-recipients/627e7503d30078fb2208cc83
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"status":"active"}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Tue, 17 Dec 2024 23:29:19 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-Apiquota-Remaining:
|
38
|
+
- "-1"
|
39
|
+
X-Apiquota-Reset:
|
40
|
+
- '2024-12-18T00:00:00Z'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000; includeSubDomains
|
43
|
+
Cf-Cache-Status:
|
44
|
+
- DYNAMIC
|
45
|
+
Server:
|
46
|
+
- cloudflare
|
47
|
+
Cf-Ray:
|
48
|
+
- 8f3ab1d2cfe2ec20-ZAG
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":{"id":"627e7503d30078fb2208cc83","number":"+18332500000","status":"active","opted_out_at":null,"opt_out_source":null,"created_at":"2022-05-13T15:10:59.000000Z"}}'
|
52
|
+
recorded_at: Tue, 17 Dec 2024 23:29:19 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.mailersend.com/v1/sms-webhooks
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"sms_number_id":"0p7kx4xd7el9yjre","name":"good-webhook","url":"https://mailersend.net/webhook","events":["sms.sent","sms.delivered"]}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 19 Dec 2024 22:41:14 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-Apiquota-Remaining:
|
38
|
+
- "-1"
|
39
|
+
X-Apiquota-Reset:
|
40
|
+
- '2024-12-20T00:00:00Z'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000; includeSubDomains
|
43
|
+
Cf-Cache-Status:
|
44
|
+
- DYNAMIC
|
45
|
+
Server:
|
46
|
+
- cloudflare
|
47
|
+
Cf-Ray:
|
48
|
+
- 8f4ae61de85cec1e-ZAG
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":{"id":"k68zxl27x34j9057","url":"https:\/\/mailersend.net\/webhook","events":["sms.sent","sms.delivered"],"name":"good-webhook","enabled":true,"created_at":"2024-12-19T22:41:14.000000Z","updated_at":"2024-12-19T22:41:14.000000Z","sms_number":{"id":"0p7kx4xd7el9yjre","telephone_number":"+18553300000","paused":false,"created_at":"2024-02-19T14:52:31.000000Z"}}}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 22:41:14 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,47 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://api.mailersend.com/v1/sms-webhooks/0r83ql3pzvgzw1jm
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.0
|
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
|
+
Date:
|
26
|
+
- Thu, 19 Dec 2024 22:43:52 GMT
|
27
|
+
Connection:
|
28
|
+
- close
|
29
|
+
Cache-Control:
|
30
|
+
- no-cache, private
|
31
|
+
X-Apiquota-Remaining:
|
32
|
+
- "-1"
|
33
|
+
X-Apiquota-Reset:
|
34
|
+
- '2024-12-20T00:00:00Z'
|
35
|
+
Strict-Transport-Security:
|
36
|
+
- max-age=31536000; includeSubDomains
|
37
|
+
Cf-Cache-Status:
|
38
|
+
- DYNAMIC
|
39
|
+
Server:
|
40
|
+
- cloudflare
|
41
|
+
Cf-Ray:
|
42
|
+
- 8f4ae9fa1e59ec1c-ZAG
|
43
|
+
body:
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: ''
|
46
|
+
recorded_at: Thu, 19 Dec 2024 22:43:52 GMT
|
47
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,51 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mailersend.com/v1/sms-webhooks/0r83ql3pzvgzw1jm
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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
|
+
- Thu, 19 Dec 2024 22:36:36 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, private
|
35
|
+
X-Apiquota-Remaining:
|
36
|
+
- "-1"
|
37
|
+
X-Apiquota-Reset:
|
38
|
+
- '2024-12-20T00:00:00Z'
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=31536000; includeSubDomains
|
41
|
+
Cf-Cache-Status:
|
42
|
+
- DYNAMIC
|
43
|
+
Server:
|
44
|
+
- cloudflare
|
45
|
+
Cf-Ray:
|
46
|
+
- 8f4adf548a961cc0-BUD
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":{"id":"0r83ql3pzvgzw1jm","url":"https:\/\/mailersend.com","events":["sms.delivered"],"name":"my-webook","enabled":true,"created_at":"2024-12-19T22:35:53.000000Z","updated_at":"2024-12-19T22:35:53.000000Z","sms_number":{"id":"0p7kx4xd7el9yjre","telephone_number":"+18121209150","paused":false,"created_at":"2024-02-19T14:52:31.000000Z"}}}'
|
50
|
+
recorded_at: Thu, 19 Dec 2024 22:36:36 GMT
|
51
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mailersend.com/v1/sms-webhooks?sms_number_id=0p7kx4xd7el9yjre
|
6
|
+
body:
|
7
|
+
encoding: ASCII-8BIT
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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
|
+
- Thu, 19 Dec 2024 22:36:05 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
Transfer-Encoding:
|
30
|
+
- chunked
|
31
|
+
Connection:
|
32
|
+
- close
|
33
|
+
Cache-Control:
|
34
|
+
- no-cache, private
|
35
|
+
X-Apiquota-Remaining:
|
36
|
+
- "-1"
|
37
|
+
X-Apiquota-Reset:
|
38
|
+
- '2024-12-20T00:00:00Z'
|
39
|
+
Strict-Transport-Security:
|
40
|
+
- max-age=31536000; includeSubDomains
|
41
|
+
Cf-Cache-Status:
|
42
|
+
- DYNAMIC
|
43
|
+
Server:
|
44
|
+
- cloudflare
|
45
|
+
Cf-Ray:
|
46
|
+
- 8f4ade97ab53c1c1-BUD
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"id":"0r83ql3pzvgzw1jm","url":"https:\/\/mailersend.com","events":["sms.delivered"],"name":"my-webook","enabled":true,"created_at":"2024-12-19T22:35:53.000000Z","updated_at":"2024-12-19T22:35:53.000000Z","sms_number":{"id":"0p7kx4xd7el9yjre","telephone_number":"+18121209150","paused":false,"created_at":"2024-02-19T14:52:31.000000Z"}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-webhooks?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-webhooks?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
|
50
|
+
Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-webhooks?page=1","label":"1","active":true},{"url":null,"label":"Next
|
51
|
+
»","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-webhooks","per_page":25,"to":1,"total":1}}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 22:36:05 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: put
|
5
|
+
uri: https://api.mailersend.com/v1/sms-webhooks/0r83ql3pzvgzw1jm
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"url":"https://mailersend.net/updated_webhook","events":["sms.sent","sms.delivered"]}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 19 Dec 2024 22:42:59 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-Apiquota-Remaining:
|
38
|
+
- "-1"
|
39
|
+
X-Apiquota-Reset:
|
40
|
+
- '2024-12-20T00:00:00Z'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000; includeSubDomains
|
43
|
+
Cf-Cache-Status:
|
44
|
+
- DYNAMIC
|
45
|
+
Server:
|
46
|
+
- cloudflare
|
47
|
+
Cf-Ray:
|
48
|
+
- 8f4ae8b0ce4fec22-ZAG
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":{"id":"0r83ql3pzvgzw1jm","url":"https:\/\/mailersend.net\/updated_webhook","events":["sms.sent","sms.delivered"],"name":"my-webook","enabled":true,"created_at":"2024-12-19T22:35:53.000000Z","updated_at":"2024-12-19T22:42:59.000000Z","sms_number":{"id":"0p7kx4xd7el9yjre","telephone_number":"+18121209150","paused":false,"created_at":"2024-02-19T14:52:31.000000Z"}}}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 22:42:59 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.mailersend.com/v1/suppressions/blocklist
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"recipients":["test@mailerlite.com"]}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 19 Dec 2024 17:36:27 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-Apiquota-Remaining:
|
38
|
+
- "-1"
|
39
|
+
X-Apiquota-Reset:
|
40
|
+
- '2024-12-20T00:00:00Z'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000; includeSubDomains
|
43
|
+
Cf-Cache-Status:
|
44
|
+
- DYNAMIC
|
45
|
+
Server:
|
46
|
+
- cloudflare
|
47
|
+
Cf-Ray:
|
48
|
+
- 8f4927abdaefc1cb-BUD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":[{"id":"6764599b1cc3ea355ad717a0","type":"exact","pattern":"test@mailerlite.com","created_at":"2024-12-19T17:36:27.000000Z","updated_at":"2024-12-19T17:36:27.000000Z"}]}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 17:36:27 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.mailersend.com/v1/suppressions/hard-bounces
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"domain_id":"jpzkmgq7e5vl059v","recipients":["test@mailerlite.com"]}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 19 Dec 2024 17:28:16 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-Apiquota-Remaining:
|
38
|
+
- "-1"
|
39
|
+
X-Apiquota-Reset:
|
40
|
+
- '2024-12-20T00:00:00Z'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000; includeSubDomains
|
43
|
+
Cf-Cache-Status:
|
44
|
+
- DYNAMIC
|
45
|
+
Server:
|
46
|
+
- cloudflare
|
47
|
+
Cf-Ray:
|
48
|
+
- 8f491bb01fff5b4e-VIE
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":[{"id":"676457b042328d3c98db7600","reason":"Unknown reason","created_at":"2024-12-19T17:28:16.000000Z","recipient":{"id":"676457b08631db34e81673e8","email":"test@mailerlite.com","created_at":"2024-12-19T17:28:16.000000Z","updated_at":"2024-12-19T17:28:16.000000Z","deleted_at":"","domain":{"id":"jpzkmgq7e5vl059v","name":"test-sdk.com","created_at":"2022-04-20T11:36:15.000000Z","updated_at":"2024-09-02T10:02:27.000000Z"}}}]}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 17:28:16 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.mailersend.com/v1/suppressions/spam-complaints
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"domain_id":"jpzkmgq7e5vl059v","recipients":["test@mailerlite.com"]}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 19 Dec 2024 17:28:17 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-Apiquota-Remaining:
|
38
|
+
- "-1"
|
39
|
+
X-Apiquota-Reset:
|
40
|
+
- '2024-12-20T00:00:00Z'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000; includeSubDomains
|
43
|
+
Cf-Cache-Status:
|
44
|
+
- DYNAMIC
|
45
|
+
Server:
|
46
|
+
- cloudflare
|
47
|
+
Cf-Ray:
|
48
|
+
- 8f491bb32c041ce6-BUD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":[{"id":"676457b1ee359d18093fcb99","created_at":"2024-12-19T17:28:17.000000Z","recipient":{"id":"676457b08631db34e81673e8","email":"test@mailerlite.com","created_at":"2024-12-19T17:28:16.000000Z","updated_at":"2024-12-19T17:28:17.000000Z","deleted_at":"","domain":{"id":"jpzkmgq7e5vl059v","name":"test-sdk.com","created_at":"2022-04-20T11:36:15.000000Z","updated_at":"2024-09-02T10:02:27.000000Z"}}}]}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 17:28:17 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://api.mailersend.com/v1/suppressions/unsubscribes
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"domain_id":"jpzkmgq7e5vl059v","recipients":["test@mailerlite.com"]}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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: 201
|
25
|
+
message: Created
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 19 Dec 2024 17:28:17 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-Apiquota-Remaining:
|
38
|
+
- "-1"
|
39
|
+
X-Apiquota-Reset:
|
40
|
+
- '2024-12-20T00:00:00Z'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000; includeSubDomains
|
43
|
+
Cf-Cache-Status:
|
44
|
+
- DYNAMIC
|
45
|
+
Server:
|
46
|
+
- cloudflare
|
47
|
+
Cf-Ray:
|
48
|
+
- 8f491bb5de361cea-BUD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":[{"id":"676457b1252f59f004ea2bac","reason":null,"readable_reason":null,"recipient":{"id":"676457b08631db34e81673e8","email":"test@mailerlite.com","created_at":"2024-12-19T17:28:16.000000Z","updated_at":"2024-12-19T17:28:17.000000Z","deleted_at":"","domain":{"id":"jpzkmgq7e5vl059v","name":"test-sdk.com","created_at":"2022-04-20T11:36:15.000000Z","updated_at":"2024-09-02T10:02:27.000000Z"}},"created_at":"2024-12-19T17:28:17.000000Z"}]}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 17:28:17 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://api.mailersend.com/v1/suppressions/blocklist
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"domain_id":"jpzkmgq7e5vl059v","ids":["6764599b1cc3ea355ad717a0"]}'
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- "<AUTH>"
|
12
|
+
User-Agent:
|
13
|
+
- MailerSend-client-ruby/3.0.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: 200
|
25
|
+
message: OK
|
26
|
+
headers:
|
27
|
+
Date:
|
28
|
+
- Thu, 19 Dec 2024 17:44:28 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-Apiquota-Remaining:
|
38
|
+
- "-1"
|
39
|
+
X-Apiquota-Reset:
|
40
|
+
- '2024-12-20T00:00:00Z'
|
41
|
+
Strict-Transport-Security:
|
42
|
+
- max-age=31536000; includeSubDomains
|
43
|
+
Cf-Cache-Status:
|
44
|
+
- DYNAMIC
|
45
|
+
Server:
|
46
|
+
- cloudflare
|
47
|
+
Cf-Ray:
|
48
|
+
- 8f4933666aa3c1cb-BUD
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: "[]"
|
52
|
+
recorded_at: Thu, 19 Dec 2024 17:44:27 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|