raydash 2.1.2 → 2.2.0

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.
Files changed (3) hide show
  1. data/lib/raydash/version.rb +1 -1
  2. data/lib/raydash.rb +12 -1
  3. metadata +3 -3
@@ -1,3 +1,3 @@
1
1
  module Raydash
2
- VERSION = "2.1.2"
2
+ VERSION = "2.2.0"
3
3
  end
data/lib/raydash.rb CHANGED
@@ -67,7 +67,12 @@ module Raydash
67
67
  result = getRequest(path)
68
68
  return result.body
69
69
  end
70
-
70
+ # Create a content token
71
+ def self.createContentToken(contentUrl)
72
+ path = "/api/2/contenttoken"
73
+ result=postRequest(path,{'userid'=>self.userid,'secret'=>self.secret,'contentUrl'=>contentUrl})
74
+ return result.body
75
+ end
71
76
  # Change to a random stream with the specified customGoup
72
77
  def self.changeStreamRand(output_token,params={})
73
78
  customGroup=params[:customGroup]
@@ -105,6 +110,12 @@ module Raydash
105
110
  result.value()
106
111
  return JSON.parse(result.body)
107
112
  end
113
+ # Retrieve a token for playing a remote stream
114
+ def self.getRestreamToken(url)
115
+ path="/api/2/restreamtoken";
116
+ result=postRequest(path,{'userid'=>self.userid,'secret'=>self.secret,'url'=>url})
117
+ return result.body
118
+ end
108
119
  def self.startRecord(token)
109
120
  path="/api/2/startRecord/#{token}"
110
121
  result = self.getRequest(path + "?userid=#{self.userid}&secret=#{self.secret}")
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 2
7
- - 1
8
7
  - 2
9
- version: 2.1.2
8
+ - 0
9
+ version: 2.2.0
10
10
  platform: ruby
11
11
  authors:
12
12
  - Gershon Bialer
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-08-30 00:00:00 -05:00
17
+ date: 2011-10-01 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency