xstreamly 0.6.8 → 0.6.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/xstreamly.rb +2 -2
- metadata +3 -3
data/lib/xstreamly.rb
CHANGED
@@ -15,8 +15,8 @@ module XStreamly
|
|
15
15
|
@http.use_ssl = true
|
16
16
|
end
|
17
17
|
|
18
|
-
def send(channel, eventName, data)
|
19
|
-
req = Net::HTTP::Post.new(URI.encode('/api/v1.0/'+@appKey+'/channels/'+channel+'/events/'+eventName), initheader = {'Content-Type' =>'application/json'})
|
18
|
+
def send(channel, eventName, data,persisted = false)
|
19
|
+
req = Net::HTTP::Post.new(URI.encode('/api/v1.0/'+@appKey+'/channels/'+channel+'/events/'+eventName+'?persisted='+persisted.to_s), initheader = {'Content-Type' =>'application/json'})
|
20
20
|
req.basic_auth @email, @password
|
21
21
|
|
22
22
|
req.body = data
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xstreamly
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 6
|
9
|
-
-
|
10
|
-
version: 0.6.
|
9
|
+
- 9
|
10
|
+
version: 0.6.9
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Brian Willard
|