elibom 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/elibom.rb +1 -1
- data/lib/elibom/client.rb +8 -0
- metadata +10 -5
data/lib/elibom.rb
CHANGED
data/lib/elibom/client.rb
CHANGED
@@ -22,6 +22,10 @@ module Elibom
|
|
22
22
|
raise ArgumentError, "Text is too long, max 160 characters" if args[:text].length > 160
|
23
23
|
|
24
24
|
body = { "to" => args[:to], "text" => args[:text] }
|
25
|
+
if !args[:campaign].nil? then
|
26
|
+
body["campaign"] = args[:campaign]
|
27
|
+
end
|
28
|
+
|
25
29
|
post '/messages', body
|
26
30
|
end
|
27
31
|
|
@@ -34,6 +38,10 @@ module Elibom
|
|
34
38
|
raise ArgumentError, "Invalid argument ':schedule_date'" unless args[:schedule_date].respond_to?('strftime')
|
35
39
|
|
36
40
|
body = { "to" => args[:to], "text" => args[:text], "scheduleDate" => args[:schedule_date].strftime('%Y-%m-%d %H:%M') }
|
41
|
+
if !args[:campaign].nil? then
|
42
|
+
body["campaign"] = args[:campaign]
|
43
|
+
end
|
44
|
+
|
37
45
|
post '/messages', body
|
38
46
|
end
|
39
47
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elibom
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-03-08 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: json
|
17
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
@@ -22,7 +22,12 @@ dependencies:
|
|
22
22
|
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ! '>='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '0'
|
26
31
|
description: A client of the Elibom API
|
27
32
|
email:
|
28
33
|
- german.escobar@elibom.com
|
@@ -53,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
53
58
|
version: '0'
|
54
59
|
requirements: []
|
55
60
|
rubyforge_project:
|
56
|
-
rubygems_version: 1.8.
|
61
|
+
rubygems_version: 1.8.23
|
57
62
|
signing_key:
|
58
63
|
specification_version: 3
|
59
64
|
summary: Elibom API client
|