mailersend-ruby 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +2 -2
- data/lib/mailersend/domains/domains.rb +12 -1
- data/lib/mailersend/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a66c4f7f88e98bd6821f116955e8b9f32f62f85b2854a994ddc0c1d388b4b0cf
|
4
|
+
data.tar.gz: 2613c660cf0d502576cde414c1d2eeebeabd004c9dd152734cc7dae681bfd035
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35a475e87db0310862be164d3e77d412ecc9e7544ca411906c47888fc71dcd2d56596c49168025bf8a9f3580977e7c51b5dc13acea4d12bd257ae54ca4913735
|
7
|
+
data.tar.gz: fe1d0b0830ac2dd2cc7a7df895a97d83bb50563c234781b3ab9d21638f297e273b250e4556647c77acce3cfe3be0f1ae60269d1686d9f250f7951c51a84bc5e5
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -296,7 +296,7 @@ ms_domains.list
|
|
296
296
|
require "mailersend-ruby"
|
297
297
|
|
298
298
|
ms_domains = Mailersend::Domains.new
|
299
|
-
ms_domains.
|
299
|
+
ms_domains.single(domain_id: "idofdomain12412")
|
300
300
|
```
|
301
301
|
|
302
302
|
### Delete a domain
|
@@ -381,7 +381,7 @@ ms_webhooks.list(domain_id: "xxx2241ll")
|
|
381
381
|
require "mailersend-ruby"
|
382
382
|
|
383
383
|
ms_webhooks = Mailersend::Webhooks.new
|
384
|
-
ms_webhooks.
|
384
|
+
ms_webhooks.single(webhook_id: "zzz2241ll")
|
385
385
|
```
|
386
386
|
|
387
387
|
### Create a webhook
|
@@ -17,7 +17,18 @@ module Mailersend
|
|
17
17
|
@verified = verified
|
18
18
|
end
|
19
19
|
|
20
|
-
def list(
|
20
|
+
def list(page: nil, limit: nil, verified: nil)
|
21
|
+
hash = {
|
22
|
+
"page" => page,
|
23
|
+
"limit" => limit,
|
24
|
+
"verified" => verified
|
25
|
+
}
|
26
|
+
response = client.http.get(URI::HTTPS.build(host: API_BASE_HOST, path: "/v1/domains",
|
27
|
+
query: URI.encode_www_form(hash.compact)))
|
28
|
+
puts response
|
29
|
+
end
|
30
|
+
|
31
|
+
def single(domain_id:, page: nil, limit: nil, verified: nil)
|
21
32
|
hash = {
|
22
33
|
"page" => page,
|
23
34
|
"limit" => limit,
|
data/lib/mailersend/version.rb
CHANGED