shoutout_lite 1.0.0 → 1.0.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/lib/shoutout.rb +23 -22
- 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: '024190bf73dbd6c6cfc06f8603b6add8a3e3e2a9bdc91ac7d8763dcc954c578a'
|
4
|
+
data.tar.gz: efd686aee000d2a687f10591e6a0fd1edb51b8628e0a1a6eb3f78a4f6d628faf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1816502d3c6da39d6bed5ecf58a838b45293b74f2ba15282d882334d8527416892c1ca3a634357a8a511340e596dc1127a18e3156c5fc2909a5285c3381e8f81
|
7
|
+
data.tar.gz: 29b6432ea506f3143528a2c6dd36b788551330285048707276defb156c528075148b1fc2bc95a6aa0787ad27724da2506095593b5c0543c1e719be5e1d8f2865
|
data/lib/shoutout.rb
CHANGED
@@ -1,27 +1,28 @@
|
|
1
1
|
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
2
|
+
module Shoutout
|
3
|
+
class Client
|
4
|
+
# Init
|
5
|
+
# shoutout=Shoutout::Client.new("APIKEY HERE")
|
6
|
+
#
|
7
|
+
#
|
8
|
+
# Example:
|
9
|
+
# >> response=shoutout.sendSms(from:"ShoutTEST",to:"94778811111",body:"This is a test message")
|
10
|
+
# {"status"=>"1001", "description"=>"submit success", "cost"=>1, "responses"=>[{"destination"=>"94778811111", "reference_id"=>"ca31e340-c8f2-11eb-94b7-45623297139f", "status"=>"1001", "cost"=>1}]}
|
11
|
+
#
|
12
|
+
# Arguments:
|
13
|
+
# apikey: (String) ShoutOUT Apikey
|
14
|
+
# from: (String) sender ID
|
15
|
+
# to: (Array) receivers phone numbers
|
16
|
+
# body: (String) message body
|
17
|
+
attr_reader :apikey
|
18
|
+
def initialize(apikey)
|
19
|
+
@apikey=apikey
|
20
|
+
end
|
20
21
|
|
21
|
-
|
22
|
-
|
23
|
-
|
22
|
+
|
23
|
+
def sendSms(from:,to:,body:)
|
24
|
+
return SMS.send(self.apikey,from,to,body)
|
25
|
+
end
|
24
26
|
end
|
25
27
|
end
|
26
|
-
|
27
28
|
require 'shoutout/sms'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoutout_lite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ShoutOUT Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06-
|
11
|
+
date: 2021-06-18 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: ShoutOUT SMS API integration
|
14
14
|
email: support@getshoutout.com
|