Ziggeo 1.2 → 1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +143 -1
- data/lib/Ziggeo.rb +12 -8
- data/lib/classes/ZiggeoMetaProfileProcess.rb +31 -0
- data/lib/classes/ZiggeoMetaProfiles.rb +23 -0
- data/lib/classes/ZiggeoVideos.rb +8 -0
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4e784e93fee9fab465670a8d882440e5e9bfb00f
|
4
|
+
data.tar.gz: f776fecf1eb2aaaa032799c4485310f86d0fef12
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53f15d34c497b736595a5a69dd98cb653e47551a3b9a8ad86d8e4f1d3e42e339dc4e31f0bf5297396641757baba70ccab46857758b6f229690dd5efb7fa0b4ce
|
7
|
+
data.tar.gz: 46f64c9d1d8bf990acf4dc1974f419c77fa246d80e09c101445d47dac8374ac89aba2c2cc852774cda39c7613a2f524d067c74f2614b837667e6ce8266044a88
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Ziggeo Ruby Server SDK 1.
|
1
|
+
# Ziggeo Ruby Server SDK 1.3
|
2
2
|
|
3
3
|
Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only
|
4
4
|
two lines of code in your site, service or app. This is the Ruby Server SDK repository.
|
@@ -114,6 +114,19 @@ Arguments
|
|
114
114
|
- tokens_or_keys: *Comma-separated list with the desired videos tokens or keys (Limit: 100 tokens or keys).*
|
115
115
|
|
116
116
|
|
117
|
+
#### Stats Bulk
|
118
|
+
|
119
|
+
Get stats for multiple videos by tokens or keys.
|
120
|
+
|
121
|
+
```ruby
|
122
|
+
ziggeo.videos().stats_bulk(arguments = nil)
|
123
|
+
```
|
124
|
+
|
125
|
+
Arguments
|
126
|
+
- tokens_or_keys: *Comma-separated list with the desired videos tokens or keys (Limit: 100 tokens or keys).*
|
127
|
+
- summarize: *Boolean. Set it to TRUE to get the stats summarized. Set it to FALSE to get the stats for each video in a separate array. Default: TRUE.*
|
128
|
+
|
129
|
+
|
117
130
|
#### Download Video
|
118
131
|
|
119
132
|
Download the video data file
|
@@ -134,6 +147,16 @@ ziggeo.videos().download_image(token_or_key)
|
|
134
147
|
|
135
148
|
|
136
149
|
|
150
|
+
#### Get Stats
|
151
|
+
|
152
|
+
Get the video's stats
|
153
|
+
|
154
|
+
```ruby
|
155
|
+
ziggeo.videos().get_stats(token_or_key)
|
156
|
+
```
|
157
|
+
|
158
|
+
|
159
|
+
|
137
160
|
#### Push To Service
|
138
161
|
|
139
162
|
Push a video to a provided push service.
|
@@ -524,6 +547,125 @@ Arguments
|
|
524
547
|
- scale: *Specify the image scale of your watermark (a value between 0.0 and 1.0)*
|
525
548
|
|
526
549
|
|
550
|
+
### MetaProfiles
|
551
|
+
|
552
|
+
The meta profiles resource allows you to access and create meta profiles for your app. Each meta profile may contain one process or more.
|
553
|
+
|
554
|
+
|
555
|
+
#### Create
|
556
|
+
|
557
|
+
Create a new meta profile.
|
558
|
+
|
559
|
+
```ruby
|
560
|
+
ziggeo.metaProfiles().create(arguments = nil)
|
561
|
+
```
|
562
|
+
|
563
|
+
Arguments
|
564
|
+
- key: *Meta Profile profile key.*
|
565
|
+
- title: *Meta Profile profile title.*
|
566
|
+
|
567
|
+
|
568
|
+
#### Index
|
569
|
+
|
570
|
+
Get list of meta profiles.
|
571
|
+
|
572
|
+
```ruby
|
573
|
+
ziggeo.metaProfiles().index(arguments = nil)
|
574
|
+
```
|
575
|
+
|
576
|
+
Arguments
|
577
|
+
- limit: *Limit the number of returned meta profiles. Can be set up to 100.*
|
578
|
+
- skip: *Skip the first [n] entries.*
|
579
|
+
- reverse: *Reverse the order in which meta profiles are returned.*
|
580
|
+
|
581
|
+
|
582
|
+
#### Get
|
583
|
+
|
584
|
+
Get a single meta profile
|
585
|
+
|
586
|
+
```ruby
|
587
|
+
ziggeo.metaProfiles().get(token_or_key)
|
588
|
+
```
|
589
|
+
|
590
|
+
|
591
|
+
|
592
|
+
#### Delete
|
593
|
+
|
594
|
+
Delete the meta profile
|
595
|
+
|
596
|
+
```ruby
|
597
|
+
ziggeo.metaProfiles().delete(token_or_key)
|
598
|
+
```
|
599
|
+
|
600
|
+
|
601
|
+
|
602
|
+
### MetaProfileProcess
|
603
|
+
|
604
|
+
The process resource allows you to directly access all process associated with a single meta profile.
|
605
|
+
|
606
|
+
|
607
|
+
#### Index
|
608
|
+
|
609
|
+
Return all processes associated with a meta profile
|
610
|
+
|
611
|
+
```ruby
|
612
|
+
ziggeo.metaProfileProcess().index(meta_token_or_key)
|
613
|
+
```
|
614
|
+
|
615
|
+
|
616
|
+
|
617
|
+
#### Get
|
618
|
+
|
619
|
+
Get a single process
|
620
|
+
|
621
|
+
```ruby
|
622
|
+
ziggeo.metaProfileProcess().get(meta_token_or_key, token_or_key)
|
623
|
+
```
|
624
|
+
|
625
|
+
|
626
|
+
|
627
|
+
#### Delete
|
628
|
+
|
629
|
+
Delete the process
|
630
|
+
|
631
|
+
```ruby
|
632
|
+
ziggeo.metaProfileProcess().delete(meta_token_or_key, token_or_key)
|
633
|
+
```
|
634
|
+
|
635
|
+
|
636
|
+
|
637
|
+
#### Create Video Analysis Process
|
638
|
+
|
639
|
+
Create a new video analysis meta process
|
640
|
+
|
641
|
+
```ruby
|
642
|
+
ziggeo.metaProfileProcess().create_video_analysis_process(meta_token_or_key)
|
643
|
+
```
|
644
|
+
|
645
|
+
|
646
|
+
|
647
|
+
#### Create Audio Transcription Process
|
648
|
+
|
649
|
+
Create a new audio transcription meta process
|
650
|
+
|
651
|
+
```ruby
|
652
|
+
ziggeo.metaProfileProcess().create_audio_transcription_process(meta_token_or_key)
|
653
|
+
```
|
654
|
+
|
655
|
+
|
656
|
+
|
657
|
+
#### Create Nsfw Process
|
658
|
+
|
659
|
+
Create a new nsfw filter meta process
|
660
|
+
|
661
|
+
```ruby
|
662
|
+
ziggeo.metaProfileProcess().create_nsfw_process(meta_token_or_key, arguments = nil)
|
663
|
+
```
|
664
|
+
|
665
|
+
Arguments
|
666
|
+
- nsfw_action: *One of the following three: approve, reject, nothing.*
|
667
|
+
|
668
|
+
|
527
669
|
### Webhooks
|
528
670
|
|
529
671
|
The webhooks resource allows you to create or delete webhooks related to a given application.
|
data/lib/Ziggeo.rb
CHANGED
@@ -9,6 +9,8 @@ require_relative "classes/ZiggeoVideos"
|
|
9
9
|
require_relative "classes/ZiggeoStreams"
|
10
10
|
require_relative "classes/ZiggeoEffectProfiles"
|
11
11
|
require_relative "classes/ZiggeoEffectProfileProcess"
|
12
|
+
require_relative "classes/ZiggeoMetaProfiles"
|
13
|
+
require_relative "classes/ZiggeoMetaProfileProcess"
|
12
14
|
require_relative "classes/ZiggeoAuthtokens"
|
13
15
|
require_relative "classes/ZiggeoAuth"
|
14
16
|
|
@@ -25,6 +27,8 @@ class Ziggeo
|
|
25
27
|
@streams = nil
|
26
28
|
@effectProfiles = nil
|
27
29
|
@effectProfileProcess = nil
|
30
|
+
@metaProfiles = nil
|
31
|
+
@metaProfileProcess = nil
|
28
32
|
@authtokens = nil
|
29
33
|
@auth = nil
|
30
34
|
if (ENV["ZIGGEO_URL"] != nil)
|
@@ -51,18 +55,18 @@ class Ziggeo
|
|
51
55
|
return @streams
|
52
56
|
end
|
53
57
|
|
54
|
-
def
|
55
|
-
if (@
|
56
|
-
@
|
58
|
+
def metaProfiles()
|
59
|
+
if (@metaProfiles == nil)
|
60
|
+
@metaProfiles = ZiggeoMetaProfiles.new(self)
|
57
61
|
end
|
58
|
-
return @
|
62
|
+
return @metaProfiles
|
59
63
|
end
|
60
64
|
|
61
|
-
def
|
62
|
-
if (@
|
63
|
-
@
|
65
|
+
def metaProfileProcess()
|
66
|
+
if (@metaProfileProcess == nil)
|
67
|
+
@metaProfileProcess = ZiggeoMetaProfileProcess.new(self)
|
64
68
|
end
|
65
|
-
return @
|
69
|
+
return @metaProfileProcess
|
66
70
|
end
|
67
71
|
|
68
72
|
def authtokens()
|
@@ -0,0 +1,31 @@
|
|
1
|
+
class ZiggeoMetaProfileProcess
|
2
|
+
|
3
|
+
def initialize(application)
|
4
|
+
@application = application
|
5
|
+
end
|
6
|
+
|
7
|
+
def index(meta_token_or_key)
|
8
|
+
return @application.connect.getJSON('/metaprofiles/' + meta_token_or_key + '/process')
|
9
|
+
end
|
10
|
+
|
11
|
+
def get(meta_token_or_key, token_or_key)
|
12
|
+
return @application.connect.getJSON('/metaprofiles/' + meta_token_or_key + '/process/' + token_or_key + '')
|
13
|
+
end
|
14
|
+
|
15
|
+
def delete(meta_token_or_key, token_or_key)
|
16
|
+
return @application.connect.delete('/metaprofiles/' + meta_token_or_key + '/process/' + token_or_key + '')
|
17
|
+
end
|
18
|
+
|
19
|
+
def create_video_analysis_process(meta_token_or_key)
|
20
|
+
return @application.connect.postJSON('/metaprofiles/' + meta_token_or_key + '/process/analysis')
|
21
|
+
end
|
22
|
+
|
23
|
+
def create_audio_transcription_process(meta_token_or_key)
|
24
|
+
return @application.connect.postJSON('/metaprofiles/' + meta_token_or_key + '/process/transcription')
|
25
|
+
end
|
26
|
+
|
27
|
+
def create_nsfw_process(meta_token_or_key, data = nil)
|
28
|
+
return @application.connect.postJSON('/metaprofiles/' + meta_token_or_key + '/process/nsfw', data)
|
29
|
+
end
|
30
|
+
|
31
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
class ZiggeoMetaProfiles
|
2
|
+
|
3
|
+
def initialize(application)
|
4
|
+
@application = application
|
5
|
+
end
|
6
|
+
|
7
|
+
def create(data = nil)
|
8
|
+
return @application.connect.postJSON('/metaprofiles/', data)
|
9
|
+
end
|
10
|
+
|
11
|
+
def index(data = nil)
|
12
|
+
return @application.connect.getJSON('/metaprofiles/', data)
|
13
|
+
end
|
14
|
+
|
15
|
+
def get(token_or_key)
|
16
|
+
return @application.connect.getJSON('/metaprofiles/' + token_or_key + '')
|
17
|
+
end
|
18
|
+
|
19
|
+
def delete(token_or_key)
|
20
|
+
return @application.connect.delete('/metaprofiles/' + token_or_key + '')
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
data/lib/classes/ZiggeoVideos.rb
CHANGED
@@ -20,6 +20,10 @@ class ZiggeoVideos
|
|
20
20
|
return @application.connect.postJSON('/videos/get_bulk', data)
|
21
21
|
end
|
22
22
|
|
23
|
+
def stats_bulk(data = nil)
|
24
|
+
return @application.connect.postJSON('/videos/stats_bulk', data)
|
25
|
+
end
|
26
|
+
|
23
27
|
def download_video(token_or_key)
|
24
28
|
return @application.connect.get('/videos/' + token_or_key + '/video')
|
25
29
|
end
|
@@ -28,6 +32,10 @@ class ZiggeoVideos
|
|
28
32
|
return @application.connect.get('/videos/' + token_or_key + '/image')
|
29
33
|
end
|
30
34
|
|
35
|
+
def get_stats(token_or_key)
|
36
|
+
return @application.connect.getJSON('/videos/' + token_or_key + '/stats')
|
37
|
+
end
|
38
|
+
|
31
39
|
def push_to_service(token_or_key, data = nil)
|
32
40
|
return @application.connect.postJSON('/videos/' + token_or_key + '/push', data)
|
33
41
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: Ziggeo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '1.
|
4
|
+
version: '1.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ziggeo, Inc
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -54,6 +54,8 @@ files:
|
|
54
54
|
- lib/classes/ZiggeoConnect.rb
|
55
55
|
- lib/classes/ZiggeoEffectProfileProcess.rb
|
56
56
|
- lib/classes/ZiggeoEffectProfiles.rb
|
57
|
+
- lib/classes/ZiggeoMetaProfileProcess.rb
|
58
|
+
- lib/classes/ZiggeoMetaProfiles.rb
|
57
59
|
- lib/classes/ZiggeoStreams.rb
|
58
60
|
- lib/classes/ZiggeoVideos.rb
|
59
61
|
- lib/classes/ZiggeoWebhooks.rb
|
@@ -77,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
79
|
version: '0'
|
78
80
|
requirements: []
|
79
81
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.5.2
|
82
|
+
rubygems_version: 2.5.2.3
|
81
83
|
signing_key:
|
82
84
|
specification_version: 4
|
83
85
|
summary: The Ziggeo ServerSDK gem.
|