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,53 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.mailersend.com/v1/suppressions/hard-bounces
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"domain_id":"jpzkmgq7e5vl059v","ids":["676457b042328d3c98db7600"]}'
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 18:00:58 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
+ - 8f494b91cb13c1b9-BUD
49
+ body:
50
+ encoding: UTF-8
51
+ string: "[]"
52
+ recorded_at: Thu, 19 Dec 2024 18:00:57 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/spam-complaints
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"domain_id":"jpzkmgq7e5vl059v","ids":["676457b1ee359d18093fcb99"]}'
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 18:00:58 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
+ - 8f494b9388621ce6-BUD
49
+ body:
50
+ encoding: UTF-8
51
+ string: "[]"
52
+ recorded_at: Thu, 19 Dec 2024 18:00:58 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/unsubscribes
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"domain_id":"jpzkmgq7e5vl059v","ids":["676457b1252f59f004ea2bac"]}'
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 18:00:58 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
+ - 8f494b958b4b68b5-BUD
49
+ body:
50
+ encoding: UTF-8
51
+ string: "[]"
52
+ recorded_at: Thu, 19 Dec 2024 18:00:58 GMT
53
+ 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/suppressions/blocklist
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 17:40:43 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
+ - 8f492de91db7c1cb-BUD
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":[{"id":"6764599b1cc3ea355ad717a0","type":"exact","pattern":"test@mailerlite.com","domain":null,"created_at":"2024-12-19T17:36:27.000000Z","updated_at":"2024-12-19T17:36:27.000000Z"},{"id":"6761594ff80ab62a9bf0a031","type":"exact","pattern":"39af28b9-edc8-4fd3-b4cb-9a7b49326d28@emailhook.site","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-17T10:58:23.000000Z","updated_at":"2024-12-17T10:58:23.000000Z"},{"id":"6321a890c51d2696140181ec","type":"pattern","pattern":".*@example.com","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":"2022-09-14T10:10:24.000000Z","updated_at":"2022-09-14T10:10:24.000000Z"},{"id":"6321a85da2d201fec0079b8a","type":"pattern","pattern":".*@example.com","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":"2022-09-14T10:09:33.000000Z","updated_at":"2022-09-14T10:09:33.000000Z"},{"id":"6321a827a713dd489a082543","type":"pattern","pattern":".*@example.com","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":"2022-09-14T10:08:39.000000Z","updated_at":"2022-09-14T10:08:39.000000Z"},{"id":"6321a7c0817de8811e0224c9","type":"pattern","pattern":".*@example.com","domain":null,"created_at":"2022-09-14T10:06:56.000000Z","updated_at":"2022-09-14T10:06:56.000000Z"},{"id":"6321a7b8064166fd2d0d0e8d","type":"exact","pattern":"test@example.com","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":"2022-09-14T10:06:48.000000Z","updated_at":"2022-09-14T10:06:48.000000Z"},{"id":"6321a7870468b9213a0e4ab5","type":"pattern","pattern":".*@example.com","domain":null,"created_at":"2022-09-14T10:05:59.000000Z","updated_at":"2022-09-14T10:05:59.000000Z"},{"id":"6321a769eae7c9a9f70e63e7","type":"pattern","pattern":".*@example.com","domain":null,"created_at":"2022-09-14T10:05:29.000000Z","updated_at":"2022-09-14T10:05:29.000000Z"},{"id":"6321a6f307558752cd053fad","type":"pattern","pattern":".*@example.com","domain":null,"created_at":"2022-09-14T10:03:31.000000Z","updated_at":"2022-09-14T10:03:31.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/suppressions\/blocklist?page=1","last":null,"prev":null,"next":"https:\/\/api.mailersend.com\/v1\/suppressions\/blocklist?page=2"},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/suppressions\/blocklist","per_page":10,"to":10}}'
50
+ recorded_at: Thu, 19 Dec 2024 17:40:43 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/suppressions/hard-bounces
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 17:40:43 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
+ - 8f492deae9ea684d-BUD
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/suppressions\/hard-bounces?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/suppressions\/hard-bounces","per_page":10,"to":null}}'
50
+ recorded_at: Thu, 19 Dec 2024 17:40:43 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/suppressions/spam-complaints
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 17:40:43 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
+ - 8f492deca9f01cea-BUD
47
+ body:
48
+ encoding: UTF-8
49
+ 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"}}},{"id":"629f8f551701d31cba0cf02f","created_at":"2022-06-07T17:48:06.000000Z","recipient":{"id":"629f8f551424bb29ba0a706e","email":"test@example.com","created_at":"2022-06-07T17:48:05.000000Z","updated_at":"2022-06-07T17:55:49.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"}}}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/suppressions\/spam-complaints?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/suppressions\/spam-complaints","per_page":10,"to":2}}'
50
+ recorded_at: Thu, 19 Dec 2024 17:40:43 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/suppressions/unsubscribes
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 17:40: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-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
+ - 8f492dee6f9a6844-BUD
47
+ body:
48
+ encoding: UTF-8
49
+ 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"},{"id":"629f8f56dd289029750bcc45","reason":null,"readable_reason":null,"recipient":{"id":"629f8f551424bb29ba0a706e","email":"test@example.com","created_at":"2022-06-07T17:48:05.000000Z","updated_at":"2022-06-07T17:55:49.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":"2022-06-07T17:48:06.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/suppressions\/unsubscribes?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":1,"path":"https:\/\/api.mailersend.com\/v1\/suppressions\/unsubscribes","per_page":10,"to":2}}'
50
+ recorded_at: Thu, 19 Dec 2024 17:40:44 GMT
51
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.mailersend.com/v1/templates/z3m5jgrow5zgdpyo
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 22:42:50 GMT
27
+ Content-Type:
28
+ - text/html; charset=UTF-8
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
+ - 8f3a6db6bb6368af-BUD
47
+ body:
48
+ encoding: UTF-8
49
+ string: ''
50
+ recorded_at: Tue, 17 Dec 2024 22:42:50 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/templates?domain_id=zkq340ezdqkgd796&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 22:37:09 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
+ - 8f3a656638ac68ad-BUD
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/templates?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/templates","per_page":10,"to":null}}'
50
+ recorded_at: Tue, 17 Dec 2024 22:37:09 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/templates/pq3enl6v607g2vwr
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 22:39:32 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
+ - 8f3a68e15d93c1cd-BUD
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"data":{"id":"pq3enl6v607g2vwr","name":"Template","type":"dd","image_path":"https:\/\/storage.googleapis.com\/mailersend-screenshots\/screenshots\/template_pq3enl6v607g2vwr.png","variables":{"variables":[],"personalization":{"account_name":"","support_email":""}},"created_at":"2024-08-09T13:33:27.000000Z","category":null,"categories":[],"domain":null,"template_stats":{"total":0,"queued":0,"sent":0,"rejected":0,"delivered":0,"opened":0,"open_rate":0,"clicked":0,"click_rate":0,"unsubscribed":0,"unsubscribe_rate":0,"complained":0,"complain_rate":0,"last_email_sent_at":null}}}'
50
+ recorded_at: Tue, 17 Dec 2024 22:39:32 GMT
51
+ recorded_with: VCR 6.1.0
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: post
5
+ uri: https://api.mailersend.com/v1/token
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"name":"Test Token","scopes":["email_full"],"domain_id":"example_domain_id"}'
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 02:36:31 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
+ - 8f3386a68cf7ec24-ZAG
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"data":{"id":"1dd8e323b92f9953069f9647ca5929a3575e2f972d85734b27de16cd06360256054a070b783c272","accessToken":"#####","name":"Test
52
+ Token","created_at":"2024-12-17T02:36:31.000000Z","scopes":["email_full"],"has_full":false,"domain":null}}'
53
+ recorded_at: Tue, 17 Dec 2024 02:36:31 GMT
54
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,51 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: delete
5
+ uri: https://api.mailersend.com/v1/token/1dd8e323b92f9953069f9647ca5929a24674e2f972d85734b27de16cd06360256054a070b783c272
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:42:22 GMT
27
+ Content-Type:
28
+ - text/html; charset=UTF-8
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
+ - 8f338f3a3e60ec28-ZAG
47
+ body:
48
+ encoding: UTF-8
49
+ string: ''
50
+ recorded_at: Tue, 17 Dec 2024 02:42:22 GMT
51
+ recorded_with: VCR 6.3.1
@@ -0,0 +1,54 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: put
5
+ uri: https://api.mailersend.com/v1/token/1dd8e323b92f9953069f9647ca5929a24674e2f972d85734b27de16cd06360256054a070b783c272/settings
6
+ body:
7
+ encoding: UTF-8
8
+ string: '{"status":"pause"}'
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 02:40: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-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
+ - 8f338d28a9ac6c86-ZAG
49
+ body:
50
+ encoding: UTF-8
51
+ string: '{"data":{"id":"1dd8e323b92f9953069f9647ca5929a24674e2f972d85734b27de16cd06360256054a070b783c272","name":"Test
52
+ Token","status":"pause","created_at":"2024-12-17T02:36:31.000000Z","scopes":["email_full"],"domain":null}}'
53
+ recorded_at: Tue, 17 Dec 2024 02:40:57 GMT
54
+ recorded_with: VCR 6.3.1