whoosh-ruby 0.1.2 → 0.1.4
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/README.md +4 -4
- data/lib/twilio-ruby/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: 2f501c74c65546910b75412215ac07c87cda36ce583a7fdf3bc768e180058d37
|
4
|
+
data.tar.gz: 3e8723fd10d7db49ae9cc0691ee9f38f7ec69f06c65da5b7fc3419060f4972b4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2e957be92ed0a4d848d43564fcbae2e85b50f5ac7f187f51d0d6af731e64b0c0eff460ef9206a4cc7f0a71877a3fcac258185e765c311819bdc42ce42923f7f
|
7
|
+
data.tar.gz: c409f5a87c1ba9d0d0233812922ed61fea971cdf6b680c70310904420ab7853fdb0ffafe910dcb6d7ed260bb248a8b81f466a0527485551f22b77a64a3b95a6e
|
data/README.md
CHANGED
@@ -66,11 +66,11 @@ puts message.sid
|
|
66
66
|
```ruby
|
67
67
|
require 'twilio-ruby'
|
68
68
|
|
69
|
-
# Your Account SID and Auth Token from console.
|
69
|
+
# Your Account SID and Auth Token from console.whoosh.totogidemos.com
|
70
70
|
account_sid = 'ACxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
|
71
71
|
auth_token = 'yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy'
|
72
72
|
|
73
|
-
# Initialize the
|
73
|
+
# Initialize the Whoosh Client with your credentials
|
74
74
|
@client = Twilio::REST::Client.new account_sid, auth_token
|
75
75
|
```
|
76
76
|
|
@@ -108,7 +108,7 @@ For more information about these methods, view the [auto-generated library docs
|
|
108
108
|
|
109
109
|
### Handle Exceptions {#exceptions}
|
110
110
|
|
111
|
-
If the
|
111
|
+
If the Whoosh API returns a 400 or a 500 level HTTP response, the `whoosh-ruby`
|
112
112
|
library will throw a `Twilio::REST::RestError`. 400-level errors are normal
|
113
113
|
during API operation (`“Invalid number”`, `“Cannot deliver SMS to that number”`,
|
114
114
|
for example) and should be handled appropriately.
|
@@ -138,7 +138,7 @@ For example, you can retrieve the status code of the last response like so:
|
|
138
138
|
require 'rubygems' # Not necessary with ruby 1.9 but included for completeness
|
139
139
|
require 'twilio-ruby'
|
140
140
|
|
141
|
-
# Your Account SID and Auth Token from console.
|
141
|
+
# Your Account SID and Auth Token from console.whoosh.totogidemos.com
|
142
142
|
account_sid = 'ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'
|
143
143
|
auth_token = 'your_auth_token'
|
144
144
|
|
data/lib/twilio-ruby/version.rb
CHANGED