promotexter 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/README.md +8 -4
- data/lib/promotexter/client.rb +1 -0
- data/lib/promotexter/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: 2d307b7e18c03c138cd1b2f7007f8fee176b48ed61ce1620590d38a596c35575
|
4
|
+
data.tar.gz: df8144312256dcc4a12c9c5c3c55e808866ed1c6d0614e4a352088cd73ac1fbb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b5d6b39186a2a7faca1e4632d203b96f9b42d0e1e966143860745c551a49c37395d8bcd90c19a15dc37c241d560991c670aeebc25d1e66e93697608429bd87c
|
7
|
+
data.tar.gz: dc9f46ea06b80735453c689917068d3a5f1fe9020e7a3a918d55b21eb59f888a867578e30b65240aa162bb97991d486c5b31820c0751bfd0ebeff5c6ece274d8
|
data/.gitignore
CHANGED
data/README.md
CHANGED
@@ -33,14 +33,18 @@ require 'promotexter'
|
|
33
33
|
|
34
34
|
# send sms
|
35
35
|
client = Promotexter::Client.new
|
36
|
-
client.send_message(
|
36
|
+
client.send_message(text: 'This is a test', to: '639171234567')
|
37
37
|
|
38
38
|
# or simply
|
39
|
-
Promotexter::Client.send_message(
|
39
|
+
Promotexter::Client.send_message(text: 'This is a test', to: '639171234567')
|
40
40
|
|
41
41
|
# or you can also pass the configurations as arguments
|
42
42
|
client = Promotexter::Client.new(api_key:'key', api_secret:'secret', sender_id:'xxxxxx')
|
43
|
-
client.send_message(
|
43
|
+
client.send_message(text: 'This is a test', to:'639171234567')
|
44
|
+
|
45
|
+
# overriding of sender_id parameter from send_message
|
46
|
+
client = Promotexter::Client.new
|
47
|
+
client.send_message(text: 'Override sender_id on demand', to: '639171234567', sender_id: 'Sample')
|
44
48
|
```
|
45
49
|
If you want to use the delivery reports, head over to your initializer and uncomment the dlr_callback & dlr_reports lines
|
46
50
|
|
@@ -108,4 +112,4 @@ Originally created by Nujian Den Mark Meralpis. Updated by Scrambled Eggs Softwa
|
|
108
112
|
Thanks to all [awesome contributors](https://github.com/denmarkmeralpis/promotexter/graphs/contributors). Cheers!
|
109
113
|
|
110
114
|
|
111
|
-
2016-2018
|
115
|
+
2016-2018
|
data/lib/promotexter/client.rb
CHANGED
data/lib/promotexter/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: promotexter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nujian Den Mark Meralpis
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2018-10-
|
15
|
+
date: 2018-10-04 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: bundler
|