To check what the status was returned when copy content parameter was passed, developers can get copy content status for logged in users by passing the value “search_jobs” in the “action” parameter. This parameter can be used with other optional parameters to get the required result set. Some of the parameters are given in the table below.
To set User Context, either use VIDIZMO JS Login API before calling this method or use VIDIZMO Web Login method and additionally pass "access_token" parameter to this call API.
Request
Parameters
Parameter |
Description |
tenant_ids |
Comma-separated ids of tenants in which user want to copy content. |
mashup_id |
ID of a content that user wants to copy. |
job_object_type |
This is a type of a Job. This value will always be 2. |
work_flow_queue_id |
Process Id of a workflow. |
Response
{ "result": { "Workflowqueue": [ { "Id": 5650, "WorkflowName": "Media Copy", "WorkflowActivityStateId": 17, "Description": "Comon Do it Again", "Result": "", "TenantId": 5145, "Percentage": 0, "MachineGuid": "3B5D8A2E-7788-442D-ADCE-3A1B5F15EF09}", "WorkflowId": 1, "State": "Running", "ErrorCount": 0, "InitialParameters": { "MashupId": 108794, "UserId": 186987, "TenantIds": [ 5241 ] }, "InputParameters": " Com.Softechww.DataModels.WorkflowActivityParameters.MediaCopy, VidizmoLibrary, Version=3.2.0.0, Culture=neutral, PublicKeyToken=4badc93f60d59410\r\n<MediaCopy xmlns=\"http://schemas.datacontract.org/2004/07/Com.Softechww.DataModels.WorkflowActivityParameters\" xmlns:i=\"http://www.w3.org/2001/XMLSchema-instance\"><MashupId>108794</MashupId><TenantIds xmlns:a=\"http://schemas.microsoft.com/2003/10/Serialization/Arrays\"><a:int>5241</a:int></TenantIds><UserId>186987</UserId></MediaCopy>", "ObjectTypeName": "Mashup", "ObjectId": 108794, "ObjectTypeId": 0, "AddedById": 186987, "UpdatedById": 0, "AddedDateTime": "2015-05-15T07:39:05.6", "UpdatedDateTime": null, "WorkflowActivityId": 27, "ActivityName": "Download", "PreConditionStateId": 0, "PostConditionStateId": 0, "NameSpace": null, "NameSpaceType": null, "InputParametersType": null, "WorkflowQueueActivityId": 0, "IsLongRunning": false, "UserName": "Muhammad ", "WorkFlowActivityStateName": "Download Content", "EventName": "Start Mashup Copy" } ], "TotalRecords": 1 }, "status": 1, "status_code": 200, "message": null }
To learn more how these Widgets work, click here on VIDIZMO Web API Library.
For a complete list of VIDIZMO APIs, click here on VIDIZMO Developer APIs.