Ziggeo 2.15 → 2.21

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: b892852246fde1e5d04093b5fc30e50537157712
4
- data.tar.gz: fc843c3d1ccf5c8e73f06b576c9bfef3ed08e88b
2
+ SHA256:
3
+ metadata.gz: 2ea85cd0131051bb2cd2423bfc941463b8802084cb8c04121033f10ec57d95c6
4
+ data.tar.gz: 024b0fb3c5c2e42b0267a1de79a16a47c03ec68505cb202c60aeece5140b8a14
5
5
  SHA512:
6
- metadata.gz: 2f97d2b8be28c5f574d7f3ee177b078759d703a140f0e4e97686a4a7636acbfe4f094b85f827c486db0cd99ac9abb916987ed032809bd5342419306146955795
7
- data.tar.gz: 846cc0463f9a8d8b589747fefe0ff0f4d53fb678aeeea07d596c11b4212c6ede450d486ff878939375673325a1b81088e33d935e62f83383381c8bf67b458057
6
+ metadata.gz: 54e5514fbed543598e0c07dad155ad2972b04c5ed7998ea6e99bb0046306d8ab86e3ae4789f7b7066aa432f2d8f3a89cffb9e8d9cdb075c4857149c0eeffd6c0
7
+ data.tar.gz: bc1b79c007b1f22667e100e284c000cb936d1481218ebc92fe64cdef3669402c6abe19cb02456f178aa285f57efd122b29066b0420d9532fd0ae6465afa6d6cd
data/README.md CHANGED
@@ -1,19 +1,128 @@
1
- # Ziggeo Ruby Server SDK 2.15
2
-
3
- Ziggeo API (https://ziggeo.com) allows you to integrate video recording and playback with only
4
- two lines of code in your site, service or app. This is the Ruby Server SDK repository.
5
-
6
- Pull requests welcome.
7
-
8
-
9
- ## Installation
1
+ # Ziggeo's Ruby Server SDK
2
+
3
+ latest version: **2.21**
4
+
5
+ ## Index
6
+
7
+ 1. [Why Ziggeo's Ruby Server Side SDK?](#why-us)
8
+ 2. [Prerequisites](#prerequisites)
9
+ 1. [Download](#download)
10
+ 2. [How to use](#how-to-use)
11
+ 3. [Installation](#install)
12
+ 3. [Client-Side Integration](#codes-client-side)
13
+ 4. [Server-Side Integration](#codes-server-side)
14
+ 1. [Init](#codes-init)
15
+ 2. [Available Methods](#codes-methods)
16
+ 3. [Methods for Videos](#method-videos)
17
+ 1. [Videos Index](#method-videos-index)
18
+ 2. [Videos Count](#method-videos-count)
19
+ 3. [Videos Get](#method-videos-get)
20
+ 4. [Videos Get Bulk](#method-videos-get-bulk)
21
+ 5. [Videos Stats Bulk](#method-videos-stats-bulk)
22
+ 6. [Videos Download Video](#method-videos-download-video)
23
+ 7. [Videos Download Image](#method-videos-download-image)
24
+ 8. [Videos Get Stats](#method-videos-get-stats)
25
+ 9. [Videos Push To Service](#method-videos-push-to-service)
26
+ 10. [Videos Apply Effect](#method-videos-apply-effect)
27
+ 11. [Videos Apply Meta](#method-videos-apply-meta)
28
+ 12. [Videos Update](#method-videos-update)
29
+ 13. [Videos Update Bulk](#method-videos-update-bulk)
30
+ 14. [Videos Delete](#method-videos-delete)
31
+ 15. [Videos Create](#method-videos-create)
32
+ 16. [Videos Analytics](#method-videos-analytics)
33
+ 4. [Methods for Streams](#method-streams)
34
+ 1. [Streams Index](#method-streams-index)
35
+ 2. [Streams Get](#method-streams-get)
36
+ 3. [Streams Download Video](#method-streams-download-video)
37
+ 4. [Streams Download Image](#method-streams-download-image)
38
+ 5. [Streams Push To Service](#method-streams-push-to-service)
39
+ 6. [Streams Delete](#method-streams-delete)
40
+ 7. [Streams Create](#method-streams-create)
41
+ 8. [Streams Attach Image](#method-streams-attach-image)
42
+ 9. [Streams Attach Video](#method-streams-attach-video)
43
+ 10. [Streams Attach Subtitle](#method-streams-attach-subtitle)
44
+ 11. [Streams Bind](#method-streams-bind)
45
+ 5. [Methods for Authtokens](#method-authtokens)
46
+ 1. [Authtokens Get](#method-authtokens-get)
47
+ 2. [Authtokens Update](#method-authtokens-update)
48
+ 3. [Authtokens Delete](#method-authtokens-delete)
49
+ 4. [Authtokens Create](#method-authtokens-create)
50
+ 6. [Methods for Application](#method-application)
51
+ 1. [Application Get](#method-application-get)
52
+ 2. [Application Update](#method-application-update)
53
+ 3. [Application Get Stats](#method-application-get-stats)
54
+ 7. [Methods for Effect Profiles](#method-effect-profiles)
55
+ 1. [Effect Profiles Create](#method-effect-profiles-create)
56
+ 2. [Effect Profiles Index](#method-effect-profiles-index)
57
+ 3. [Effect Profiles Get](#method-effect-profiles-get)
58
+ 4. [Effect Profiles Delete](#method-effect-profiles-delete)
59
+ 5. [Effect Profiles Update](#method-effect-profiles-update)
60
+ 8. [Methods for Effect Profile Process](#method-effect-profile-process)
61
+ 1. [Effect Profile Process Index](#method-effect-profile-process-index)
62
+ 2. [Effect Profile Process Get](#method-effect-profile-process-get)
63
+ 3. [Effect Profile Process Delete](#method-effect-profile-process-delete)
64
+ 4. [Effect Profile Process Create Filter Process](#method-effect-profile-process-create-filter-process)
65
+ 5. [Effect Profile Process Create Watermark Process](#method-effect-profile-process-create-watermark-process)
66
+ 6. [Effect Profile Process Edit Watermark Process](#method-effect-profile-process-edit-watermark-process)
67
+ 9. [Methods for Meta Profiles](#method-meta-profiles)
68
+ 1. [Meta Profiles Create](#method-meta-profiles-create)
69
+ 2. [Meta Profiles Index](#method-meta-profiles-index)
70
+ 3. [Meta Profiles Get](#method-meta-profiles-get)
71
+ 4. [Meta Profiles Delete](#method-meta-profiles-delete)
72
+ 10. [Methods for Meta Profile Process](#method-meta-profile-process)
73
+ 1. [Meta Profile Process Index](#method-meta-profile-process-index)
74
+ 2. [Meta Profile Process Get](#method-meta-profile-process-get)
75
+ 3. [Meta Profile Process Delete](#method-meta-profile-process-delete)
76
+ 4. [Meta Profile Process Create Video Analysis Process](#method-meta-profile-process-create-video-analysis-process)
77
+ 5. [Meta Profile Process Create Audio Transcription Process](#method-meta-profile-process-create-audio-transcription-process)
78
+ 6. [Meta Profile Process Create Nsfw Process](#method-meta-profile-process-create-nsfw-process)
79
+ 11. [Methods for Webhooks](#method-webhooks)
80
+ 1. [Webhooks Create](#method-webhooks-create)
81
+ 2. [Webhooks Confirm](#method-webhooks-confirm)
82
+ 3. [Webhooks Delete](#method-webhooks-delete)
83
+ 12. [Methods for Analytics](#method-analytics)
84
+ 1. [Analytics Get](#method-analytics-get)
85
+ 5. [License](#license)
86
+
87
+
88
+ ## Why Ziggeo's Ruby Server Side SDK? <a name="why-us"></a>
89
+
90
+ [Ziggeo](https://ziggeo.com) is a powerfull, whitelabel video SAAS with a goal to help people with their video revolution. And what better way to do it than with an award winning multimedia API.
91
+
92
+ This server side SDK is designed to help you ease the communication with Ziggeo API. In that it allows you to privately communicate between your server and our server through requests of what you want to happen.
93
+
94
+ It offers you pre-built functionality to call and manipulate and there are demos in /demos/ directory for you to check out and use as starting point.
95
+
96
+ ### Who it is for?
97
+
98
+ 1. Do you have a system that requires calls to be made which should not be seen on client side?
99
+ 2. Want to have an easier time handling the media as it comes to your server?
100
+ 3. Want something that is simple and easy to use?
101
+ 4. You need some powerful features high end video services provide?
102
+
103
+ If any of the above is "Yes" then you are in the right place as this SDK is for you!
104
+
105
+ ## Prerequisites <a name="prerequisites"></a>
106
+
107
+ ### Download <a name="download"></a>
108
+
109
+ You will want to either download the SDK zip file or to pull it in as git repository into your own project.
110
+
111
+ To clone it you would go into your project folder and then
112
+ ```ruby git clone https://github.com/Ziggeo/ZiggeoRubySdk```
113
+
114
+ ### How to use <a name="how-to-use"></a>
115
+
116
+ To start using the Ruby SDK you would need to initialize the Ziggeo class with application token, private token and possibly encryption token. The token and keys can be found within the Ziggeo application once you log into your account, under Overview page.
117
+
118
+
119
+ ### Installation<a name="install"></a>
10
120
 
11
121
  For Rails applications, you can simply install this repository as a gem.
12
122
 
13
123
  gem "Ziggeo"
14
124
 
15
-
16
- ## Client-Side Integration
125
+ ## Client-Side Integration<a name="codes-client-side"></a>
17
126
 
18
127
  For the client-side integration, you need to add these assets to your html file:
19
128
 
@@ -26,7 +135,9 @@ Then, you need to specify your api token:
26
135
  ```html
27
136
  <script>
28
137
  var ziggeoApplication = new ZiggeoApi.V2.Application({
29
- token: "APPLICATION_TOKEN"
138
+ token: "APPLICATION_TOKEN",
139
+ webrtc_streaming_if_necessary: true,
140
+ webrtc_on_mobile: true
30
141
  });
31
142
  </script>
32
143
  ```
@@ -45,9 +156,9 @@ To embed a player for an existing video, add:
45
156
 
46
157
  For the full documentation, please visit [ziggeo.com](https://ziggeo.com/docs).
47
158
 
159
+ ## Server-Side Integration<a name="codes-server-side"></a>
48
160
 
49
-
50
- ## Server-Side Integration
161
+ ### Initialize Ziggeo class in your code<a name="codes-init"></a>
51
162
 
52
163
  You can integrate the Server SDK as follows:
53
164
 
@@ -55,758 +166,727 @@ You can integrate the Server SDK as follows:
55
166
  @ziggeo = Ziggeo.new("*token*", "*private_key*", "*encryption_key*")
56
167
  ```
57
168
 
169
+ Config is optional and if not specified (recommended), the Config file will be used instead.
58
170
 
59
- ## Server-Side Methods
171
+ ### Available Methods<a name="codes-methods"></a>
60
172
 
61
- ### Videos
173
+ Currently available methods are branched off within different categories:
62
174
 
63
- The videos resource allows you to access all single videos. Each video may contain more than one stream.
64
-
175
+ 1.Videos
176
+ 1.Streams
177
+ 1.Authtokens
178
+ 1.Application
179
+ 1.Effect Profiles
180
+ 1.Effect Profile Process
181
+ 1.Meta Profiles
182
+ 1.Meta Profile Process
183
+ 1.Webhooks
184
+ 1.Analytics
65
185
 
66
- #### Index
67
-
68
- Query an array of videos (will return at most 50 videos by default). Newest videos come first.
186
+ Each of this sections has their own actions and they are explained bellow
69
187
 
70
- ```ruby
71
- ziggeo.videos().index(arguments = nil)
72
- ```
73
-
74
- Arguments
75
- - limit: *Limit the number of returned videos. Can be set up to 100.*
76
- - skip: *Skip the first [n] entries.*
77
- - reverse: *Reverse the order in which videos are returned.*
78
- - states: *Filter videos by state*
79
- - tags: *Filter the search result to certain tags, encoded as a comma-separated string*
80
188
 
81
189
 
82
- #### Count
83
-
84
- Get the video count for the application.
190
+ ### Videos<a name="method-videos"></a>
85
191
 
86
- ```ruby
87
- ziggeo.videos().count(arguments = nil)
88
- ```
89
-
90
- Arguments
91
- - states: *Filter videos by state*
92
- - tags: *Filter the search result to certain tags, encoded as a comma-separated string*
93
192
 
193
+ The videos resource allows you to access all single videos. Each video may contain more than one stream.
94
194
 
95
- #### Get
96
-
97
- Get a single video by token or key.
195
+ #### Index<a name="method-meta-profile-process-index"></a>
98
196
 
99
- ```ruby
100
- ziggeo.videos().get(token_or_key)
101
- ```
102
-
197
+ Query an array of videos (will return at most 50 videos by default). Newest videos come first.
103
198
 
199
+ ```ruby
200
+ ziggeo.videos().index(arguments = nil)
201
+ ```
104
202
 
105
- #### Get Bulk
106
-
107
- Get multiple videos by tokens or keys.
203
+ Arguments
204
+ - limit: *Limit the number of returned videos. Can be set up to 100.*
205
+ - skip: *Skip the first [n] entries.*
206
+ - reverse: *Reverse the order in which videos are returned.*
207
+ - states: *Filter videos by state*
208
+ - tags: *Filter the search result to certain tags, encoded as a comma-separated string*
108
209
 
109
- ```ruby
110
- ziggeo.videos().get_bulk(arguments = nil)
111
- ```
112
-
113
- Arguments
114
- - tokens_or_keys: *Comma-separated list with the desired videos tokens or keys (Limit: 100 tokens or keys).*
210
+ #### Count<a name="method-videos-count"></a>
115
211
 
212
+ Get the video count for the application.
116
213
 
117
- #### Stats Bulk
118
-
119
- Get stats for multiple videos by tokens or keys.
214
+ ```ruby
215
+ ziggeo.videos().count(arguments = nil)
216
+ ```
120
217
 
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.*
218
+ Arguments
219
+ - states: *Filter videos by state*
220
+ - tags: *Filter the search result to certain tags, encoded as a comma-separated string*
128
221
 
222
+ #### Get<a name="method-analytics-get"></a>
129
223
 
130
- #### Download Video
131
-
132
- Download the video data file
224
+ Get a single video by token or key.
133
225
 
134
- ```ruby
135
- ziggeo.videos().download_video(token_or_key)
136
- ```
137
-
226
+ ```ruby
227
+ ziggeo.videos().get(token_or_key)
228
+ ```
138
229
 
230
+ #### Get Bulk<a name="method-videos-get-bulk"></a>
139
231
 
140
- #### Download Image
141
-
142
- Download the image data file
232
+ Get multiple videos by tokens or keys.
143
233
 
144
- ```ruby
145
- ziggeo.videos().download_image(token_or_key)
146
- ```
147
-
234
+ ```ruby
235
+ ziggeo.videos().get_bulk(arguments = nil)
236
+ ```
148
237
 
238
+ Arguments
239
+ - tokens_or_keys: *Comma-separated list with the desired videos tokens or keys (Limit: 100 tokens or keys).*
149
240
 
150
- #### Get Stats
151
-
152
- Get the video's stats
241
+ #### Stats Bulk<a name="method-videos-stats-bulk"></a>
153
242
 
154
- ```ruby
155
- ziggeo.videos().get_stats(token_or_key)
156
- ```
157
-
243
+ Get stats for multiple videos by tokens or keys.
158
244
 
245
+ ```ruby
246
+ ziggeo.videos().stats_bulk(arguments = nil)
247
+ ```
159
248
 
160
- #### Push To Service
161
-
162
- Push a video to a provided push service.
249
+ Arguments
250
+ - tokens_or_keys: *Comma-separated list with the desired videos tokens or keys (Limit: 100 tokens or keys).*
251
+ - 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.*
163
252
 
164
- ```ruby
165
- ziggeo.videos().push_to_service(token_or_key, arguments = nil)
166
- ```
167
-
168
- Arguments
169
- - pushservicetoken: *Push Services's token (from the Push Services configured for the app)*
253
+ #### Download Video<a name="method-streams-download-video"></a>
170
254
 
255
+ Download the video data file
171
256
 
172
- #### Apply Effect
173
-
174
- Apply an effect profile to a video.
257
+ ```ruby
258
+ ziggeo.videos().download_video(token_or_key)
259
+ ```
175
260
 
176
- ```ruby
177
- ziggeo.videos().apply_effect(token_or_key, arguments = nil)
178
- ```
179
-
180
- Arguments
181
- - effectprofiletoken: *Effect Profile token (from the Effect Profiles configured for the app)*
261
+ #### Download Image<a name="method-streams-download-image"></a>
182
262
 
263
+ Download the image data file
183
264
 
184
- #### Apply Meta
185
-
186
- Apply a meta profile to a video.
265
+ ```ruby
266
+ ziggeo.videos().download_image(token_or_key)
267
+ ```
187
268
 
188
- ```ruby
189
- ziggeo.videos().apply_meta(token_or_key, arguments = nil)
190
- ```
191
-
192
- Arguments
193
- - metaprofiletoken: *Meta Profile token (from the Meta Profiles configured for the app)*
269
+ #### Get Stats<a name="method-application-get-stats"></a>
194
270
 
271
+ Get the video's stats
195
272
 
196
- #### Update
197
-
198
- Update single video by token or key.
273
+ ```ruby
274
+ ziggeo.videos().get_stats(token_or_key)
275
+ ```
199
276
 
200
- ```ruby
201
- ziggeo.videos().update(token_or_key, arguments = nil)
202
- ```
203
-
204
- Arguments
205
- - min_duration: *Minimal duration of video*
206
- - max_duration: *Maximal duration of video*
207
- - tags: *Video Tags*
208
- - key: *Unique (optional) name of video*
209
- - volatile: *Automatically removed this video if it remains empty*
210
- - expiration_days: *After how many days will this video be deleted*
277
+ #### Push To Service<a name="method-streams-push-to-service"></a>
211
278
 
279
+ Push a video to a provided push service.
212
280
 
213
- #### Update Bulk
214
-
215
- Update multiple videos by token or key.
281
+ ```ruby
282
+ ziggeo.videos().push_to_service(token_or_key, arguments = nil)
283
+ ```
216
284
 
217
- ```ruby
218
- ziggeo.videos().update_bulk(arguments = nil)
219
- ```
220
-
221
- Arguments
222
- - tokens_or_keys: *Comma-separated list with the desired videos tokens or keys (Limit: 100 tokens or keys).*
223
- - min_duration: *Minimal duration of video*
224
- - max_duration: *Maximal duration of video*
225
- - tags: *Video Tags*
226
- - volatile: *Automatically removed this video if it remains empty*
227
- - expiration_days: *After how many days will this video be deleted*
285
+ Arguments
286
+ - pushservicetoken: *Push Services's token (from the Push Services configured for the app)*
228
287
 
288
+ #### Apply Effect<a name="method-videos-apply-effect"></a>
229
289
 
230
- #### Delete
231
-
232
- Delete a single video by token or key.
290
+ Apply an effect profile to a video.
233
291
 
234
- ```ruby
235
- ziggeo.videos().delete(token_or_key)
236
- ```
237
-
292
+ ```ruby
293
+ ziggeo.videos().apply_effect(token_or_key, arguments = nil)
294
+ ```
238
295
 
296
+ Arguments
297
+ - effectprofiletoken: *Effect Profile token (from the Effect Profiles configured for the app)*
239
298
 
240
- #### Create
241
-
242
- Create a new video.
299
+ #### Apply Meta<a name="method-videos-apply-meta"></a>
243
300
 
244
- ```ruby
245
- ziggeo.videos().create(arguments = nil, file = nil)
246
- ```
247
-
248
- Arguments
249
- - file: *Video file to be uploaded*
250
- - min_duration: *Minimal duration of video*
251
- - max_duration: *Maximal duration of video*
252
- - tags: *Video Tags*
253
- - key: *Unique (optional) name of video*
254
- - volatile: *Automatically removed this video if it remains empty*
301
+ Apply a meta profile to a video.
255
302
 
303
+ ```ruby
304
+ ziggeo.videos().apply_meta(token_or_key, arguments = nil)
305
+ ```
256
306
 
257
- #### Analytics
258
-
259
- Get analytics for a specific videos with the given params
307
+ Arguments
308
+ - metaprofiletoken: *Meta Profile token (from the Meta Profiles configured for the app)*
260
309
 
261
- ```ruby
262
- ziggeo.videos().analytics(token_or_key, arguments = nil)
263
- ```
264
-
265
- Arguments
266
- - from: *A UNIX timestamp in microseconds used as the start date of the query*
267
- - to: *A UNIX timestamp in microseconds used as the end date of the query*
268
- - date: *A UNIX timestamp in microseconds to retrieve data from a single date. If set, it overwrites the from and to params.*
269
- - query: *The query you want to run. It can be one of the following: device_views_by_os, device_views_by_date, total_plays_by_country, full_plays_by_country, total_plays_by_hour, full_plays_by_hour, total_plays_by_browser, full_plays_by_browser*
310
+ #### Update<a name="method-effect-profiles-update"></a>
270
311
 
312
+ Update single video by token or key.
271
313
 
272
- ### Streams
314
+ ```ruby
315
+ ziggeo.videos().update(token_or_key, arguments = nil)
316
+ ```
273
317
 
274
- The streams resource allows you to directly access all streams associated with a single video.
275
-
318
+ Arguments
319
+ - min_duration: *Minimal duration of video*
320
+ - max_duration: *Maximal duration of video*
321
+ - tags: *Video Tags*
322
+ - key: *Unique (optional) name of video*
323
+ - volatile: *Automatically removed this video if it remains empty*
324
+ - expiration_days: *After how many days will this video be deleted*
325
+ - expire_on: *On which date will this video be deleted. String in ISO 8601 format: YYYY-MM-DD*
276
326
 
277
- #### Index
278
-
279
- Return all streams associated with a video
327
+ #### Update Bulk<a name="method-videos-update-bulk"></a>
280
328
 
281
- ```ruby
282
- ziggeo.streams().index(video_token_or_key, arguments = nil)
283
- ```
284
-
285
- Arguments
286
- - states: *Filter streams by state*
329
+ Update multiple videos by token or key.
287
330
 
331
+ ```ruby
332
+ ziggeo.videos().update_bulk(arguments = nil)
333
+ ```
288
334
 
289
- #### Get
290
-
291
- Get a single stream
335
+ Arguments
336
+ - tokens_or_keys: *Comma-separated list with the desired videos tokens or keys (Limit: 100 tokens or keys).*
337
+ - min_duration: *Minimal duration of video*
338
+ - max_duration: *Maximal duration of video*
339
+ - tags: *Video Tags*
340
+ - volatile: *Automatically removed this video if it remains empty*
341
+ - expiration_days: *After how many days will this video be deleted*
342
+ - expire_on: *On which date will this video be deleted. String in ISO 8601 format: YYYY-MM-DD*
292
343
 
293
- ```ruby
294
- ziggeo.streams().get(video_token_or_key, token_or_key)
295
- ```
296
-
344
+ #### Delete<a name="method-webhooks-delete"></a>
297
345
 
346
+ Delete a single video by token or key.
298
347
 
299
- #### Download Video
300
-
301
- Download the video data associated with the stream
348
+ ```ruby
349
+ ziggeo.videos().delete(token_or_key)
350
+ ```
302
351
 
303
- ```ruby
304
- ziggeo.streams().download_video(video_token_or_key, token_or_key)
305
- ```
306
-
352
+ #### Create<a name="method-webhooks-create"></a>
307
353
 
354
+ Create a new video.
308
355
 
309
- #### Download Image
310
-
311
- Download the image data associated with the stream
356
+ ```ruby
357
+ ziggeo.videos().create(arguments = nil, file = nil)
358
+ ```
312
359
 
313
- ```ruby
314
- ziggeo.streams().download_image(video_token_or_key, token_or_key)
315
- ```
316
-
360
+ Arguments
361
+ - file: *Video file to be uploaded*
362
+ - min_duration: *Minimal duration of video*
363
+ - max_duration: *Maximal duration of video*
364
+ - tags: *Video Tags*
365
+ - key: *Unique (optional) name of video*
366
+ - volatile: *Automatically removed this video if it remains empty*
317
367
 
368
+ #### Analytics<a name="method-videos-analytics"></a>
318
369
 
319
- #### Push To Service
320
-
321
- Push a stream to a provided push service.
370
+ Get analytics for a specific videos with the given params
322
371
 
323
- ```ruby
324
- ziggeo.streams().push_to_service(video_token_or_key, token_or_key, arguments = nil)
325
- ```
326
-
327
- Arguments
328
- - pushservicetoken: *Push Services's token (from the Push Services configured for the app)*
372
+ ```ruby
373
+ ziggeo.videos().analytics(token_or_key, arguments = nil)
374
+ ```
329
375
 
376
+ Arguments
377
+ - from: *A UNIX timestamp in microseconds used as the start date of the query*
378
+ - to: *A UNIX timestamp in microseconds used as the end date of the query*
379
+ - date: *A UNIX timestamp in microseconds to retrieve data from a single date. If set, it overwrites the from and to params.*
380
+ - query: *The query you want to run. It can be one of the following: device_views_by_os, device_views_by_date, total_plays_by_country, full_plays_by_country, total_plays_by_hour, full_plays_by_hour, total_plays_by_browser, full_plays_by_browser*
330
381
 
331
- #### Delete
332
-
333
- Delete the stream
382
+ ### Streams<a name="method-streams"></a>
334
383
 
335
- ```ruby
336
- ziggeo.streams().delete(video_token_or_key, token_or_key)
337
- ```
338
-
339
384
 
385
+ The streams resource allows you to directly access all streams associated with a single video.
340
386
 
341
- #### Create
342
-
343
- Create a new stream
387
+ #### Index<a name="method-meta-profile-process-index"></a>
344
388
 
345
- ```ruby
346
- ziggeo.streams().create(video_token_or_key, arguments = nil, file = nil)
347
- ```
348
-
349
- Arguments
350
- - file: *Video file to be uploaded*
389
+ Return all streams associated with a video
351
390
 
391
+ ```ruby
392
+ ziggeo.streams().index(video_token_or_key, arguments = nil)
393
+ ```
352
394
 
353
- #### Attach Image
354
-
355
- Attaches an image to a new stream
395
+ Arguments
396
+ - states: *Filter streams by state*
356
397
 
357
- ```ruby
358
- ziggeo.streams().attach_image(video_token_or_key, token_or_key, arguments = nil, file = nil)
359
- ```
360
-
361
- Arguments
362
- - file: *Image file to be attached*
398
+ #### Get<a name="method-analytics-get"></a>
363
399
 
400
+ Get a single stream
364
401
 
365
- #### Attach Video
366
-
367
- Attaches a video to a new stream
402
+ ```ruby
403
+ ziggeo.streams().get(video_token_or_key, token_or_key)
404
+ ```
368
405
 
369
- ```ruby
370
- ziggeo.streams().attach_video(video_token_or_key, token_or_key, arguments = nil, file = nil)
371
- ```
372
-
373
- Arguments
374
- - file: *Video file to be attached*
406
+ #### Download Video<a name="method-streams-download-video"></a>
375
407
 
408
+ Download the video data associated with the stream
376
409
 
377
- #### Bind
378
-
379
- Closes and submits the stream
410
+ ```ruby
411
+ ziggeo.streams().download_video(video_token_or_key, token_or_key)
412
+ ```
380
413
 
381
- ```ruby
382
- ziggeo.streams().bind(video_token_or_key, token_or_key, arguments = nil)
383
- ```
384
-
414
+ #### Download Image<a name="method-streams-download-image"></a>
385
415
 
416
+ Download the image data associated with the stream
386
417
 
387
- ### Authtokens
418
+ ```ruby
419
+ ziggeo.streams().download_image(video_token_or_key, token_or_key)
420
+ ```
388
421
 
389
- The auth token resource allows you to manage authorization settings for video objects.
390
-
422
+ #### Push To Service<a name="method-streams-push-to-service"></a>
391
423
 
392
- #### Get
393
-
394
- Get a single auth token by token.
424
+ Push a stream to a provided push service.
395
425
 
396
- ```ruby
397
- ziggeo.authtokens().get(token)
398
- ```
399
-
426
+ ```ruby
427
+ ziggeo.streams().push_to_service(video_token_or_key, token_or_key, arguments = nil)
428
+ ```
400
429
 
430
+ Arguments
431
+ - pushservicetoken: *Push Services's token (from the Push Services configured for the app)*
401
432
 
402
- #### Update
403
-
404
- Update single auth token by token.
433
+ #### Delete<a name="method-webhooks-delete"></a>
405
434
 
406
- ```ruby
407
- ziggeo.authtokens().update(token_or_key, arguments = nil)
408
- ```
409
-
410
- Arguments
411
- - volatile: *Will this object automatically be deleted if it remains empty?*
412
- - hidden: *If hidden, the token cannot be used directly.*
413
- - expiration_date: *Expiration date for the auth token*
414
- - usage_experitation_time: *Expiration time per session*
415
- - session_limit: *Maximal number of sessions*
416
- - grants: *Permissions this tokens grants*
435
+ Delete the stream
417
436
 
437
+ ```ruby
438
+ ziggeo.streams().delete(video_token_or_key, token_or_key)
439
+ ```
418
440
 
419
- #### Delete
420
-
421
- Delete a single auth token by token.
441
+ #### Create<a name="method-webhooks-create"></a>
422
442
 
423
- ```ruby
424
- ziggeo.authtokens().delete(token_or_key)
425
- ```
426
-
443
+ Create a new stream
427
444
 
445
+ ```ruby
446
+ ziggeo.streams().create(video_token_or_key, arguments = nil, file = nil)
447
+ ```
428
448
 
429
- #### Create
430
-
431
- Create a new auth token.
449
+ Arguments
450
+ - file: *Video file to be uploaded*
432
451
 
433
- ```ruby
434
- ziggeo.authtokens().create(arguments = nil)
435
- ```
436
-
437
- Arguments
438
- - volatile: *Will this object automatically be deleted if it remains empty?*
439
- - hidden: *If hidden, the token cannot be used directly.*
440
- - expiration_date: *Expiration date for the auth token*
441
- - usage_experitation_time: *Expiration time per session*
442
- - session_limit: *Maximal number of sessions*
443
- - grants: *Permissions this tokens grants*
452
+ #### Attach Image<a name="method-streams-attach-image"></a>
444
453
 
454
+ Attaches an image to a new stream
445
455
 
446
- ### Application
456
+ ```ruby
457
+ ziggeo.streams().attach_image(video_token_or_key, token_or_key, arguments = nil, file = nil)
458
+ ```
447
459
 
448
- The application token resource allows you to manage your application.
449
-
460
+ Arguments
461
+ - file: *Image file to be attached*
450
462
 
451
- #### Get
452
-
453
- Read application.
463
+ #### Attach Video<a name="method-streams-attach-video"></a>
454
464
 
455
- ```ruby
456
- ziggeo.application().get()
457
- ```
458
-
465
+ Attaches a video to a new stream
459
466
 
467
+ ```ruby
468
+ ziggeo.streams().attach_video(video_token_or_key, token_or_key, arguments = nil, file = nil)
469
+ ```
460
470
 
461
- #### Update
462
-
463
- Update application.
471
+ Arguments
472
+ - file: *Video file to be attached*
464
473
 
465
- ```ruby
466
- ziggeo.application().update(arguments = nil)
467
- ```
468
-
469
- Arguments
470
- - volatile: *Will this object automatically be deleted if it remains empty?*
471
- - name: *Name of the application*
472
- - auth_token_required_for_create: *Require auth token for creating videos*
473
- - auth_token_required_for_update: *Require auth token for updating videos*
474
- - auth_token_required_for_read: *Require auth token for reading videos*
475
- - auth_token_required_for_destroy: *Require auth token for deleting videos*
476
- - client_can_index_videos: *Client is allowed to perform the index operation*
477
- - client_cannot_access_unaccepted_videos: *Client cannot view unaccepted videos*
478
- - enable_video_subpages: *Enable hosted video pages*
479
-
480
-
481
- #### Get Stats
482
-
483
- Read application stats
474
+ #### Attach Subtitle<a name="method-streams-attach-subtitle"></a>
484
475
 
485
- ```ruby
486
- ziggeo.application().get_stats(arguments = nil)
487
- ```
488
-
489
- Arguments
490
- - period: *Optional. Can be 'year' or 'month'.*
476
+ Attaches a subtitle to the stream.
491
477
 
478
+ ```ruby
479
+ ziggeo.streams().attach_subtitle(video_token_or_key, token_or_key, arguments = nil)
480
+ ```
492
481
 
493
- ### EffectProfiles
482
+ Arguments
483
+ - lang: *Subtitle language*
484
+ - label: *Subtitle reference*
485
+ - data: *Actual subtitle*
494
486
 
495
- The effect profiles resource allows you to access and create effect profiles for your app. Each effect profile may contain one process or more.
496
-
487
+ #### Bind<a name="method-streams-bind"></a>
497
488
 
498
- #### Create
499
-
500
- Create a new effect profile.
489
+ Closes and submits the stream
501
490
 
502
- ```ruby
503
- ziggeo.effectProfiles().create(arguments = nil)
504
- ```
505
-
506
- Arguments
507
- - key: *Effect profile key.*
508
- - title: *Effect profile title.*
509
- - default_effect: *Boolean. If TRUE, sets an effect profile as default. If FALSE, removes the default status for the given effect*
491
+ ```ruby
492
+ ziggeo.streams().bind(video_token_or_key, token_or_key, arguments = nil)
493
+ ```
510
494
 
495
+ Arguments
511
496
 
512
- #### Index
513
-
514
- Get list of effect profiles.
497
+ ### Authtokens<a name="method-authtokens"></a>
515
498
 
516
- ```ruby
517
- ziggeo.effectProfiles().index(arguments = nil)
518
- ```
519
-
520
- Arguments
521
- - limit: *Limit the number of returned effect profiles. Can be set up to 100.*
522
- - skip: *Skip the first [n] entries.*
523
- - reverse: *Reverse the order in which effect profiles are returned.*
524
499
 
500
+ The auth token resource allows you to manage authorization settings for video objects.
525
501
 
526
- #### Get
527
-
528
- Get a single effect profile
502
+ #### Get<a name="method-analytics-get"></a>
529
503
 
530
- ```ruby
531
- ziggeo.effectProfiles().get(token_or_key)
532
- ```
533
-
504
+ Get a single auth token by token.
534
505
 
506
+ ```ruby
507
+ ziggeo.authtokens().get(token)
508
+ ```
535
509
 
536
- #### Delete
537
-
538
- Delete the effect profile
510
+ #### Update<a name="method-effect-profiles-update"></a>
539
511
 
540
- ```ruby
541
- ziggeo.effectProfiles().delete(token_or_key)
542
- ```
543
-
512
+ Update single auth token by token.
544
513
 
514
+ ```ruby
515
+ ziggeo.authtokens().update(token_or_key, arguments = nil)
516
+ ```
545
517
 
546
- #### Update
547
-
548
- Updates an effect profile.
518
+ Arguments
519
+ - volatile: *Will this object automatically be deleted if it remains empty?*
520
+ - hidden: *If hidden, the token cannot be used directly.*
521
+ - expiration_date: *Expiration date for the auth token (Unix epoch time format)*
522
+ - usage_expiration_time: *Expiration time per session (seconds)*
523
+ - session_limit: *Maximal number of sessions*
524
+ - grants: *Permissions this tokens grants*
549
525
 
550
- ```ruby
551
- ziggeo.effectProfiles().update(token_or_key, arguments = nil)
552
- ```
553
-
554
- Arguments
555
- - default_effect: *Boolean. If TRUE, sets an effect profile as default. If FALSE, removes the default status for the given effect*
526
+ #### Delete<a name="method-webhooks-delete"></a>
556
527
 
528
+ Delete a single auth token by token.
557
529
 
558
- ### EffectProfileProcess
530
+ ```ruby
531
+ ziggeo.authtokens().delete(token_or_key)
532
+ ```
559
533
 
560
- The process resource allows you to directly access all process associated with a single effect profile.
561
-
534
+ #### Create<a name="method-webhooks-create"></a>
562
535
 
563
- #### Index
564
-
565
- Return all processes associated with a effect profile
536
+ Create a new auth token.
566
537
 
567
- ```ruby
568
- ziggeo.effectProfileProcess().index(effect_token_or_key, arguments = nil)
569
- ```
570
-
571
- Arguments
572
- - states: *Filter streams by state*
538
+ ```ruby
539
+ ziggeo.authtokens().create(arguments = nil)
540
+ ```
573
541
 
542
+ Arguments
543
+ - volatile: *Will this object automatically be deleted if it remains empty?*
544
+ - hidden: *If hidden, the token cannot be used directly.*
545
+ - expiration_date: *Expiration date for the auth token (Unix epoch time format)*
546
+ - usage_expiration_time: *Expiration time per session (seconds)*
547
+ - session_limit: *Maximal number of sessions*
548
+ - grants: *Permissions this tokens grants*
574
549
 
575
- #### Get
576
-
577
- Get a single process
550
+ ### Application<a name="method-application"></a>
578
551
 
579
- ```ruby
580
- ziggeo.effectProfileProcess().get(effect_token_or_key, token_or_key)
581
- ```
582
-
583
552
 
553
+ The application token resource allows you to manage your application.
584
554
 
585
- #### Delete
586
-
587
- Delete the process
555
+ #### Get<a name="method-analytics-get"></a>
588
556
 
589
- ```ruby
590
- ziggeo.effectProfileProcess().delete(effect_token_or_key, token_or_key)
591
- ```
592
-
557
+ Read application.
593
558
 
559
+ ```ruby
560
+ ziggeo.application().get()
561
+ ```
594
562
 
595
- #### Create Filter Process
596
-
597
- Create a new filter effect process
563
+ #### Update<a name="method-effect-profiles-update"></a>
598
564
 
599
- ```ruby
600
- ziggeo.effectProfileProcess().create_filter_process(effect_token_or_key, arguments = nil)
601
- ```
602
-
603
- Arguments
604
- - effect: *Effect to be applied in the process*
565
+ Update application.
605
566
 
567
+ ```ruby
568
+ ziggeo.application().update(arguments = nil)
569
+ ```
606
570
 
607
- #### Create Watermark Process
608
-
609
- Attaches an image to a new stream
571
+ Arguments
572
+ - volatile: *Will this object automatically be deleted if it remains empty?*
573
+ - name: *Name of the application*
574
+ - auth_token_required_for_create: *Require auth token for creating videos*
575
+ - auth_token_required_for_update: *Require auth token for updating videos*
576
+ - auth_token_required_for_read: *Require auth token for reading videos*
577
+ - auth_token_required_for_destroy: *Require auth token for deleting videos*
578
+ - client_can_index_videos: *Client is allowed to perform the index operation*
579
+ - client_cannot_access_unaccepted_videos: *Client cannot view unaccepted videos*
580
+ - enable_video_subpages: *Enable hosted video pages*
610
581
 
611
- ```ruby
612
- ziggeo.effectProfileProcess().create_watermark_process(effect_token_or_key, arguments = nil, file = nil)
613
- ```
614
-
615
- Arguments
616
- - file: *Image file to be attached*
617
- - vertical_position: *Specify the vertical position of your watermark (a value between 0.0 and 1.0)*
618
- - horizontal_position: *Specify the horizontal position of your watermark (a value between 0.0 and 1.0)*
619
- - video_scale: *Specify the image scale of your watermark (a value between 0.0 and 1.0)*
582
+ #### Get Stats<a name="method-application-get-stats"></a>
620
583
 
584
+ Read application stats
621
585
 
622
- ### MetaProfiles
586
+ ```ruby
587
+ ziggeo.application().get_stats(arguments = nil)
588
+ ```
623
589
 
624
- The meta profiles resource allows you to access and create meta profiles for your app. Each meta profile may contain one process or more.
625
-
590
+ Arguments
591
+ - period: *Optional. Can be 'year' or 'month'.*
626
592
 
627
- #### Create
628
-
629
- Create a new meta profile.
593
+ ### Effect Profiles<a name="method-effect-profiles"></a>
630
594
 
631
- ```ruby
632
- ziggeo.metaProfiles().create(arguments = nil)
633
- ```
634
-
635
- Arguments
636
- - key: *Meta Profile profile key.*
637
- - title: *Meta Profile profile title.*
638
595
 
596
+ The effect profiles resource allows you to access and create effect profiles for your app. Each effect profile may contain one process or more.
639
597
 
640
- #### Index
641
-
642
- Get list of meta profiles.
598
+ #### Create<a name="method-webhooks-create"></a>
643
599
 
644
- ```ruby
645
- ziggeo.metaProfiles().index(arguments = nil)
646
- ```
647
-
648
- Arguments
649
- - limit: *Limit the number of returned meta profiles. Can be set up to 100.*
650
- - skip: *Skip the first [n] entries.*
651
- - reverse: *Reverse the order in which meta profiles are returned.*
600
+ Create a new effect profile.
652
601
 
602
+ ```ruby
603
+ ziggeo.effectProfiles().create(arguments = nil)
604
+ ```
653
605
 
654
- #### Get
655
-
656
- Get a single meta profile
606
+ Arguments
607
+ - key: *Effect profile key.*
608
+ - title: *Effect profile title.*
609
+ - default_effect: *Boolean. If TRUE, sets an effect profile as default. If FALSE, removes the default status for the given effect*
657
610
 
658
- ```ruby
659
- ziggeo.metaProfiles().get(token_or_key)
660
- ```
661
-
611
+ #### Index<a name="method-meta-profile-process-index"></a>
662
612
 
613
+ Get list of effect profiles.
663
614
 
664
- #### Delete
665
-
666
- Delete the meta profile
615
+ ```ruby
616
+ ziggeo.effectProfiles().index(arguments = nil)
617
+ ```
667
618
 
668
- ```ruby
669
- ziggeo.metaProfiles().delete(token_or_key)
670
- ```
671
-
619
+ Arguments
620
+ - limit: *Limit the number of returned effect profiles. Can be set up to 100.*
621
+ - skip: *Skip the first [n] entries.*
622
+ - reverse: *Reverse the order in which effect profiles are returned.*
672
623
 
624
+ #### Get<a name="method-analytics-get"></a>
673
625
 
674
- ### MetaProfileProcess
626
+ Get a single effect profile
675
627
 
676
- The process resource allows you to directly access all process associated with a single meta profile.
677
-
628
+ ```ruby
629
+ ziggeo.effectProfiles().get(token_or_key)
630
+ ```
678
631
 
679
- #### Index
680
-
681
- Return all processes associated with a meta profile
632
+ #### Delete<a name="method-webhooks-delete"></a>
682
633
 
683
- ```ruby
684
- ziggeo.metaProfileProcess().index(meta_token_or_key)
685
- ```
686
-
634
+ Delete the effect profile
687
635
 
636
+ ```ruby
637
+ ziggeo.effectProfiles().delete(token_or_key)
638
+ ```
688
639
 
689
- #### Get
690
-
691
- Get a single process
640
+ #### Update<a name="method-effect-profiles-update"></a>
692
641
 
693
- ```ruby
694
- ziggeo.metaProfileProcess().get(meta_token_or_key, token_or_key)
695
- ```
696
-
642
+ Updates an effect profile.
697
643
 
644
+ ```ruby
645
+ ziggeo.effectProfiles().update(token_or_key, arguments = nil)
646
+ ```
698
647
 
699
- #### Delete
700
-
701
- Delete the process
648
+ Arguments
649
+ - default_effect: *Boolean. If TRUE, sets an effect profile as default. If FALSE, removes the default status for the given effect*
702
650
 
703
- ```ruby
704
- ziggeo.metaProfileProcess().delete(meta_token_or_key, token_or_key)
705
- ```
706
-
651
+ ### Effect Profile Process<a name="method-effect-profile-process"></a>
707
652
 
708
653
 
709
- #### Create Video Analysis Process
710
-
711
- Create a new video analysis meta process
654
+ The process resource allows you to directly access all process associated with a single effect profile.
712
655
 
713
- ```ruby
714
- ziggeo.metaProfileProcess().create_video_analysis_process(meta_token_or_key)
715
- ```
716
-
656
+ #### Index<a name="method-meta-profile-process-index"></a>
717
657
 
658
+ Return all processes associated with a effect profile
718
659
 
719
- #### Create Audio Transcription Process
720
-
721
- Create a new audio transcription meta process
660
+ ```ruby
661
+ ziggeo.effectProfileProcess().index(effect_token_or_key, arguments = nil)
662
+ ```
722
663
 
723
- ```ruby
724
- ziggeo.metaProfileProcess().create_audio_transcription_process(meta_token_or_key)
725
- ```
726
-
664
+ Arguments
665
+ - states: *Filter streams by state*
727
666
 
667
+ #### Get<a name="method-analytics-get"></a>
728
668
 
729
- #### Create Nsfw Process
730
-
731
- Create a new nsfw filter meta process
669
+ Get a single process
732
670
 
733
- ```ruby
734
- ziggeo.metaProfileProcess().create_nsfw_process(meta_token_or_key, arguments = nil)
735
- ```
736
-
737
- Arguments
738
- - nsfw_action: *One of the following three: approve, reject, nothing.*
671
+ ```ruby
672
+ ziggeo.effectProfileProcess().get(effect_token_or_key, token_or_key)
673
+ ```
739
674
 
675
+ #### Delete<a name="method-webhooks-delete"></a>
740
676
 
741
- ### Webhooks
677
+ Delete the process
742
678
 
743
- The webhooks resource allows you to create or delete webhooks related to a given application.
744
-
679
+ ```ruby
680
+ ziggeo.effectProfileProcess().delete(effect_token_or_key, token_or_key)
681
+ ```
745
682
 
746
- #### Create
747
-
748
- Create a new webhook for the given url to catch the given events.
683
+ #### Create Filter Process<a name="method-effect-profile-process-create-filter-process"></a>
749
684
 
750
- ```ruby
751
- ziggeo.webhooks().create(arguments = nil)
752
- ```
753
-
754
- Arguments
755
- - target_url: *The url that will catch the events*
756
- - encoding: *Data encoding to be used by the webhook to send the events.*
757
- - events: *Comma-separated list of the events the webhook will catch. They must be valid webhook type events.*
685
+ Create a new filter effect process
758
686
 
687
+ ```ruby
688
+ ziggeo.effectProfileProcess().create_filter_process(effect_token_or_key, arguments = nil)
689
+ ```
759
690
 
760
- #### Confirm
761
-
762
- Confirm a webhook using its ID and the corresponding validation code.
691
+ Arguments
692
+ - effect: *Effect to be applied in the process*
763
693
 
764
- ```ruby
765
- ziggeo.webhooks().confirm(arguments = nil)
766
- ```
767
-
768
- Arguments
769
- - webhook_id: *Webhook ID that's returned in the creation call.*
770
- - validation_code: *Validation code that is sent to the webhook when created.*
694
+ #### Create Watermark Process<a name="method-effect-profile-process-create-watermark-process"></a>
771
695
 
696
+ Attaches an image to a new stream
772
697
 
773
- #### Delete
774
-
775
- Delete a webhook using its URL.
698
+ ```ruby
699
+ ziggeo.effectProfileProcess().create_watermark_process(effect_token_or_key, arguments = nil, file = nil)
700
+ ```
776
701
 
777
- ```ruby
778
- ziggeo.webhooks().delete(arguments = nil)
779
- ```
780
-
781
- Arguments
782
- - target_url: *The url that will catch the events*
702
+ Arguments
703
+ - file: *Image file to be attached*
704
+ - vertical_position: *Specify the vertical position of your watermark (a value between 0.0 and 1.0)*
705
+ - horizontal_position: *Specify the horizontal position of your watermark (a value between 0.0 and 1.0)*
706
+ - video_scale: *Specify the image scale of your watermark (a value between 0.0 and 1.0)*
783
707
 
708
+ #### Edit Watermark Process<a name="method-effect-profile-process-edit-watermark-process"></a>
784
709
 
785
- ### Analytics
710
+ Edits an existing watermark process.
786
711
 
787
- The analytics resource allows you to access the analytics for the given application
788
-
712
+ ```ruby
713
+ ziggeo.effectProfileProcess().edit_watermark_process(effect_token_or_key, token_or_key, arguments = nil, file = nil)
714
+ ```
789
715
 
790
- #### Get
791
-
792
- Get analytics for the given params
716
+ Arguments
717
+ - file: *Image file to be attached*
718
+ - vertical_position: *Specify the vertical position of your watermark (a value between 0.0 and 1.0)*
719
+ - horizontal_position: *Specify the horizontal position of your watermark (a value between 0.0 and 1.0)*
720
+ - video_scale: *Specify the image scale of your watermark (a value between 0.0 and 1.0)*
793
721
 
794
- ```ruby
795
- ziggeo.analytics().get(arguments = nil)
796
- ```
797
-
798
- Arguments
799
- - from: *A UNIX timestamp in microseconds used as the start date of the query*
800
- - to: *A UNIX timestamp in microseconds used as the end date of the query*
801
- - date: *A UNIX timestamp in microseconds to retrieve data from a single date. If set, it overwrites the from and to params.*
802
- - query: *The query you want to run. It can be one of the following: device_views_by_os, device_views_by_date, total_plays_by_country, full_plays_by_country, total_plays_by_hour, full_plays_by_hour, total_plays_by_browser, full_plays_by_browser*
722
+ ### Meta Profiles<a name="method-meta-profiles"></a>
723
+
724
+
725
+ The meta profiles resource allows you to access and create meta profiles for your app. Each meta profile may contain one process or more.
726
+
727
+ #### Create<a name="method-webhooks-create"></a>
728
+
729
+ Create a new meta profile.
730
+
731
+ ```ruby
732
+ ziggeo.metaProfiles().create(arguments = nil)
733
+ ```
734
+
735
+ Arguments
736
+ - key: *Meta Profile profile key.*
737
+ - title: *Meta Profile profile title.*
738
+
739
+ #### Index<a name="method-meta-profile-process-index"></a>
740
+
741
+ Get list of meta profiles.
742
+
743
+ ```ruby
744
+ ziggeo.metaProfiles().index(arguments = nil)
745
+ ```
746
+
747
+ Arguments
748
+ - limit: *Limit the number of returned meta profiles. Can be set up to 100.*
749
+ - skip: *Skip the first [n] entries.*
750
+ - reverse: *Reverse the order in which meta profiles are returned.*
751
+
752
+ #### Get<a name="method-analytics-get"></a>
753
+
754
+ Get a single meta profile
755
+
756
+ ```ruby
757
+ ziggeo.metaProfiles().get(token_or_key)
758
+ ```
759
+
760
+ #### Delete<a name="method-webhooks-delete"></a>
761
+
762
+ Delete the meta profile
763
+
764
+ ```ruby
765
+ ziggeo.metaProfiles().delete(token_or_key)
766
+ ```
767
+
768
+ ### Meta Profile Process<a name="method-meta-profile-process"></a>
769
+
770
+
771
+ The process resource allows you to directly access all process associated with a single meta profile.
772
+
773
+ #### Index<a name="method-meta-profile-process-index"></a>
774
+
775
+ Return all processes associated with a meta profile
776
+
777
+ ```ruby
778
+ ziggeo.metaProfileProcess().index(meta_token_or_key)
779
+ ```
780
+
781
+ #### Get<a name="method-analytics-get"></a>
782
+
783
+ Get a single process
784
+
785
+ ```ruby
786
+ ziggeo.metaProfileProcess().get(meta_token_or_key, token_or_key)
787
+ ```
788
+
789
+ #### Delete<a name="method-webhooks-delete"></a>
790
+
791
+ Delete the process
792
+
793
+ ```ruby
794
+ ziggeo.metaProfileProcess().delete(meta_token_or_key, token_or_key)
795
+ ```
796
+
797
+ #### Create Video Analysis Process<a name="method-meta-profile-process-create-video-analysis-process"></a>
798
+
799
+ Create a new video analysis meta process
800
+
801
+ ```ruby
802
+ ziggeo.metaProfileProcess().create_video_analysis_process(meta_token_or_key)
803
+ ```
804
+
805
+ #### Create Audio Transcription Process<a name="method-meta-profile-process-create-audio-transcription-process"></a>
806
+
807
+ Create a new audio transcription meta process
808
+
809
+ ```ruby
810
+ ziggeo.metaProfileProcess().create_audio_transcription_process(meta_token_or_key)
811
+ ```
812
+
813
+ #### Create Nsfw Process<a name="method-meta-profile-process-create-nsfw-process"></a>
814
+
815
+ Create a new nsfw filter meta process
816
+
817
+ ```ruby
818
+ ziggeo.metaProfileProcess().create_nsfw_process(meta_token_or_key, arguments = nil)
819
+ ```
820
+
821
+ Arguments
822
+ - nsfw_action: *One of the following three: approve, reject, nothing.*
823
+
824
+ ### Webhooks<a name="method-webhooks"></a>
825
+
826
+
827
+ The webhooks resource allows you to create or delete webhooks related to a given application.
828
+
829
+ #### Create<a name="method-webhooks-create"></a>
830
+
831
+ Create a new webhook for the given url to catch the given events.
832
+
833
+ ```ruby
834
+ ziggeo.webhooks().create(arguments = nil)
835
+ ```
836
+
837
+ Arguments
838
+ - target_url: *The url that will catch the events*
839
+ - encoding: *Data encoding to be used by the webhook to send the events.*
840
+ - events: *Comma-separated list of the events the webhook will catch. They must be valid webhook type events.*
841
+
842
+ #### Confirm<a name="method-webhooks-confirm"></a>
843
+
844
+ Confirm a webhook using its ID and the corresponding validation code.
845
+
846
+ ```ruby
847
+ ziggeo.webhooks().confirm(arguments = nil)
848
+ ```
849
+
850
+ Arguments
851
+ - webhook_id: *Webhook ID that's returned in the creation call.*
852
+ - validation_code: *Validation code that is sent to the webhook when created.*
853
+
854
+ #### Delete<a name="method-webhooks-delete"></a>
855
+
856
+ Delete a webhook using its URL.
857
+
858
+ ```ruby
859
+ ziggeo.webhooks().delete(arguments = nil)
860
+ ```
861
+
862
+ Arguments
863
+ - target_url: *The url that will catch the events*
864
+
865
+ ### Analytics<a name="method-analytics"></a>
866
+
867
+
868
+ The analytics resource allows you to access the analytics for the given application
869
+
870
+ #### Get<a name="method-analytics-get"></a>
871
+
872
+ Get analytics for the given params
873
+
874
+ ```ruby
875
+ ziggeo.analytics().get(arguments = nil)
876
+ ```
877
+
878
+ Arguments
879
+ - from: *A UNIX timestamp in microseconds used as the start date of the query*
880
+ - to: *A UNIX timestamp in microseconds used as the end date of the query*
881
+ - date: *A UNIX timestamp in microseconds to retrieve data from a single date. If set, it overwrites the from and to params.*
882
+ - query: *The query you want to run. It can be one of the following: device_views_by_os, device_views_by_date, total_plays_by_country, full_plays_by_country, total_plays_by_hour, full_plays_by_hour, total_plays_by_browser, full_plays_by_browser*
803
883
 
804
884
 
805
885
 
806
886
 
807
887
 
808
- ## License
888
+ ## License <a name="license"></a>
809
889
 
810
- Copyright (c) 2013-2019 Ziggeo
890
+ Copyright (c) 2013-2020 Ziggeo
811
891
 
812
892
  Apache 2.0 License