sendly 3.4.0 → 3.5.3
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/Gemfile.lock +1 -1
- data/README.md +15 -6
- data/lib/sendly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: cfbe3c41474a139bbc696703c0fd728aed567dab46adef7c8cfeba7c12c1925a
|
|
4
|
+
data.tar.gz: 9732bbbd47aa1645b03b3bdaa4b237b47a6a0493d5e5e6da6acf3c19b94f62c9
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9d466ee910b40ec393668fb4945679a4bc111ee96afa422bd3dc47b369bfebce4749debdf87c863136b6ab179be847e77eb6afd00f4a43397af7532b358f9204
|
|
7
|
+
data.tar.gz: 163f373a94fa5882385b237cfae0b99c0b3170cc7ac038df66801270662eb8f3f1b50decc7f20b4ac16cae040b8c92c1647f3800bfe877e4dc76ef3d05247d98
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -86,9 +86,17 @@ client = Sendly::Client.new(
|
|
|
86
86
|
### Send an SMS
|
|
87
87
|
|
|
88
88
|
```ruby
|
|
89
|
+
# Marketing message (default)
|
|
89
90
|
message = client.messages.send(
|
|
90
91
|
to: "+15551234567",
|
|
91
|
-
text: "
|
|
92
|
+
text: "Check out our new features!"
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
# Transactional message (bypasses quiet hours)
|
|
96
|
+
message = client.messages.send(
|
|
97
|
+
to: "+15551234567",
|
|
98
|
+
text: "Your verification code is: 123456",
|
|
99
|
+
message_type: "transactional"
|
|
92
100
|
)
|
|
93
101
|
|
|
94
102
|
puts message.id
|
|
@@ -211,11 +219,12 @@ Use test API keys (`sk_test_v1_xxx`) with these test numbers:
|
|
|
211
219
|
|
|
212
220
|
| Number | Behavior |
|
|
213
221
|
|--------|----------|
|
|
214
|
-
| +
|
|
215
|
-
| +
|
|
216
|
-
| +
|
|
217
|
-
| +
|
|
218
|
-
| +
|
|
222
|
+
| +15005550000 | Success (instant) |
|
|
223
|
+
| +15005550001 | Fails: invalid_number |
|
|
224
|
+
| +15005550002 | Fails: unroutable_destination |
|
|
225
|
+
| +15005550003 | Fails: queue_full |
|
|
226
|
+
| +15005550004 | Fails: rate_limit_exceeded |
|
|
227
|
+
| +15005550006 | Fails: carrier_violation |
|
|
219
228
|
|
|
220
229
|
## Requirements
|
|
221
230
|
|
data/lib/sendly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sendly
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.
|
|
4
|
+
version: 3.5.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sendly
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-12-
|
|
11
|
+
date: 2025-12-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|