You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -150,7 +150,7 @@ public function get($eventId, $params = [])
150
150
* $uploadTotal: the total number of bytes expected to be uploaded,
151
151
* $uploadedBytes: the number of bytes uploaded so far
152
152
* )
153
-
*
153
+
*
154
154
* @return array the response result ['code' => 201, 'body' => '{A new event is created and its identifier is returned}', 'location' => '{the url of new event'}]
@@ -231,9 +231,9 @@ public function update($eventId, $acls = '', $metadata = '', $processing = '', $
231
231
* Retracts possible publications and deletes an event.
232
232
* Since version 1.6.0 published events will be retracted by this endpoint,
233
233
* if you use a version previous to 1.6.0 don't call this endpoint before retracting published events.
234
-
*
234
+
*
235
235
* @param string $eventId the event identifier
236
-
*
236
+
*
237
237
* @return array the response result ['code' => 204, 'reason' => 'NO CONTENT'] (The event has been deleted)
238
238
*/
239
239
publicfunctiondelete($eventId)
@@ -248,9 +248,9 @@ public function delete($eventId)
248
248
249
249
/**
250
250
* Returns an event's access policy.
251
-
*
251
+
*
252
252
* @param string $eventId the event identifier
253
-
*
253
+
*
254
254
* @return array the response result ['code' => 200, 'body' => '{The access control list for the specified event (Object)}']
255
255
*/
256
256
publicfunctiongetAcl($eventId)
@@ -261,10 +261,10 @@ public function getAcl($eventId)
261
261
262
262
/**
263
263
* Update an event's access policy.
264
-
*
264
+
*
265
265
* @param string $eventId the event identifier
266
266
* @param string|array $acl Access policy
267
-
*
267
+
*
268
268
* @return array the response result ['code' => 204, 'reason' => 'NO CONTENT'] (The access control list for the specified event is updated)
269
269
*/
270
270
publicfunctionupdateAcl($eventId, $acl)
@@ -278,11 +278,11 @@ public function updateAcl($eventId, $acl)
278
278
/**
279
279
* Grants permission to execute action on the specified event to any user with role role.
280
280
* Note that this is a convenience method to avoid having to build and post a complete access control list.
281
-
*
282
-
* @param string $eventId the event identifier
281
+
*
282
+
* @param string $eventId the event identifier
283
283
* @param string $action The action that is allowed to be executed
284
284
* @param string $role The role that is granted permission
285
-
*
285
+
*
286
286
* @return array the response result ['code' => 204, 'reason' => 'NO CONTENT'] (The permission has been created in the access control list of the specified event)
@@ -296,7 +296,7 @@ public function addSingleAcl($eventId, $action, $role)
296
296
/**
297
297
* Removes all ACLs for the event.
298
298
* @param string $eventId the event identifier
299
-
*
299
+
*
300
300
* @return array the response result ['code' => 204, 'reason' => 'NO CONTENT'] (The access control list for the specified event is updated)
301
301
*/
302
302
publicfunctionemptyAcl($eventId)
@@ -307,11 +307,11 @@ public function emptyAcl($eventId)
307
307
308
308
/**
309
309
* Revokes permission to execute action on the specified event from any user with specified role.
310
-
*
310
+
*
311
311
* @param string $eventId the event identifier
312
312
* @param string $action The action that is no longer allowed to be executed
313
313
* @param string $role The role that is no longer granted permission
314
-
*
314
+
*
315
315
* @return array the response result ['code' => 204, 'reason' => 'NO CONTENT'] (The permission has been revoked from the access control list of the specified event)
@@ -323,7 +323,7 @@ public function deleteSingleAcl($eventId, $action, $role)
323
323
## End of [Section 2]: Access Policy.
324
324
325
325
## [Section 3]: Media.
326
-
326
+
327
327
/**
328
328
* Returns the complete set of media tracks.
329
329
* @param string $eventId the event identifier
@@ -339,18 +339,26 @@ public function getMedia($eventId)
339
339
/**
340
340
* Adds the given track to the given flavor in the event. It does not start a workflow.
341
341
* @param string $eventId the event identifier
342
-
* @param string $flavor Denotes type and subtype, e.g. 'captions/source+en'
342
+
* @param string $flavor Denotes type and subtype, e.g. 'captions/source+en' or now that we have tags flavor could be 'captions/source'
343
343
* @param file $track The track file
344
344
* @param boolean $overwriteExisting If true, all other tracks in the specified flavor are REMOVED (Default: false)
345
+
* @param mixed $tags (optional) Comma separated list of tags either as an array or a string for the given track, e.g. archive,publish. If a 'lang:LANG-CODE' tag exists and 'overwriteExisting=true' only tracks with same lang tag and flavor will be replaced. This behavior is used for captions. (Default: null) (Array | String)
345
346
*
346
347
* @return array the response result ['code' => 200, 'body' => '{The track was added successfully.}']
0 commit comments