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.
Files changed (97) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/main.yml +6 -6
  3. data/.github/workflows/publish_gem.yml +4 -4
  4. data/.rspec +1 -0
  5. data/.rubocop.yml +1 -1
  6. data/CHANGELOG.md +4 -0
  7. data/Gemfile +7 -3
  8. data/README.md +10 -1
  9. data/fixtures/activity/activity_get_activity.yml +61 -0
  10. data/fixtures/api_quota/api_quota_get.yml +51 -0
  11. data/fixtures/bulk_email/bulk_email_send.yml +54 -0
  12. data/fixtures/bulk_email/bulk_email_status.yml +53 -0
  13. data/fixtures/domains/domains_add.yml +55 -0
  14. data/fixtures/domains/domains_delete.yml +47 -0
  15. data/fixtures/domains/domains_dns.yml +52 -0
  16. data/fixtures/domains/domains_list.yml +63 -0
  17. data/fixtures/domains/domains_recipients.yml +51 -0
  18. data/fixtures/domains/domains_settings.yml +55 -0
  19. data/fixtures/domains/domains_single.yml +53 -0
  20. data/fixtures/domains/domains_verify.yml +51 -0
  21. data/fixtures/email/email_send.yml +56 -0
  22. data/fixtures/inbound_routing/inbound_routing_delete.yml +47 -0
  23. data/fixtures/inbound_routing/inbound_routing_list.yml +53 -0
  24. data/fixtures/inbound_routing/inbound_routing_single.yml +51 -0
  25. data/fixtures/messages/messages_list_messages.yml +51 -0
  26. data/fixtures/messages/messages_single_message.yml +54 -0
  27. data/fixtures/recipients/recipients_delete.yml +47 -0
  28. data/fixtures/recipients/recipients_list.yml +51 -0
  29. data/fixtures/recipients/recipients_single.yml +51 -0
  30. data/fixtures/scheduled_messages/scheduled_messages_delete.yml +34 -0
  31. data/fixtures/scheduled_messages/scheduled_messages_get_list.yml +53 -0
  32. data/fixtures/scheduled_messages/scheduled_messages_get_single.yml +34 -0
  33. data/fixtures/sms_activity/sms_activity_list.yml +51 -0
  34. data/fixtures/sms_inbounds/sms_inbounds_add_sms_inbound_route.yml +53 -0
  35. data/fixtures/sms_inbounds/sms_inbounds_delete_sms_inbound_route.yml +47 -0
  36. data/fixtures/sms_inbounds/sms_inbounds_get_sms_inbound_route.yml +51 -0
  37. data/fixtures/sms_inbounds/sms_inbounds_list_sms_inbounds.yml +53 -0
  38. data/fixtures/sms_inbounds/sms_inbounds_update_sms_inbound_route.yml +53 -0
  39. data/fixtures/sms_messages/sms_messages_list_sms_messages.yml +56 -0
  40. data/fixtures/sms_number/sms_number_delete.yml +26 -0
  41. data/fixtures/sms_number/sms_number_get.yml +51 -0
  42. data/fixtures/sms_number/sms_number_list.yml +53 -0
  43. data/fixtures/sms_number/sms_number_update.yml +53 -0
  44. data/fixtures/sms_recipient/sms_recipient_get.yml +51 -0
  45. data/fixtures/sms_recipient/sms_recipient_list.yml +51 -0
  46. data/fixtures/sms_recipient/sms_recipient_update.yml +53 -0
  47. data/fixtures/sms_webhooks/sms_webhooks_add_sms_webhook_route.yml +53 -0
  48. data/fixtures/sms_webhooks/sms_webhooks_delete_sms_webhook_route.yml +47 -0
  49. data/fixtures/sms_webhooks/sms_webhooks_get_sms_webhook_route.yml +51 -0
  50. data/fixtures/sms_webhooks/sms_webhooks_list_sms_webhooks.yml +53 -0
  51. data/fixtures/sms_webhooks/sms_webhooks_update_sms_webhook_route.yml +53 -0
  52. data/fixtures/suppressions/suppressions_add_to_blocklist.yml +53 -0
  53. data/fixtures/suppressions/suppressions_add_to_hard_bounces.yml +53 -0
  54. data/fixtures/suppressions/suppressions_add_to_spam_complaints.yml +53 -0
  55. data/fixtures/suppressions/suppressions_add_to_unsubscribers.yml +53 -0
  56. data/fixtures/suppressions/suppressions_delete_from_blocklist.yml +53 -0
  57. data/fixtures/suppressions/suppressions_delete_from_hard_bounces.yml +53 -0
  58. data/fixtures/suppressions/suppressions_delete_from_spam_complaints.yml +53 -0
  59. data/fixtures/suppressions/suppressions_delete_from_unsubscribers.yml +53 -0
  60. data/fixtures/suppressions/suppressions_get_from_blocklist.yml +51 -0
  61. data/fixtures/suppressions/suppressions_get_hard_bounces.yml +51 -0
  62. data/fixtures/suppressions/suppressions_get_spam_complaints.yml +51 -0
  63. data/fixtures/suppressions/suppressions_get_unsubscribes.yml +51 -0
  64. data/fixtures/templates/templates_delete.yml +51 -0
  65. data/fixtures/templates/templates_list.yml +51 -0
  66. data/fixtures/templates/templates_single.yml +51 -0
  67. data/fixtures/tokens/tokens_create.yml +54 -0
  68. data/fixtures/tokens/tokens_delete.yml +51 -0
  69. data/fixtures/tokens/tokens_update.yml +54 -0
  70. data/fixtures/webhooks/webhooks_create.yml +56 -0
  71. data/fixtures/webhooks/webhooks_delete.yml +47 -0
  72. data/fixtures/webhooks/webhooks_list.yml +55 -0
  73. data/fixtures/webhooks/webhooks_single.yml +53 -0
  74. data/lib/mailersend/scheduled_messages/scheduled_messages.rb +1 -1
  75. data/lib/mailersend/version.rb +1 -1
  76. data/mailersend-ruby.gemspec +4 -4
  77. data/spec/activity_rspec.rb +26 -0
  78. data/spec/api_quota_rspec.rb +29 -0
  79. data/spec/bulk_email_rspec.rb +44 -0
  80. data/spec/domains_rspec.rb +94 -0
  81. data/spec/email_rspec.rb +29 -0
  82. data/spec/inbound_routing_rspec.rb +44 -0
  83. data/spec/messages_rspec.rb +36 -0
  84. data/spec/recipients_rspec.rb +44 -0
  85. data/spec/scheduled_messages_rspec.rb +44 -0
  86. data/spec/sms_activity_rspec.rb +26 -0
  87. data/spec/sms_inbounds_rspec.rb +77 -0
  88. data/spec/sms_messages_rspec.rb +26 -0
  89. data/spec/sms_number_rspec.rb +54 -0
  90. data/spec/sms_recipient_rspec.rb +46 -0
  91. data/spec/sms_webhooks_rspec.rb +74 -0
  92. data/spec/spec_helper.rb +102 -0
  93. data/spec/suppressions_rspec.rb +124 -0
  94. data/spec/templates_rspec.rb +44 -0
  95. data/spec/tokens_rspec.rb +44 -0
  96. data/spec/webhooks_rspec.rb +60 -0
  97. metadata +96 -10
@@ -0,0 +1,55 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.mailersend.com/v1/domains/3yxj6lj1r05ldo2r/settings
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"send_paused":true}'
9
+ headers:
10
+ Authorization:
11
+ - "<AUTH>"
12
+ User-Agent:
13
+ - MailerSend-client-ruby/2.0.3
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 01:59: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-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
+ - 8f33501a9cdeec24-ZAG
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"data":{"id":"3yxj6lj1r05ldo2r","name":"ourdomain.com","dkim":false,"spf":false,"tracking":false,"is_verified":false,"is_cname_verified":false,"is_dns_active":false,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":0,"queued":0,"sent":0,"rejected":0,"delivered":0},"not_queued_messages_count":0,"domain_settings":{"send_paused":true,"track_clicks":true,"track_opens":true,"track_unsubscribe":true,"track_unsubscribe_html":"<p>Stisni
52
+ ovde <a href=''{$unsubscribe}''>unsubscribe<\/a><\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Stisni
53
+ ovde to unsubscribe: {$unsubscribe}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"email","return_path_subdomain":"rpsubdomain","inbound_routing_enabled":false,"inbound_routing_subdomain":"irsubdomain","precedence_bulk":false,"ignore_duplicated_recipients":false},"created_at":"2023-05-24T14:19:12.000000Z","updated_at":"2024-12-17T01:59:17.000000Z","totals":{"sent":0,"delivered":0,"hard_bounced":0,"soft_bounced":0}}}'
54
+ recorded_at: Tue, 17 Dec 2024 01:59:17 GMT
55
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.mailersend.com/v1/domains/z3m5jgrdk7z4dpyo
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - "<AUTH>"
12
+ User-Agent:
13
+ - MailerSend-client-ruby/2.0.3
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 01:41:44 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
+ - 8f333667fd37ec26-ZAG
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":{"id":"z3m5jgrdk7z4dpyo","name":"somethingelse.com","dkim":false,"spf":false,"tracking":false,"is_verified":false,"is_cname_verified":false,"is_dns_active":false,"is_cname_active":false,"is_tracking_allowed":false,"domain_stats":{"total":0,"queued":0,"sent":0,"rejected":0,"delivered":0},"not_queued_messages_count":0,"domain_settings":{"send_paused":false,"track_clicks":true,"track_opens":true,"track_unsubscribe":false,"track_unsubscribe_html":"<p>Click
50
+ here to <a href=\"{$unsubscribe}\">unsubscribe<\/a><\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Click
51
+ here to unsubscribe: {$unsubscribe}","track_unsubscribe_plain_enabled":false,"track_content":false,"custom_tracking_enabled":false,"custom_tracking_subdomain":"email","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"inbound","precedence_bulk":false,"ignore_duplicated_recipients":false},"created_at":"2023-07-04T06:57:06.000000Z","updated_at":"2023-07-04T06:57:08.000000Z","totals":{"sent":0,"delivered":0,"hard_bounced":0,"soft_bounced":0}}}'
52
+ recorded_at: Tue, 17 Dec 2024 01:41:44 GMT
53
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.mailersend.com/v1/domains/jpzkmgq7e5vl059v/verify
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - "<AUTH>"
12
+ User-Agent:
13
+ - MailerSend-client-ruby/2.0.3
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 02:03:28 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
+ - 8f33563e5e7eec1c-ZAG
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"message":"The domain is verified.","data":{"dkim":false,"spf":false,"mx":false,"tracking":false,"cname":false,"rp_cname":false}}'
50
+ recorded_at: Tue, 17 Dec 2024 02:03:28 GMT
51
+ 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","text":"This is a test email.","html":"<p>This is a test email.</p>"}'
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,47 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.mailersend.com/v1/inbound/7dnvo4dkd6l5r86y
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - "<AUTH>"
12
+ User-Agent:
13
+ - MailerSend-client-ruby/2.0.3
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
+ - Tue, 17 Dec 2024 13:16:10 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-18T00: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
+ - 8f372fa11f595bab-VIE
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: ''
46
+ recorded_at: Tue, 17 Dec 2024 13:16:09 GMT
47
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.mailersend.com/v1/inbound
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - "<AUTH>"
12
+ User-Agent:
13
+ - MailerSend-client-ruby/2.0.3
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 13:15:07 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
+ - 8f372e19a9655b49-VIE
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":[{"id":"pr9084zw584w63dn","name":"etyrty","address":"g9lz3bsjlnqde2vhvheh@inbound.mailersend.net","domain":null,"dns_checked_at":null,"enabled":true,"filters":[{"type":"match_all","key":null,"comparer":null,"value":null}],"forwards":[{"type":"email","value":"test@mailerlite.com","secret":null}],"priority":0,"mxValues":{"priority":"10","target":"inbound.mailersend.net"},"catch_type":"all","match_type":"all"},{"id":"7dnvo4dkd6l5r86y","name":"test","address":"kugzeoo4ydoeuxpjn913@inbound.mailersend.net","domain":null,"dns_checked_at":null,"enabled":true,"filters":[{"type":"match_all","key":null,"comparer":null,"value":null}],"forwards":[{"type":"webhook","value":"https:\/\/google.com","secret":"T47PIxNnXJmPA9ZxB5PBbOkSLvKSsZNR"}],"priority":0,"mxValues":{"priority":"10","target":"inbound.mailersend.net"},"catch_type":"all","match_type":"all"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","last":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"&laquo;
50
+ Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/inbound?page=1","label":"1","active":true},{"url":null,"label":"Next
51
+ &raquo;","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/inbound","per_page":10,"to":2,"total":2}}'
52
+ recorded_at: Tue, 17 Dec 2024 13:15:07 GMT
53
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.mailersend.com/v1/inbound/pr9084zw584w63dn
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - "<AUTH>"
12
+ User-Agent:
13
+ - MailerSend-client-ruby/2.0.3
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 11:49:37 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
+ - 8f36b0d8ab765b2b-VIE
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":{"id":"pr9084zw584w63dn","name":"etyrty","address":"g9lz3bsjlnqde2vhvheh@inbound.mailersend.net","domain":null,"dns_checked_at":null,"enabled":true,"filters":[{"type":"match_all","key":null,"comparer":null,"value":null}],"forwards":[{"type":"email","value":"roc@mailerlite.com","secret":null}],"priority":0,"mxValues":{"priority":"10","target":"inbound.mailersend.net"},"catch_type":"all","match_type":"all"}}'
50
+ recorded_at: Tue, 17 Dec 2024 11:49:37 GMT
51
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.mailersend.com/v1/messages?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
+ - Fri, 20 Dec 2024 00:29:22 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-21T00: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
+ - 8f4b8486cf7fec26-ZAG
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":[{"id":"676184e34aed90153c5efa6f","created_at":"2024-12-17T14:04:19.000000Z","updated_at":"2024-12-17T14:04:19.000000Z"},{"id":"6761842161a6327b58a43096","created_at":"2024-12-17T14:01:05.000000Z","updated_at":"2024-12-17T14:01:05.000000Z"},{"id":"67618461855a63f72be3dd1e","created_at":"2024-12-17T14:02:09.000000Z","updated_at":"2024-12-17T14:02:09.000000Z"},{"id":"676184a1278411e22a4cc689","created_at":"2024-12-17T14:03:13.000000Z","updated_at":"2024-12-17T14:03:13.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/messages?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/messages","per_page":10,"to":4}}'
50
+ recorded_at: Fri, 20 Dec 2024 00:29:22 GMT
51
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.mailersend.com/v1/messages/676184e34aed90153c5efa6f
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
+ - Fri, 20 Dec 2024 00:30:12 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-21T00: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
+ - 8f4b85be7b7cec1c-ZAG
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":{"id":"676184e34aed90153c5efa6f","created_at":"2024-12-17T14:04:19.000000Z","updated_at":"2024-12-17T14:04:19.000000Z","emails":[{"id":"676184e45958d4b8b0874611","from":"sender@test-sdk.com","subject":"Test
50
+ Email","text":"This is a test email.","html":"<p>This is a test email.<\/p>","template_id":"","status":"delivered","tags":null,"created_at":"2024-12-17T14:04:20.000000Z","updated_at":"2024-12-17T14:04:35.000000Z","headers":null}],"domain":{"id":"jpzkmgq7e5vl059v","name":"test-sdk.com","dkim":false,"spf":false,"tracking":false,"is_verified":true,"is_cname_verified":false,"is_dns_active":false,"is_cname_active":false,"is_tracking_allowed":false,"has_not_queued_messages":false,"not_queued_messages_count":0,"domain_settings":{"send_paused":false,"track_clicks":true,"track_opens":true,"track_unsubscribe":false,"track_unsubscribe_html":"<p>Click
51
+ here to <a href=\"{{unsubscribe}}\">unsubscribe<\/a><\/p>","track_unsubscribe_html_enabled":false,"track_unsubscribe_plain":"Click
52
+ here to unsubscribe: {{unsubscribe}}","track_unsubscribe_plain_enabled":false,"track_content":true,"custom_tracking_enabled":true,"custom_tracking_subdomain":"email","return_path_subdomain":"mta","inbound_routing_enabled":false,"inbound_routing_subdomain":"","precedence_bulk":false,"ignore_duplicated_recipients":false},"created_at":"2022-04-20T11:36:15.000000Z","updated_at":"2024-09-02T10:02:27.000000Z","totals":{"sent":0,"delivered":119,"hard_bounced":0,"soft_bounced":5}}}}'
53
+ recorded_at: Fri, 20 Dec 2024 00:30:12 GMT
54
+ 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/recipients/663cd8f984e4628b80b976a3
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - "<AUTH>"
12
+ User-Agent:
13
+ - MailerSend-client-ruby/2.0.3
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
+ - Tue, 17 Dec 2024 10:58:23 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-18T00: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
+ - 8f3665d15caa5b1b-VIE
43
+ body:
44
+ encoding: ASCII-8BIT
45
+ string: ''
46
+ recorded_at: Tue, 17 Dec 2024 10:58:23 GMT
47
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.mailersend.com/v1/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/2.0.3
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 10:56:08 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
+ - 8f366282ad455b96-VIE
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":[{"id":"663cd8f984e4628b80b976a3","email":"39af28b9-edc8-4fd3-b4cb-9a7b49326d28@emailhook.site","created_at":"2024-05-09T14:08:57.000000Z","updated_at":"2024-05-09T14:08:57.000000Z","deleted_at":""},{"id":"6734f6d786a360f6c61e7dc3","email":"79e819c7-130f-46b2-8102-503cb27778af@emailhook.site","created_at":"2024-11-13T18:58:31.000000Z","updated_at":"2024-11-13T18:58:31.000000Z","deleted_at":""},{"id":"63189f366eea0254cd053519","email":"bcc@test-sdk.com","created_at":"2022-09-07T13:40:07.000000Z","updated_at":"2022-09-07T13:40:07.000000Z","deleted_at":""},{"id":"66ab7ddbdb1567cdd428632d","email":"bcc@test-sdk.com","created_at":"2024-08-01T12:21:47.000000Z","updated_at":"2024-08-01T12:21:47.000000Z","deleted_at":""},{"id":"63189f35c55e2c48af0f453a","email":"cc@test-sdk.com","created_at":"2022-09-07T13:40:05.000000Z","updated_at":"2022-09-07T13:40:07.000000Z","deleted_at":""},{"id":"66ab7ddac40010224eed771d","email":"cc@test-sdk.com","created_at":"2024-08-01T12:21:46.000000Z","updated_at":"2024-08-01T12:21:46.000000Z","deleted_at":""},{"id":"6655e19fc7f63cea62ee560e","email":"test@mailerlite.com","created_at":"2024-05-28T13:52:31.000000Z","updated_at":"2024-05-28T13:52:31.000000Z","deleted_at":""},{"id":"651beff29da2c59903f1887d","email":"test@mailerlite.com","created_at":"2023-10-03T10:41:54.000000Z","updated_at":"2023-10-03T10:41:54.000000Z","deleted_at":""},{"id":"63189de8c17fea67da00bd1c","email":"java@mailersend.com","created_at":"2022-09-07T13:34:32.000000Z","updated_at":"2022-09-07T13:34:32.000000Z","deleted_at":""},{"id":"66ab7dd8a5fda379924509d7","email":"java@mailersend.com","created_at":"2024-08-01T12:21:44.000000Z","updated_at":"2024-08-01T12:21:44.000000Z","deleted_at":""}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/recipients?page=1","last":null,"prev":null,"next":"https:\/\/api.mailersend.com\/v1\/recipients?page=2"},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/recipients","per_page":10,"to":10}}'
50
+ recorded_at: Tue, 17 Dec 2024 10:56:08 GMT
51
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.mailersend.com/v1/recipients/663cd8f984e4628b80b976a3
6
+ body:
7
+ encoding: ASCII-8BIT
8
+ string: ''
9
+ headers:
10
+ Authorization:
11
+ - "<AUTH>"
12
+ User-Agent:
13
+ - MailerSend-client-ruby/2.0.3
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 10:57: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
+ 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
+ - 8f3663c86d885b84-VIE
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":{"id":"663cd8f984e4628b80b976a3","email":"39af28b9-edc8-4fd3-9a7b49326d28@emailhook.site","created_at":"2024-05-09T14:08:57.000000Z","updated_at":"2024-05-09T14:08:57.000000Z","deleted_at":"","emails":[],"domain":{"id":"jpzkmgq7e5vl059v","name":"test-sdk.com","created_at":"2022-04-20T11:36:15.000000Z","updated_at":"2024-09-02T10:02:27.000000Z"}}}'
50
+ recorded_at: Tue, 17 Dec 2024 10:57:00 GMT
51
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,34 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.mailersend.com/v1/message-schedules/6764a963c5b6195e097987ca
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
+ - Fri, 20 Dec 2024 00:19:44 GMT
27
+ Content-Type:
28
+ - application/json
29
+ body:
30
+ encoding: ASCII-8BIT
31
+ string: ''
32
+ http_version: '1.1'
33
+ recorded_at: Fri, 20 Dec 2024 00:19:44 GMT
34
+ recorded_with: VCR 6.1.0