securevideo-api 0.1.0 → 0.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.
- checksums.yaml +4 -4
- data/README.md +2 -3
- data/lib/securevideo/api.rb +7 -0
- data/lib/securevideo/api/participant.rb +0 -1
- data/lib/securevideo/api/session.rb +2 -2
- data/lib/securevideo/api/user.rb +2 -2
- data/lib/securevideo/api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3a1c4a6871b39468a08423efaf9ee3664e3246d
|
4
|
+
data.tar.gz: 88dc823f7a3baec717a73f7fd90abea5c98aefbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c755452af346bf23dbd48f51da7703ddd1ecb78eac1e89e0588bf61f8d7c0b511d0601b5d7cf03c936f4cf1af44a7e69ee2f67842a4fe2e30a7a15a35ac18090
|
7
|
+
data.tar.gz: c374d7f40a144af37093054531fdc6be32c7a196bcebcc0fae9e2a5f216ba287c7db194a8a1ad3810472c8bebb69fd142bb8c384ab9e8729686697007ea1b07b
|
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
1
|
# Securevideo::Api
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Wrapper Secure Video API[https://hub.securevideo.com/Knowledge/Index/0]
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
@@ -25,6 +23,7 @@ Or install it yourself as:
|
|
25
23
|
### Config client
|
26
24
|
|
27
25
|
```ruby
|
26
|
+
require 'securevideo/api'
|
28
27
|
Securevideo::Api.configure(KEY, SECRET)
|
29
28
|
```
|
30
29
|
|
data/lib/securevideo/api.rb
CHANGED
@@ -32,3 +32,10 @@ module Securevideo
|
|
32
32
|
|
33
33
|
end
|
34
34
|
end
|
35
|
+
SKEY = '8364943fde7842d38095adcfa0244eca20a9a3a1089a40d3b55f96dc88990118'
|
36
|
+
SSECRET = '2a6a362d0e4a48e184afdecaa0794ef5365ba2aab79f49d18d4c544421ed7945'
|
37
|
+
Securevideo::Api.configure(SKEY, SSECRET)
|
38
|
+
|
39
|
+
# q.TimeZoneWindowsId = "Pacific Standard Time"
|
40
|
+
# q.EmailAddress = 'max-pechnikov@yandex.ru'
|
41
|
+
# q.HelpNumber = '4084062331'
|
@@ -12,7 +12,7 @@ module Securevideo
|
|
12
12
|
validates :Participants, presence: true
|
13
13
|
|
14
14
|
def reschedule(schedule_ts)
|
15
|
-
self.class.put("session/#{id}", 'ScheduleTs'
|
15
|
+
self.class.put("session/#{id}", { 'ScheduleTs' => schedule_ts })
|
16
16
|
end
|
17
17
|
|
18
18
|
def destroy
|
@@ -25,7 +25,7 @@ module Securevideo
|
|
25
25
|
# @params month - 2014-01-01
|
26
26
|
#
|
27
27
|
def usage(month)
|
28
|
-
get('usage', month
|
28
|
+
get('usage', { :month => month })
|
29
29
|
end
|
30
30
|
|
31
31
|
def login(user_id, redirect_to_on_expiry)
|
data/lib/securevideo/api/user.rb
CHANGED
@@ -4,7 +4,7 @@ module Securevideo
|
|
4
4
|
include Her::Model
|
5
5
|
uses_api Securevideo::Api.api
|
6
6
|
primary_key :SystemUserId
|
7
|
-
collection_path
|
7
|
+
collection_path 'user'
|
8
8
|
|
9
9
|
attributes :FullName, :EmailAddress, :TimeZoneWindowsId, :HelpNumber
|
10
10
|
validates :FullName, presence: true
|
@@ -14,7 +14,7 @@ module Securevideo
|
|
14
14
|
|
15
15
|
|
16
16
|
def update_password(new_password)
|
17
|
-
res = self.class.put("password/#{id}", "NewPassword"
|
17
|
+
res = self.class.put("password/#{id}", { "NewPassword" => new_password })
|
18
18
|
if res.Message.nil?
|
19
19
|
Struct.new(:status).new(:ok)
|
20
20
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: securevideo-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maxim Pechnikov
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|