resend 1.15.0 → 1.16.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/lib/resend/broadcasts.rb +7 -0
- data/lib/resend/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: c2baa04b3700513eaf33e626540ffd369fb2536b68e10b2cde3cccfcd1f4c4f6
|
|
4
|
+
data.tar.gz: c964e14ea899bcd871f0fee71bac5c93f754e2fcade13d3db5e414779fb08636
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f330bb479be38dfe8dcf769c93e3c1a4eba37499b324a95ee8f023508c63245c431c0007dab8f8889e299778da66e74ec93dc2f84daaeedae746d4083d1918a2
|
|
7
|
+
data.tar.gz: 101369e946c4242e8f688bac3cfcd020e4eafad0f1b80264e78f3c128f36ca2ae5caab006f180af122f479d15e4217a553af986feed05145ab513c355ed32eba
|
data/lib/resend/broadcasts.rb
CHANGED
|
@@ -52,6 +52,13 @@ module Resend
|
|
|
52
52
|
Resend::Request.new(path, {}, "post").perform
|
|
53
53
|
end
|
|
54
54
|
|
|
55
|
+
# https://resend.com/docs/api-reference/broadcasts/duplicate-broadcast
|
|
56
|
+
# @note Creates a new draft with the same content as the source, named after it with " (copy)" appended.
|
|
57
|
+
def duplicate(broadcast_id = "")
|
|
58
|
+
path = "broadcasts/#{broadcast_id}/duplicate"
|
|
59
|
+
Resend::Request.new(path, {}, "post").perform
|
|
60
|
+
end
|
|
61
|
+
|
|
55
62
|
# https://resend.com/docs/api-reference/broadcasts/delete-broadcast
|
|
56
63
|
def remove(broadcast_id = "")
|
|
57
64
|
path = "broadcasts/#{broadcast_id}"
|
data/lib/resend/version.rb
CHANGED