iqsms 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +10 -9
- data/README.md +3 -3
- data/lib/iqsms/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b73e4e7ae8226bda24910eb2ebbf5ec1a8af4df9
|
4
|
+
data.tar.gz: dcb89cf83c3dbb9dd3b0ccff66a711d892765278
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42bd4c2ad0669cb4bfcc05bba390c01f722950185c4d5f789b67786d443f448bc4c52ecb41179038e52694f52366736b7c0d0cafe5bdf1b3ccd1526db3d25241
|
7
|
+
data.tar.gz: d3671f692418d6e1323e3ea273a6e4d5a7f26a07f714e057b4ffeede257d4cd03fbe972e4d3ab147311394432a3e74d1d62a33d7985b9691e84d56fc203cff74
|
data/.gitignore
CHANGED
@@ -1,9 +1,10 @@
|
|
1
|
-
/.bundle/
|
2
|
-
/.yardoc
|
3
|
-
/Gemfile.lock
|
4
|
-
/_yardoc/
|
5
|
-
/coverage/
|
6
|
-
/doc/
|
7
|
-
/pkg/
|
8
|
-
/spec/reports/
|
9
|
-
/tmp/
|
1
|
+
/.bundle/
|
2
|
+
/.yardoc
|
3
|
+
/Gemfile.lock
|
4
|
+
/_yardoc/
|
5
|
+
/coverage/
|
6
|
+
/doc/
|
7
|
+
/pkg/
|
8
|
+
/spec/reports/
|
9
|
+
/tmp/
|
10
|
+
*.gem
|
data/README.md
CHANGED
@@ -88,7 +88,7 @@ Phones are sent as-is, so any phone number normalization must be done in your ap
|
|
88
88
|
```ruby
|
89
89
|
message = YourSMSModel.create(phone: '+11234567899', text: 'hey there', sender: 'one of your senders', client_id: '1')
|
90
90
|
send_sms_response = client.send_sms(message)
|
91
|
-
if send_sms_response.accepted?
|
91
|
+
if send_sms_response.status.accepted?
|
92
92
|
# do your logic to update message smsc_id and status, which are in send_sms_response.statuses
|
93
93
|
end
|
94
94
|
```
|
@@ -98,7 +98,7 @@ end
|
|
98
98
|
```ruby
|
99
99
|
messages = YourSMSModel.where(phone: 'bla')
|
100
100
|
status_response = client.status(messages)
|
101
|
-
if status_response.accepted?
|
101
|
+
if status_response.status.accepted?
|
102
102
|
status_response.statuses # Same as send_sms endpoint
|
103
103
|
end
|
104
104
|
```
|
@@ -122,7 +122,7 @@ Then call endpoint as usual:
|
|
122
122
|
```ruby
|
123
123
|
status_queue_limit = 10 # default is 5
|
124
124
|
status_queue_response = client.status_queue(status_queue_limit)
|
125
|
-
if status_queue_response.accepted?
|
125
|
+
if status_queue_response.status.accepted?
|
126
126
|
status_queue_response.statuses # same as send_sms and status end-points
|
127
127
|
end
|
128
128
|
```
|
data/lib/iqsms/version.rb
CHANGED