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,53 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mailersend.com/v1/message-schedules
|
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:08:56 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
|
+
- 8f4b669a2911ec28-ZAG
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","last":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":null,"last_page":1,"links":[{"url":null,"label":"«
|
50
|
+
Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/message-schedules?page=1","label":"1","active":true},{"url":null,"label":"Next
|
51
|
+
»","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/message-schedules","per_page":25,"to":null,"total":0}}'
|
52
|
+
recorded_at: Fri, 20 Dec 2024 00:08:56 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,34 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
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: 200
|
23
|
+
message: OK
|
24
|
+
headers:
|
25
|
+
Date:
|
26
|
+
- Fri, 20 Dec 2024 00:17:00 GMT
|
27
|
+
Content-Type:
|
28
|
+
- application/json
|
29
|
+
body:
|
30
|
+
encoding: UTF-8
|
31
|
+
string: '{"data":{"id":"6764a963c5b6195e097987ca","status":"scheduled","send_at":"2024-12-25T00:00:00Z","created_at":"2024-12-19T00:00:00Z"}}'
|
32
|
+
http_version: '1.1'
|
33
|
+
recorded_at: Fri, 20 Dec 2024 00:17:00 GMT
|
34
|
+
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-activity?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:48:21 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
|
+
- 8f3a75ce39126c86-ZAG
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-activity?page=1","last":null,"prev":null,"next":null},"meta":{"current_page":1,"from":null,"path":"https:\/\/api.mailersend.com\/v1\/sms-activity","per_page":10,"to":null}}'
|
50
|
+
recorded_at: Tue, 17 Dec 2024 22:48:21 GMT
|
51
|
+
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-inbounds
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"sms_number_id":"0p7kx4xd7el9yjre","forward_url":"https://mailersend.com","name":"my-inbound-route","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:52:53 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
|
+
- 8f4af7311d51ec2a-ZAG
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":{"id":"0p7kx4xw0eg9yjre","name":"my-inbound-route","filter":null,"forward_url":"https:\/\/mailersend.com","enabled":true,"secret":"gttmDBRsg1t5O4jmQOvam9xMOjkRBNOV","created_at":"2024-12-19T22:52:53.000000Z"}}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 22:52:53 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-inbounds/0p7kx4xw0eg9yjre
|
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:59:29 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
|
+
- 8f4b00db7bd46c85-ZAG
|
43
|
+
body:
|
44
|
+
encoding: ASCII-8BIT
|
45
|
+
string: ''
|
46
|
+
recorded_at: Thu, 19 Dec 2024 22:59:29 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-inbounds/6vywj2lpml7oqzd1
|
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:49: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-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
|
+
- 8f4af19858faec20-ZAG
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":{"id":"6vywj2lpml7oqzd1","name":"Javi","filter":null,"forward_url":"https:\/\/webhook.site\/a077fc56-ab3c-4f0a-89a3-d6dbdc3b4ce4","enabled":true,"secret":"kHUWLzdWQamGzOpEdKTLqs4Qftw1Uaf","created_at":"2024-03-04T10:57:48.000000Z","sms_number":{"id":"0p7kx4xd7el9yjre","telephone_number":"+18321569450","paused":false,"created_at":"2024-02-19T14:52:31.000000Z"}}}'
|
50
|
+
recorded_at: Thu, 19 Dec 2024 22:49:04 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-inbounds?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
|
+
- Thu, 19 Dec 2024 22:47:45 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
|
+
- 8f4aefab6c5dec28-ZAG
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"id":"6vywj2lpml7oqzd1","name":"Javi","filter":null,"forward_url":"https:\/\/webhook.site\/a077fc56-ab3c-4f0a-89a3-d6dbdc3b4ce4","enabled":true,"secret":"kHUWLzdWQiZvAapnvzQTLqs4Qftw1Uaf","created_at":"2024-03-04T10:57:48.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-inbounds?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-inbounds?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-inbounds?page=1","label":"1","active":true},{"url":null,"label":"Next
|
51
|
+
»","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-inbounds","per_page":10,"to":1,"total":1}}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 22:47:45 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-inbounds/0p7kx4xw0eg9yjre
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"sms_number_id":"0p7kx4xd7el9yjre","forward_url":"https://mailersend.com","name":"my-inbound-route","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:58:56 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
|
+
- 8f4b000fdba4ec22-ZAG
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":{"id":"0p7kx4xw0eg9yjre","name":"my-inbound-route","filter":null,"forward_url":"https:\/\/mailersend.com","enabled":true,"secret":"kHUWLzdWQamGzOpEdKTLqs4Qftw1Uaf","created_at":"2024-12-19T22:52:53.000000Z"}}'
|
52
|
+
recorded_at: Thu, 19 Dec 2024 22:58:56 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://api.mailersend.com/v1/sms-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
|
+
- Thu, 19 Dec 2024 23:51:19 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
|
+
- 8f4b4ccbba06ec1a-ZAG
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"id":"6764a963c5b6195e097987ca","from":"+1920473652","to":["+1920473652"],"text":"This
|
50
|
+
is a test SMS message.","paused":false,"created_at":"2024-12-19T23:16:51.000000Z"},{"id":"6764aac27b83f3b2cb2ecc99","from":"+1920473652","to":["+1920473652"],"text":"This
|
51
|
+
is a test SMS message.","paused":false,"created_at":"2024-12-19T23:22:42.000000Z"},{"id":"6764af1d36b27d1958fcb7b1","from":"+1920473652","to":["+1920473652"],"text":"This
|
52
|
+
is a test SMS message.","paused":false,"created_at":"2024-12-19T23:41:17.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","prev":null,"next":null},"meta":{"current_page":1,"from":1,"last_page":1,"links":[{"url":null,"label":"«
|
53
|
+
Previous","active":false},{"url":"https:\/\/api.mailersend.com\/v1\/sms-messages?page=1","label":"1","active":true},{"url":null,"label":"Next
|
54
|
+
»","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-messages","per_page":10,"to":3,"total":3}}'
|
55
|
+
recorded_at: Thu, 19 Dec 2024 23:51:19 GMT
|
56
|
+
recorded_with: VCR 6.1.0
|
@@ -0,0 +1,26 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: delete
|
5
|
+
uri: https://api.mailersend.com/v1/sms-numbers/example_sms_number_id
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Authorization:
|
11
|
+
- Bearer <AUTH>
|
12
|
+
Content-Type:
|
13
|
+
- application/json
|
14
|
+
response:
|
15
|
+
status:
|
16
|
+
code: 204
|
17
|
+
message: No Content
|
18
|
+
headers:
|
19
|
+
Content-Type:
|
20
|
+
- application/json
|
21
|
+
body:
|
22
|
+
encoding: UTF-8
|
23
|
+
string: ''
|
24
|
+
http_version: '1.1'
|
25
|
+
recorded_at: Tue, 17 Dec 2024 23:17:50 GMT
|
26
|
+
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-numbers/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
|
+
- Tue, 17 Dec 2024 23:15: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-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
|
+
- 8f3a9de54cf2ec1c-ZAG
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":{"id":"0p7kx4xd7el9yjre","telephone_number":"+18553300000","paused":false,"created_at":"2024-02-19T14:52:31.000000Z"}}'
|
50
|
+
recorded_at: Tue, 17 Dec 2024 23:15:43 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-numbers?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:12:47 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
|
+
- 8f3a99952b66ec24-ZAG
|
47
|
+
body:
|
48
|
+
encoding: UTF-8
|
49
|
+
string: '{"data":[{"id":"0p7kx4xd7el9yjre","telephone_number":"+18553300000","paused":false,"created_at":"2024-02-19T14:52:31.000000Z"}],"links":{"first":"https:\/\/api.mailersend.com\/v1\/sms-numbers?page=1","last":"https:\/\/api.mailersend.com\/v1\/sms-numbers?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-numbers?page=1","label":"1","active":true},{"url":null,"label":"Next
|
51
|
+
»","active":false}],"path":"https:\/\/api.mailersend.com\/v1\/sms-numbers","per_page":10,"to":1,"total":1}}'
|
52
|
+
recorded_at: Tue, 17 Dec 2024 23:12:47 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-numbers/0p7kx4xd7el9yjre
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{"paused":true}'
|
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:17:50 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
|
+
- 8f3aa0fc6a186c85-ZAG
|
49
|
+
body:
|
50
|
+
encoding: UTF-8
|
51
|
+
string: '{"data":{"id":"0p7kx4xd7el9yjre","telephone_number":"+18553300000","paused":true,"created_at":"2024-02-19T14:52:31.000000Z"}}'
|
52
|
+
recorded_at: Tue, 17 Dec 2024 23:17:50 GMT
|
53
|
+
recorded_with: VCR 6.1.0
|