granicus-platform-api 0.9.3 → 0.9.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/granicus-platform-api/client.rb +13 -1
- data/lib/granicus-platform-api/version.rb +1 -1
- metadata +52 -29
- data/.gitignore +0 -5
- data/.rspec +0 -2
- data/granicus-platform-api.gemspec +0 -29
@@ -185,6 +185,10 @@ module GranicusPlatformAPI
|
|
185
185
|
def get_camera(camera_id)
|
186
186
|
call_soap_method(:get_camera, '//ns5:GetCameraResponse/camera', {'CameraID' => camera_id})
|
187
187
|
end
|
188
|
+
|
189
|
+
def savon
|
190
|
+
@client
|
191
|
+
end
|
188
192
|
|
189
193
|
# update a camera
|
190
194
|
def update_camera(camera)
|
@@ -230,6 +234,14 @@ module GranicusPlatformAPI
|
|
230
234
|
def delete_event(event_id)
|
231
235
|
call_soap_method(:delete_event, '//ns4:DeleteEventResponse', {'EventID' => event_id})
|
232
236
|
end
|
237
|
+
|
238
|
+
def get_event_video_location(event_id)
|
239
|
+
call_soap_method(:get_event_video_location, '//ns4:GetEventVideoLocationResponse/url', {'EventID' => event_id})
|
240
|
+
end
|
241
|
+
|
242
|
+
def get_event_video_location_by_uid(event_uid)
|
243
|
+
call_soap_method(:get_event_video_location_by_uid, '//ns4:GetEventVideoLocationByUIDResponse/url', {'EventUID' => event_uid})
|
244
|
+
end
|
233
245
|
|
234
246
|
# return all of the event meta data
|
235
247
|
def get_event_meta_data(event_id)
|
@@ -353,7 +365,7 @@ module GranicusPlatformAPI
|
|
353
365
|
|
354
366
|
def call_soap_method(method, returnfilter, args={})
|
355
367
|
debug = @options[:debug]
|
356
|
-
@response = @client.request
|
368
|
+
@response = @client.request method do
|
357
369
|
soap.namespaces['xmlns:granicus'] = "http://granicus.com/xsd"
|
358
370
|
soap.namespaces['xmlns:SOAP-ENC'] = "http://schemas.xmlsoap.org/soap/encoding/"
|
359
371
|
soap.body = prepare_hash args
|
metadata
CHANGED
@@ -1,19 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: granicus-platform-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Javier Muniz
|
9
|
+
- Dan Melton
|
9
10
|
autorequire:
|
10
11
|
bindir: bin
|
11
12
|
cert_chain: []
|
12
|
-
date: 2012-
|
13
|
+
date: 2012-11-29 00:00:00.000000000 Z
|
13
14
|
dependencies:
|
14
15
|
- !ruby/object:Gem::Dependency
|
15
16
|
name: rspec
|
16
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
17
18
|
none: false
|
18
19
|
requirements:
|
19
20
|
- - ~>
|
@@ -21,10 +22,15 @@ dependencies:
|
|
21
22
|
version: '2.6'
|
22
23
|
type: :development
|
23
24
|
prerelease: false
|
24
|
-
version_requirements:
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - ~>
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: '2.6'
|
25
31
|
- !ruby/object:Gem::Dependency
|
26
32
|
name: simplecov
|
27
|
-
requirement:
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
28
34
|
none: false
|
29
35
|
requirements:
|
30
36
|
- - ~>
|
@@ -32,10 +38,15 @@ dependencies:
|
|
32
38
|
version: 0.5.0
|
33
39
|
type: :development
|
34
40
|
prerelease: false
|
35
|
-
version_requirements:
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 0.5.0
|
36
47
|
- !ruby/object:Gem::Dependency
|
37
48
|
name: hashie
|
38
|
-
requirement:
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
39
50
|
none: false
|
40
51
|
requirements:
|
41
52
|
- - ~>
|
@@ -43,10 +54,15 @@ dependencies:
|
|
43
54
|
version: 1.2.0
|
44
55
|
type: :development
|
45
56
|
prerelease: false
|
46
|
-
version_requirements:
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ~>
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: 1.2.0
|
47
63
|
- !ruby/object:Gem::Dependency
|
48
64
|
name: savon
|
49
|
-
requirement:
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
50
66
|
none: false
|
51
67
|
requirements:
|
52
68
|
- - ~>
|
@@ -54,10 +70,15 @@ dependencies:
|
|
54
70
|
version: 0.9.2
|
55
71
|
type: :development
|
56
72
|
prerelease: false
|
57
|
-
version_requirements:
|
73
|
+
version_requirements: !ruby/object:Gem::Requirement
|
74
|
+
none: false
|
75
|
+
requirements:
|
76
|
+
- - ~>
|
77
|
+
- !ruby/object:Gem::Version
|
78
|
+
version: 0.9.2
|
58
79
|
- !ruby/object:Gem::Dependency
|
59
80
|
name: savon
|
60
|
-
requirement:
|
81
|
+
requirement: !ruby/object:Gem::Requirement
|
61
82
|
none: false
|
62
83
|
requirements:
|
63
84
|
- - ~>
|
@@ -65,10 +86,15 @@ dependencies:
|
|
65
86
|
version: 0.9.2
|
66
87
|
type: :runtime
|
67
88
|
prerelease: false
|
68
|
-
version_requirements:
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
91
|
+
requirements:
|
92
|
+
- - ~>
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.9.2
|
69
95
|
- !ruby/object:Gem::Dependency
|
70
96
|
name: hashie
|
71
|
-
requirement:
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
72
98
|
none: false
|
73
99
|
requirements:
|
74
100
|
- - ~>
|
@@ -76,30 +102,32 @@ dependencies:
|
|
76
102
|
version: 1.2.0
|
77
103
|
type: :runtime
|
78
104
|
prerelease: false
|
79
|
-
version_requirements:
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ~>
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 1.2.0
|
80
111
|
description: Wrapper for the Granicus Open Platform API v1.x
|
81
112
|
email: javier@granicus.com
|
82
113
|
executables: []
|
83
114
|
extensions: []
|
84
115
|
extra_rdoc_files: []
|
85
116
|
files:
|
86
|
-
- .gitignore
|
87
|
-
- .rspec
|
88
|
-
- Changelog
|
89
|
-
- Gemfile
|
90
|
-
- LICENSE
|
91
|
-
- README.rdoc
|
92
|
-
- granicus-platform-api.gemspec
|
93
|
-
- lib/granicus-platform-api.rb
|
94
117
|
- lib/granicus-platform-api/client.rb
|
95
118
|
- lib/granicus-platform-api/entities.rb
|
96
119
|
- lib/granicus-platform-api/granicus-platform-api.xml
|
97
120
|
- lib/granicus-platform-api/version.rb
|
121
|
+
- lib/granicus-platform-api.rb
|
98
122
|
- spec/fixtures/About Stacks.pdf
|
99
123
|
- spec/fixtures/fixtures.yml
|
100
124
|
- spec/fixtures/requests.xml
|
101
125
|
- spec/granicus-platform-api_spec.rb
|
102
126
|
- spec/helper.rb
|
127
|
+
- Changelog
|
128
|
+
- Gemfile
|
129
|
+
- LICENSE
|
130
|
+
- README.rdoc
|
103
131
|
homepage: https://github.com/Granicus/platform-api-rb
|
104
132
|
licenses: []
|
105
133
|
post_install_message:
|
@@ -120,13 +148,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
148
|
version: '0'
|
121
149
|
requirements: []
|
122
150
|
rubyforge_project: granicus-platform-api
|
123
|
-
rubygems_version: 1.8.
|
151
|
+
rubygems_version: 1.8.24
|
124
152
|
signing_key:
|
125
153
|
specification_version: 3
|
126
154
|
summary: Granicus Open Platform API 1.x Wrapper
|
127
|
-
test_files:
|
128
|
-
- spec/fixtures/About Stacks.pdf
|
129
|
-
- spec/fixtures/fixtures.yml
|
130
|
-
- spec/fixtures/requests.xml
|
131
|
-
- spec/granicus-platform-api_spec.rb
|
132
|
-
- spec/helper.rb
|
155
|
+
test_files: []
|
data/.gitignore
DELETED
data/.rspec
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
2
|
-
$:.push File.expand_path("../lib", __FILE__)
|
3
|
-
require "granicus-platform-api/version"
|
4
|
-
|
5
|
-
Gem::Specification.new do |s|
|
6
|
-
s.name = "granicus-platform-api"
|
7
|
-
s.version = GranicusPlatformAPI::VERSION
|
8
|
-
s.platform = Gem::Platform::RUBY
|
9
|
-
s.authors = ["Javier Muniz"]
|
10
|
-
s.email = "javier@granicus.com"
|
11
|
-
s.summary = "Granicus Open Platform API 1.x Wrapper"
|
12
|
-
s.homepage = "https://github.com/Granicus/platform-api-rb"
|
13
|
-
s.description = "Wrapper for the Granicus Open Platform API v1.x"
|
14
|
-
|
15
|
-
s.rubyforge_project = "granicus-platform-api"
|
16
|
-
|
17
|
-
s.files = `git ls-files`.split("\n")
|
18
|
-
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
-
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
-
s.require_paths = ["lib"]
|
21
|
-
|
22
|
-
s.add_development_dependency('rspec', '~> 2.6')
|
23
|
-
s.add_development_dependency('simplecov', '~> 0.5.0')
|
24
|
-
s.add_development_dependency('hashie', '~> 1.2.0')
|
25
|
-
s.add_development_dependency('savon', '~> 0.9.2')
|
26
|
-
|
27
|
-
s.add_dependency('savon', '~> 0.9.2')
|
28
|
-
s.add_dependency('hashie', '~> 1.2.0')
|
29
|
-
end
|