uiza 1.1.1 → 1.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/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/README.md +21 -53
- data/doc/CALLBACK.md +77 -39
- data/doc/CATEGORY.md +202 -104
- data/doc/ENTITY.md +295 -200
- data/doc/LIVE.md +513 -0
- data/doc/STORAGE.md +123 -66
- data/doc/USER.md +114 -194
- data/lib/uiza.rb +9 -2
- data/lib/uiza/api_operation/add.rb +2 -1
- data/lib/uiza/api_operation/create.rb +2 -1
- data/lib/uiza/api_operation/delete.rb +2 -2
- data/lib/uiza/api_operation/list.rb +3 -1
- data/lib/uiza/api_operation/remove.rb +2 -2
- data/lib/uiza/api_operation/retrieve.rb +2 -2
- data/lib/uiza/api_operation/update.rb +2 -1
- data/lib/uiza/callback.rb +4 -4
- data/lib/uiza/category.rb +11 -9
- data/lib/uiza/entity.rb +17 -17
- data/lib/uiza/live.rb +23 -22
- data/lib/uiza/storage.rb +4 -4
- data/lib/uiza/user.rb +14 -15
- data/lib/uiza/version.rb +1 -1
- metadata +3 -5
- data/doc/ANALYTIC.md +0 -143
- data/doc/LIVE_STREAMING.md +0 -435
- data/lib/uiza/analytic.rb +0 -42
data/doc/ENTITY.md
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
## Entity
|
2
2
|
These below APIs used to take action with your media files (we called Entity).
|
3
3
|
|
4
|
-
See details [here](https://docs.uiza.io/#video).
|
4
|
+
See details [here](https://docs.uiza.io/v4/#video).
|
5
5
|
|
6
6
|
## Create entity
|
7
7
|
Create entity using full URL. Direct HTTP, FTP or AWS S3 link are acceptable.
|
8
8
|
|
9
|
-
See details [here](https://docs.uiza.io/#create-entity).
|
9
|
+
See details [here](https://docs.uiza.io/v4/#create-entity).
|
10
10
|
|
11
11
|
```ruby
|
12
12
|
require "uiza"
|
13
13
|
|
14
|
-
Uiza.
|
14
|
+
Uiza.app_id = "your-app-id"
|
15
15
|
Uiza.authorization = "your-authorization"
|
16
16
|
|
17
17
|
params = {
|
@@ -38,43 +38,53 @@ end
|
|
38
38
|
```
|
39
39
|
|
40
40
|
Example Response
|
41
|
-
```
|
41
|
+
```json
|
42
42
|
{
|
43
|
-
"
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
"
|
56
|
-
"
|
57
|
-
"
|
58
|
-
|
59
|
-
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"
|
43
|
+
"data": {
|
44
|
+
"id": "0df49126-e2c5-44b3-ad4e-6150a071f6a5",
|
45
|
+
"name": "Sample Video",
|
46
|
+
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
|
47
|
+
"shortDescription": "Lorem Ipsum is simply dummy text.",
|
48
|
+
"inputType": "http",
|
49
|
+
"url": "https://example.com/video.mp4",
|
50
|
+
"masterTaskId": "1d8d07c2-0aad-4a20-be41-7842ea77e13f",
|
51
|
+
"masterProgress": nil,
|
52
|
+
"standardTaskId": nil,
|
53
|
+
"standardProgress": nil,
|
54
|
+
"view": "0",
|
55
|
+
"poster": "https://example.com/picture001.jpeg",
|
56
|
+
"thumbnail": "https://example.com/picture002.jpeg",
|
57
|
+
"type": "vod",
|
58
|
+
"status": "1",
|
59
|
+
"duration": nil,
|
60
|
+
"readyToPublish": "off",
|
61
|
+
"embedMetadata": nil,
|
62
|
+
"extendMetadataId": nil,
|
63
|
+
"publishToCdn": "not-ready",
|
64
|
+
"extendMetadata": nil,
|
65
|
+
"createdAt": "2019-03-13T10:01:57.000Z",
|
66
|
+
"updatedAt": "2019-03-13T10:01:58.000Z"
|
63
67
|
},
|
64
|
-
"
|
65
|
-
"
|
68
|
+
"version": "4",
|
69
|
+
"datetime": "2019-03-13T10:01:58.376Z",
|
70
|
+
"policy": "public",
|
71
|
+
"requestId": "64984a20-cc5a-4748-bf8c-bc2a920bd3d4",
|
72
|
+
"serviceName": "api-v4",
|
73
|
+
"message": "OK",
|
74
|
+
"code": "200",
|
75
|
+
"type": "SUCCESS"
|
66
76
|
}
|
67
77
|
```
|
68
78
|
|
69
79
|
## Retrieve entity
|
70
80
|
Get detail of entity including all information of entity.
|
71
81
|
|
72
|
-
See details [here](https://docs.uiza.io/#retrieve-an-entity).
|
82
|
+
See details [here](https://docs.uiza.io/v4/#retrieve-an-entity).
|
73
83
|
|
74
84
|
```ruby
|
75
85
|
require "uiza"
|
76
86
|
|
77
|
-
Uiza.
|
87
|
+
Uiza.app_id = "your-app-id"
|
78
88
|
Uiza.authorization = "your-authorization"
|
79
89
|
|
80
90
|
begin
|
@@ -91,43 +101,53 @@ end
|
|
91
101
|
```
|
92
102
|
|
93
103
|
Example Response
|
94
|
-
```
|
104
|
+
```json
|
95
105
|
{
|
96
|
-
"
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
"
|
109
|
-
"
|
110
|
-
"
|
111
|
-
|
112
|
-
|
113
|
-
"
|
114
|
-
"
|
115
|
-
"
|
106
|
+
"data": {
|
107
|
+
"id": "0df49126-e2c5-44b3-ad4e-6150a071f6a5",
|
108
|
+
"name": "Sample Video",
|
109
|
+
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
|
110
|
+
"shortDescription": "Lorem Ipsum is simply dummy text.",
|
111
|
+
"inputType": "http",
|
112
|
+
"url": "https://example.com/video.mp4",
|
113
|
+
"masterTaskId": "1d8d07c2-0aad-4a20-be41-7842ea77e13f",
|
114
|
+
"masterProgress": nil,
|
115
|
+
"standardTaskId": nil,
|
116
|
+
"standardProgress": nil,
|
117
|
+
"view": 0,
|
118
|
+
"poster": "https://example.com/picture001.jpeg",
|
119
|
+
"thumbnail": "https://example.com/picture002.jpeg",
|
120
|
+
"type": "vod",
|
121
|
+
"status": 1,
|
122
|
+
"duration": nil,
|
123
|
+
"readyToPublish": "off",
|
124
|
+
"embedMetadata": nil,
|
125
|
+
"extendMetadataId": nil,
|
126
|
+
"publishToCdn": "not-ready",
|
127
|
+
"extendMetadata": nil,
|
128
|
+
"createdAt": "2019-03-13T10:01:57.000Z",
|
129
|
+
"updatedAt": "2019-03-13T10:01:58.000Z"
|
116
130
|
},
|
117
|
-
"
|
118
|
-
"
|
131
|
+
"version": 4,
|
132
|
+
"datetime": "2019-03-13T10:13:14.125Z",
|
133
|
+
"policy": "public",
|
134
|
+
"requestId": "42302668-e146-456d-a0da-09e4dc73ea64",
|
135
|
+
"serviceName": "api-v4",
|
136
|
+
"message": "OK",
|
137
|
+
"code": 200,
|
138
|
+
"type": "SUCCESS"
|
119
139
|
}
|
120
140
|
```
|
121
141
|
|
122
142
|
## List all entities
|
123
143
|
Get list of entities including all detail.
|
124
144
|
|
125
|
-
See details [here](https://docs.uiza.io/#list-
|
145
|
+
See details [here](https://docs.uiza.io/v4/#list-entities).
|
126
146
|
|
127
147
|
```ruby
|
128
148
|
require "uiza"
|
129
149
|
|
130
|
-
Uiza.
|
150
|
+
Uiza.app_id = "your-app-id"
|
131
151
|
Uiza.authorization = "your-authorization"
|
132
152
|
|
133
153
|
params = {
|
@@ -151,68 +171,86 @@ end
|
|
151
171
|
```
|
152
172
|
|
153
173
|
Example Response
|
154
|
-
```
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
"
|
169
|
-
"
|
170
|
-
"
|
171
|
-
|
172
|
-
|
173
|
-
"
|
174
|
-
"
|
175
|
-
"
|
174
|
+
```json
|
175
|
+
{
|
176
|
+
"data": [
|
177
|
+
{
|
178
|
+
"id": "0df49126-e2c5-44b3-ad4e-6150a071f6a5",
|
179
|
+
"name": "Sample Video",
|
180
|
+
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
|
181
|
+
"shortDescription": "Lorem Ipsum is simply dummy text.",
|
182
|
+
"inputType": "http",
|
183
|
+
"url": "https://example.com/video.mp4",
|
184
|
+
"masterTaskId": "1d8d07c2-0aad-4a20-be41-7842ea77e13f",
|
185
|
+
"masterProgress": nil,
|
186
|
+
"standardTaskId": nil,
|
187
|
+
"standardProgress": nil,
|
188
|
+
"view": 0,
|
189
|
+
"poster": "https://example.com/picture001.jpeg",
|
190
|
+
"thumbnail": "https://example.com/picture002.jpeg",
|
191
|
+
"type": "vod",
|
192
|
+
"status": 1,
|
193
|
+
"duration": nil,
|
194
|
+
"readyToPublish": "off",
|
195
|
+
"embedMetadata": nil,
|
196
|
+
"extendMetadataId": nil,
|
197
|
+
"publishToCdn": "not-ready",
|
198
|
+
"extendMetadata": nil,
|
199
|
+
"createdAt": "2019-03-13T10:01:57.000Z",
|
200
|
+
"updatedAt": "2019-03-13T10:01:58.000Z"
|
176
201
|
},
|
177
|
-
|
178
|
-
|
202
|
+
{
|
203
|
+
"id": "27c5b023-ae06-4d8e-98ad-b0b66fbafe1c",
|
204
|
+
"name": "Sample Video",
|
205
|
+
"description": nil,
|
206
|
+
"shortDescription": nil,
|
207
|
+
"inputType": "http",
|
208
|
+
"url": nil,
|
209
|
+
"masterTaskId": "6ffe7f37-6960-4473-a245-675c949344c1",
|
210
|
+
"masterProgress": nil,
|
211
|
+
"standardTaskId": nil,
|
212
|
+
"standardProgress": nil,
|
213
|
+
"view": 0,
|
214
|
+
"poster": nil,
|
215
|
+
"thumbnail": nil,
|
216
|
+
"type": "vod",
|
217
|
+
"status": 1,
|
218
|
+
"duration": nil,
|
219
|
+
"readyToPublish": "off",
|
220
|
+
"embedMetadata": nil,
|
221
|
+
"extendMetadataId": nil,
|
222
|
+
"publishToCdn": "not-ready",
|
223
|
+
"extendMetadata": nil,
|
224
|
+
"createdAt": "2019-03-13T09:59:27.000Z",
|
225
|
+
"updatedAt": "2019-03-13T09:59:28.000Z"
|
226
|
+
}
|
227
|
+
],
|
228
|
+
"metadata": {
|
229
|
+
"total": 2,
|
230
|
+
"result": 2,
|
231
|
+
"page": 1,
|
232
|
+
"limit": 20
|
179
233
|
},
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
"duration": "178.178105",
|
190
|
-
"publishToCdn":"success",
|
191
|
-
"embedMetadata": {
|
192
|
-
"artist": "John Doe",
|
193
|
-
"album": "Album sample",
|
194
|
-
"genre": "Pop"
|
195
|
-
},
|
196
|
-
"extendMetadata": {
|
197
|
-
"movie_category":"action",
|
198
|
-
"imdb_score":8.8,
|
199
|
-
"published_year":"2018"
|
200
|
-
},
|
201
|
-
"createdAt": "2018-06-22T19:16:22.000Z",
|
202
|
-
"updatedAt": "2018-06-22T19:16:22.000Z"
|
203
|
-
}
|
204
|
-
]
|
234
|
+
"version": 4,
|
235
|
+
"datetime": "2019-03-13T10:15:36.266Z",
|
236
|
+
"policy": "public",
|
237
|
+
"requestId": "d260ab6c-da8a-4d13-8c58-5fb1cd0940df",
|
238
|
+
"serviceName": "api-v4",
|
239
|
+
"message": "OK",
|
240
|
+
"code": 200,
|
241
|
+
"type": "SUCCESS"
|
242
|
+
}
|
205
243
|
```
|
206
244
|
|
207
245
|
## Update entity
|
208
246
|
Update entity's information.
|
209
247
|
|
210
|
-
See details [here](https://docs.uiza.io/#update-an-entity).
|
248
|
+
See details [here](https://docs.uiza.io/v4/#update-an-entity).
|
211
249
|
|
212
250
|
```ruby
|
213
251
|
require "uiza"
|
214
252
|
|
215
|
-
Uiza.
|
253
|
+
Uiza.app_id = "your-app-id"
|
216
254
|
Uiza.authorization = "your-authorization"
|
217
255
|
|
218
256
|
params = {
|
@@ -234,42 +272,53 @@ end
|
|
234
272
|
```
|
235
273
|
|
236
274
|
Example Response
|
237
|
-
```
|
275
|
+
```json
|
238
276
|
{
|
239
|
-
"
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
"
|
251
|
-
"
|
252
|
-
"
|
253
|
-
|
254
|
-
|
255
|
-
"
|
256
|
-
"
|
257
|
-
"
|
277
|
+
"data": {
|
278
|
+
"id": "0df49126-e2c5-44b3-ad4e-6150a071f6a5",
|
279
|
+
"name": "Sample Video Updated",
|
280
|
+
"description": "Lorem Ipsum is simply dummy text of the printing and typesetting industry.",
|
281
|
+
"shortDescription": "Lorem Ipsum is simply dummy text.",
|
282
|
+
"inputType": "http",
|
283
|
+
"url": "https://example.com/video.mp4",
|
284
|
+
"masterTaskId": "1d8d07c2-0aad-4a20-be41-7842ea77e13f",
|
285
|
+
"masterProgress": nil,
|
286
|
+
"standardTaskId": nil,
|
287
|
+
"standardProgress": nil,
|
288
|
+
"view": 0,
|
289
|
+
"poster": "https://example.com/picture001.jpeg",
|
290
|
+
"thumbnail": "https://example.com/picture002.jpeg",
|
291
|
+
"type": "vod",
|
292
|
+
"status": 1,
|
293
|
+
"duration": nil,
|
294
|
+
"readyToPublish": "off",
|
295
|
+
"embedMetadata": nil,
|
296
|
+
"extendMetadataId": nil,
|
297
|
+
"publishToCdn": "not-ready",
|
298
|
+
"extendMetadata": nil,
|
299
|
+
"createdAt": "2019-03-13T10:01:57.000Z",
|
300
|
+
"updatedAt": "2019-03-13T10:18:42.000Z"
|
258
301
|
},
|
259
|
-
"
|
260
|
-
"
|
302
|
+
"version": 4,
|
303
|
+
"datetime": "2019-03-13T10:18:42.749Z",
|
304
|
+
"policy": "public",
|
305
|
+
"requestId": "f1db5769-e049-492d-a185-6b69750e94c4",
|
306
|
+
"serviceName": "api-v4",
|
307
|
+
"message": "OK",
|
308
|
+
"code": 200,
|
309
|
+
"type": "SUCCESS"
|
261
310
|
}
|
262
311
|
```
|
263
312
|
|
264
313
|
## Delete entity
|
265
314
|
Delete entity.
|
266
315
|
|
267
|
-
See details [here](https://docs.uiza.io/#delete-an-entity).
|
316
|
+
See details [here](https://docs.uiza.io/v4/#delete-an-entity).
|
268
317
|
|
269
318
|
```ruby
|
270
319
|
require "uiza"
|
271
320
|
|
272
|
-
Uiza.
|
321
|
+
Uiza.app_id = "your-app-id"
|
273
322
|
Uiza.authorization = "your-authorization"
|
274
323
|
|
275
324
|
begin
|
@@ -285,21 +334,31 @@ end
|
|
285
334
|
```
|
286
335
|
|
287
336
|
Example Response
|
288
|
-
```
|
337
|
+
```json
|
289
338
|
{
|
290
|
-
"
|
339
|
+
"data": {
|
340
|
+
"id": "0df49126-e2c5-44b3-ad4e-6150a071f6a5"
|
341
|
+
},
|
342
|
+
"version": 4,
|
343
|
+
"datetime": "2019-03-13T10:20:41.516Z",
|
344
|
+
"policy": "public",
|
345
|
+
"requestId": "aa4afcef-1af4-4e4d-a248-221e50e99c37",
|
346
|
+
"serviceName": "api-v4",
|
347
|
+
"message": "OK",
|
348
|
+
"code": 200,
|
349
|
+
"type": "SUCCESS"
|
291
350
|
}
|
292
351
|
```
|
293
352
|
|
294
353
|
## Search entity
|
295
354
|
Search entity base on keyword entered.
|
296
355
|
|
297
|
-
See details [here](https://docs.uiza.io/#search-entity).
|
356
|
+
See details [here](https://docs.uiza.io/v4/#search-entity).
|
298
357
|
|
299
358
|
```ruby
|
300
359
|
require "uiza"
|
301
360
|
|
302
|
-
Uiza.
|
361
|
+
Uiza.app_id = "your-app-id"
|
303
362
|
Uiza.authorization = "your-authorization"
|
304
363
|
|
305
364
|
begin
|
@@ -316,68 +375,72 @@ end
|
|
316
375
|
```
|
317
376
|
|
318
377
|
Example Response
|
319
|
-
```
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
333
|
-
"
|
334
|
-
"
|
335
|
-
"
|
336
|
-
|
337
|
-
|
338
|
-
"
|
339
|
-
"imdb_score":8.8,
|
340
|
-
"published_year":"2018"
|
378
|
+
```json
|
379
|
+
{
|
380
|
+
"data": [
|
381
|
+
{
|
382
|
+
"id": "ff8bbadf-4028-49c1-9607-1fca6f16eda7",
|
383
|
+
"name": "Sample Video",
|
384
|
+
"description": nil,
|
385
|
+
"shortDescription": nil,
|
386
|
+
"view": 0,
|
387
|
+
"poster": nil,
|
388
|
+
"thumbnail": nil,
|
389
|
+
"type": "vod",
|
390
|
+
"duration": nil,
|
391
|
+
"embedMetadata": nil,
|
392
|
+
"extendMetadata": nil,
|
393
|
+
"publishToCdn": "not-ready",
|
394
|
+
"readyToPublish": "off",
|
395
|
+
"createdAt": "2019-03-07T06:34:36.000Z",
|
396
|
+
"updatedAt": "2019-03-07T06:34:38.000Z",
|
397
|
+
"keySearch": "sample video"
|
341
398
|
},
|
342
|
-
|
343
|
-
|
399
|
+
{
|
400
|
+
"id": "0268713a-654f-46dd-a1fc-475e9f552c27",
|
401
|
+
"name": "Sample Video",
|
402
|
+
"description": nil,
|
403
|
+
"shortDescription": nil,
|
404
|
+
"view": 0,
|
405
|
+
"poster": nil,
|
406
|
+
"thumbnail": nil,
|
407
|
+
"type": "vod",
|
408
|
+
"duration": nil,
|
409
|
+
"embedMetadata": nil,
|
410
|
+
"extendMetadata": nil,
|
411
|
+
"publishToCdn": "not-ready",
|
412
|
+
"readyToPublish": "off",
|
413
|
+
"createdAt": "2019-03-11T02:40:30.000Z",
|
414
|
+
"updatedAt": "2019-03-11T02:40:35.000Z",
|
415
|
+
"keySearch": "sample video"
|
416
|
+
}
|
417
|
+
],
|
418
|
+
"metadata": {
|
419
|
+
"total": 2,
|
420
|
+
"result": 2,
|
421
|
+
"page": 1,
|
422
|
+
"limit": 20
|
344
423
|
},
|
345
|
-
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
353
|
-
|
354
|
-
"duration": "178.178105",
|
355
|
-
"publishToCdn":"success",
|
356
|
-
"embedMetadata": {
|
357
|
-
"artist": "John Doe",
|
358
|
-
"album": "Album sample",
|
359
|
-
"genre": "Pop"
|
360
|
-
},
|
361
|
-
"extendMetadata": {
|
362
|
-
"movie_category":"action",
|
363
|
-
"imdb_score":8.8,
|
364
|
-
"published_year":"2018"
|
365
|
-
},
|
366
|
-
"createdAt": "2018-06-22T19:16:22.000Z",
|
367
|
-
"updatedAt": "2018-06-22T19:16:22.000Z"
|
368
|
-
}
|
369
|
-
]
|
424
|
+
"version": 4,
|
425
|
+
"datetime": "2019-03-13T10:22:16.306Z",
|
426
|
+
"policy": "public",
|
427
|
+
"requestId": "8ae2770b-ccf8-4ac5-a95a-0beeea2617d7",
|
428
|
+
"serviceName": "api-v4",
|
429
|
+
"message": "OK",
|
430
|
+
"code": 200,
|
431
|
+
"type": "SUCCESS"
|
432
|
+
}
|
370
433
|
```
|
371
434
|
|
372
435
|
## Publish entity to CDN
|
373
436
|
Publish entity to CDN, use for streaming.
|
374
437
|
|
375
|
-
See details [here](https://docs.uiza.io/#publish-entity-to-cdn).
|
438
|
+
See details [here](https://docs.uiza.io/v4/#publish-entity-to-cdn).
|
376
439
|
|
377
440
|
```ruby
|
378
441
|
require "uiza"
|
379
442
|
|
380
|
-
Uiza.
|
443
|
+
Uiza.app_id = "your-app-id"
|
381
444
|
Uiza.authorization = "your-authorization"
|
382
445
|
|
383
446
|
begin
|
@@ -394,22 +457,32 @@ end
|
|
394
457
|
```
|
395
458
|
|
396
459
|
Example Response
|
397
|
-
```
|
460
|
+
```json
|
398
461
|
{
|
399
|
-
"
|
400
|
-
|
462
|
+
"data": {
|
463
|
+
"message": "Your entity started publish, check process status with this entity ID",
|
464
|
+
"entityId": "ff8bbadf-4028-49c1-9607-1fca6f16eda7"
|
465
|
+
},
|
466
|
+
"message": "create transcode standard success",
|
467
|
+
"version": 4,
|
468
|
+
"datetime": "2019-03-13T10:24:42.290Z",
|
469
|
+
"policy": "public",
|
470
|
+
"requestId": "b9e6eb20-44a1-4259-b79f-a6f7353f87e4",
|
471
|
+
"serviceName": "api-v4",
|
472
|
+
"code": 200,
|
473
|
+
"type": "SUCCESS"
|
401
474
|
}
|
402
475
|
```
|
403
476
|
|
404
477
|
## Get status publish
|
405
478
|
Publish entity to CDN, use for streaming.
|
406
479
|
|
407
|
-
See details [here](https://docs.uiza.io/#get-status
|
480
|
+
See details [here](https://docs.uiza.io/v4/#get-publish-status).
|
408
481
|
|
409
482
|
```ruby
|
410
483
|
require "uiza"
|
411
484
|
|
412
|
-
Uiza.
|
485
|
+
Uiza.app_id = "your-app-id"
|
413
486
|
Uiza.authorization = "your-authorization"
|
414
487
|
|
415
488
|
begin
|
@@ -426,22 +499,32 @@ end
|
|
426
499
|
```
|
427
500
|
|
428
501
|
Example Response
|
429
|
-
```
|
502
|
+
```json
|
430
503
|
{
|
431
|
-
"
|
432
|
-
|
504
|
+
"data": {
|
505
|
+
"progress": 0,
|
506
|
+
"status": "error"
|
507
|
+
},
|
508
|
+
"version": 4,
|
509
|
+
"datetime": "2019-03-13T10:28:06.627Z",
|
510
|
+
"policy": "public",
|
511
|
+
"requestId": "85f48b9f-9da5-466b-bbcd-900f7404bfc8",
|
512
|
+
"serviceName": "api-v4",
|
513
|
+
"message": "OK",
|
514
|
+
"code": 200,
|
515
|
+
"type": "SUCCESS"
|
433
516
|
}
|
434
517
|
```
|
435
518
|
|
436
519
|
## Get AWS upload key
|
437
520
|
This API will be return the bucket temporary upload storage & key for upload, so that you can push your file to Uiza’s storage and get the link for URL upload & create entity.
|
438
521
|
|
439
|
-
See details [here](https://docs.uiza.io/#get-aws-upload-key).
|
522
|
+
See details [here](https://docs.uiza.io/v4/#get-aws-upload-key).
|
440
523
|
|
441
524
|
```ruby
|
442
525
|
require "uiza"
|
443
526
|
|
444
|
-
Uiza.
|
527
|
+
Uiza.app_id = "your-app-id"
|
445
528
|
Uiza.authorization = "your-authorization"
|
446
529
|
|
447
530
|
begin
|
@@ -458,13 +541,25 @@ end
|
|
458
541
|
```
|
459
542
|
|
460
543
|
Example Response
|
461
|
-
```
|
544
|
+
```json
|
462
545
|
{
|
463
|
-
"
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
|
546
|
+
"data": {
|
547
|
+
"temp_access_secret": "9QCYHLhkHKMkAdKTtQRZN1JIUZbSESpCz9dVoY8H",
|
548
|
+
"temp_access_id": "ASIAY2CULXKDEY4IWY5O",
|
549
|
+
"temp_session_name": "uiza-prod-ss-d6342a7b4a6c40d2b851a54a4442ea83-1552472928",
|
550
|
+
"bucket_name": "uiza-stag-storage-ap-southeast-1-01/upload-temp/d6342a7b4a6c40d2b851a54a4442ea83/",
|
551
|
+
"temp_expire_at": 1552516128,
|
552
|
+
"region_name": "ap-southeast-1",
|
553
|
+
"app_id": "d6342a7b4a6c40d2b851a54a4442ea83",
|
554
|
+
"temp_session_token": "FQoGZXIvYXdzEBwaDHx4CZkwAjRDWCpHOiKPBPd/3UjRqs9uSauIEiEpcGWrNDqOO8JqitvsQY4ImUurCfHXqgn8yf3T7lFqvB/TjLJXqBw/HUiAVUWcHtJRGQug+T/5fGFP68waMU8n70TMKDVV0xolPxJONvaN6tG9DFVtp09g4azOGpJFL0QKXt2Ou0BYENXyE0liIu6A2z5VS9mhLqLfVu/BGCfI6JhQVTudJPuYom7FV4uwn3TlVbElfRW5UK9iPCym8sb0Kg7DWo+aUTMOPkt8d6xh6zrRysGceuyCuKLePGggxFXWvf8rooLj4xQZk7yYJfDA98Zryox/zgGWyhAotUW/zj/BBwsafTjByTx8mskXZ+7+Uuiwbc8BoKUzq56UI36RpvP2mqimGZp97xJI+GTkG7NbhyRtnd1VXWbaVvfbXDfGjBcxn+f7UEeqHPb8pi+f34ROjHjYJhvGy3xE3hvCvPTQ92RqkQIiMztFO/5yacClaWsO/8VSl71zQdD7u1AQgkpvpNH0FapwKjUfUJYkcZiB6FWWtvZlhagtrrIWaiGYa8EC2dE29CAgJs0rbWVZpSx97bMjugSlfNobFWFiJoUECVTCOT2r10tGOmFJ1sWv+nXrwGzK29qOflNl/7BKphZV2Hp6Yhbx5snUfGaLdwtlyoc67dhg/m1IVvkvUrvLKR57SkGEjS3/fdasNRzFtkyrxlXUKzxgPLK3r3NK/eNSKOC2o+QF"
|
555
|
+
},
|
556
|
+
"version": 4,
|
557
|
+
"datetime": "2019-03-13T10:28:49.136Z",
|
558
|
+
"policy": "public",
|
559
|
+
"requestId": "df72d473-9c24-4ffc-a6fe-8e56563b6425",
|
560
|
+
"serviceName": "api-v4",
|
561
|
+
"message": "OK",
|
562
|
+
"code": 200,
|
563
|
+
"type": "SUCCESS"
|
469
564
|
}
|
470
565
|
```
|