sendout 0.1.0 → 0.1.1
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 +48 -9
- data/lib/sendout/version.rb +1 -1
- data/sendout-0.1.0.gem +0 -0
- data/sendout.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29cb2c668bb07e4485bc82d69d76625051f7b6ab
|
4
|
+
data.tar.gz: da5c7b91628f1db64659c58c7be7348615d51ba8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 171169a51130caea135c360a42880bc34df565e56bca613024a4a0d4a6c4e1fb4511f6b1fd5687fcc0769637281f82e67d35c810ba3a3015817fd0144721030d
|
7
|
+
data.tar.gz: a64f321c4fe168052d0f961a0b2d98dca945a65969386e00327a3c68291aca788562c6f54bdeeaf2f65e11cc725960d4f76de2f5d5c8c59ef55f30a5199bdbf2
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Sendout
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
A ruby gem createb by [SmartTechys](http://www.smarttechys.co.ao) for the [SendOut](https://www.sendoutapp.com) API that allows your application to send text messages (Angolan and International).
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -20,22 +18,63 @@ Or install it yourself as:
|
|
20
18
|
|
21
19
|
$ gem install sendout
|
22
20
|
|
21
|
+
## Setup
|
22
|
+
|
23
|
+
- Make sure you've registed at [SendOut](https://www.sendoutapp.com) and have produced your token(api_token) and id(your registered phone number).
|
24
|
+
- Setup your environments variables
|
25
|
+
```ruby
|
26
|
+
SO_API_ID=244911222333
|
27
|
+
SO_API_TOKEN=your_api_token_obtained_from_control_panel_at_sendout
|
28
|
+
```
|
29
|
+
|
23
30
|
## Usage
|
24
31
|
|
25
|
-
|
32
|
+
At the moment there's only two sendOut endpoints in production:
|
26
33
|
|
27
|
-
|
34
|
+
- Check your balance
|
35
|
+
- Send one or bulk message
|
36
|
+
|
37
|
+
### Check your balance
|
38
|
+
|
39
|
+
```ruby
|
40
|
+
Sendout.check_balance
|
41
|
+
|
42
|
+
# It will return a json
|
28
43
|
|
29
|
-
|
44
|
+
{
|
45
|
+
"cliente": {
|
46
|
+
"saldo": "512"
|
47
|
+
"enviada": "203"
|
48
|
+
}
|
49
|
+
}
|
50
|
+
```
|
51
|
+
|
52
|
+
### Send one or bulk message
|
53
|
+
|
54
|
+
```ruby
|
55
|
+
Sendout.send_sms(num, msg)
|
56
|
+
|
57
|
+
# The num has to be an array and the msg an string. This method will return a boolean
|
58
|
+
```
|
59
|
+
## Help and Docs
|
60
|
+
|
61
|
+
- [SendOut](https://www.sendoutapp.com)
|
62
|
+
- [RDoc](https://www.rubydoc.info/gems/0.1.0)
|
30
63
|
|
31
|
-
|
64
|
+
## Development
|
65
|
+
|
66
|
+
- You can fork it
|
67
|
+
- bundle
|
68
|
+
- bundle rake exec
|
69
|
+
- Make your feature addition or fix a bug
|
70
|
+
- Do not mess with the rakefile version or history (do not submit version bump PLEASE or put it in a different commit so we can ignore it when pull)
|
71
|
+
- Send us the pull request
|
32
72
|
|
33
73
|
## Contributing
|
34
74
|
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
75
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/smaziano/sendout. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
76
|
|
37
77
|
|
38
78
|
## License
|
39
79
|
|
40
80
|
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
data/lib/sendout/version.rb
CHANGED
data/sendout-0.1.0.gem
ADDED
Binary file
|
data/sendout.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{A Ruby gem for SendOut API(https://www.sendoutapp.com) made by SmartTechys(http://smarttechys.co.ao).}
|
13
13
|
spec.description = %q{A ruby gem to connect your application with SendOut API to send text messages(Internacional) from Angola.}
|
14
|
-
spec.homepage = "https://github.com/smaziano/sendout
|
14
|
+
spec.homepage = "https://github.com/smaziano/sendout"
|
15
15
|
spec.license = "MIT"
|
16
16
|
|
17
17
|
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sendout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sergio Maziano
|
@@ -84,8 +84,9 @@ files:
|
|
84
84
|
- bin/setup
|
85
85
|
- lib/sendout.rb
|
86
86
|
- lib/sendout/version.rb
|
87
|
+
- sendout-0.1.0.gem
|
87
88
|
- sendout.gemspec
|
88
|
-
homepage: https://github.com/smaziano/sendout
|
89
|
+
homepage: https://github.com/smaziano/sendout
|
89
90
|
licenses:
|
90
91
|
- MIT
|
91
92
|
metadata: {}
|