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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0a195767592829691258544f46251028d132248c
4
- data.tar.gz: c89abda84e38852f1e67a78e258e711647259624
3
+ metadata.gz: f3a1c4a6871b39468a08423efaf9ee3664e3246d
4
+ data.tar.gz: 88dc823f7a3baec717a73f7fd90abea5c98aefbc
5
5
  SHA512:
6
- metadata.gz: ad359fd0201be37839afdc900a013d03b30b2e8601ac39435c29e8f8ed85992060a68eadf45009462e5f71dfdaa473dc84954f348620e0756ce7243009953b24
7
- data.tar.gz: 326935bca2f24ea824e1d2849c0b33c34f006d2c64ff3d19785b6f5a3f47a5256d6ef6a9e11c765273e0c9ed3411fe260f528fe621ae8d692f7694412052bb79
6
+ metadata.gz: c755452af346bf23dbd48f51da7703ddd1ecb78eac1e89e0588bf61f8d7c0b511d0601b5d7cf03c936f4cf1af44a7e69ee2f67842a4fe2e30a7a15a35ac18090
7
+ data.tar.gz: c374d7f40a144af37093054531fdc6be32c7a196bcebcc0fae9e2a5f216ba287c7db194a8a1ad3810472c8bebb69fd142bb8c384ab9e8729686697007ea1b07b
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
1
  # Securevideo::Api
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/securevideo/api`. To experiment with that code, run `bin/console` for an interactive prompt.
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
 
@@ -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'
@@ -9,7 +9,6 @@ module Securevideo
9
9
  validates :SessionId, presence: true
10
10
 
11
11
  class << self
12
-
13
12
  def add(session_id, participant_options = {})
14
13
  post("participant/#{session_id}", participant_options)
15
14
  end
@@ -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': schedule_ts)
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: month)
28
+ get('usage', { :month => month })
29
29
  end
30
30
 
31
31
  def login(user_id, redirect_to_on_expiry)
@@ -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 "user"
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": new_password)
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
@@ -1,5 +1,5 @@
1
1
  module Securevideo
2
2
  module Api
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
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.1.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-23 00:00:00.000000000 Z
11
+ date: 2015-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon