Version 8.3.8

Back | 

AddPresentationAsset

URL

http://de.piksel.tech/ws/add_presentation_asset/mode/json/apiv/5.0?method=put&
Use "request" param as post variable for submitting json/xml request payload for all PUT requests.

Parameters

  • filename=>sourcefilename.Needs to be url encoded.Needs to be http/https url when source is set to remote source.Remote url is not supported for bypass transcoding.
    title=>asset title
    isRemoteSource=>Determines if the source file is remote
    folders => Array of folderids with which the asset needs to be associated.

Request

Ingest presentation asset into a particular account.

Request format

{
  "request": {
    "authentication": {
      "app_token": "#app_token#",
      "client_token": "#client_token#",
      "user_token": "#user_token#"
    },
    "header": {
      "header_version": 1,
      "api_version": "5",
      "no_cache": true
    },
    "add_presentation_asset": {
      "title": "",
      "filename": "",
      "isRemoteSource": false,
      "folders": [
        "13827",
        "14544"
      ]
    }
  }
}

Test Example

{ "request": { "authentication": { "app_token": "#app_token#", "client_token": "#client_token#", "user_token": "#user_token#" }, "header": { "header_version": 1, "api_version": "5", "no_cache": true }, "add_presentation_asset": { "title": "", "filename": "", "isRemoteSource": false, "folders": [ "13827", "14544" ] } } }

Response

Response format

{
  "success": {
    "code": 501,
    "message": "Asset Saved\/Updated",
    "details": "assetid 1036400"
  },
  "addMediaAssetResponse": {
    "assetid": 1036400,
    "title": "Initial Tests-1",
    "dateadd": "2014-10-30T16:45:14Z",
    "datemod": "2014-10-30T16:45:14Z",
    "description": false,
    "tags": false,
    "isActive": 1,
    "isHidden": 0,
    "geoFilterId": 0,
    "uuid": "x4n5sp42",
    "isPublished": 1,
    "date_start": "-0001-11-30T00:00:00Z",
    "date_end": "-0001-11-30T00:00:00Z",
    "referenceId": "",
    "thumbnailUrl": "http:\/\/ec2-174-129-101-142.compute-1.amazonaws.com\/thumbs\/aid\/w\/h\/t1414687514\/1036400.jpg",
    "thumbRel": "\/thumbs\/aid\/w\/h\/t1414687514\/1036400.jpg",
    "assetType": "presentation",
    "asset_type": "presentation",
    "assetFiles": [
      {
        "class": "AssetFile",
        "assetfileid": 1460940,
        "datemod": "2014-10-30T16:45:14Z",
        "filesize": 2592768,
        "assetFileTypeid": 21,
        "isReferenceFile": 0,
        "setAsAssociatedFile": 0,
        "isSymLink": 0,
        "full_cdn_path": "http:\/\/vidego-http.multicastmedia.com\/mm\/presentations\/73\/0708_simple_machines_8.ppt?cid=73&aid=1036400&afid=1460940&assetid=1036400",
        "http_url": "http:\/\/vidego-http.multicastmedia.com\/mm\/presentations\/73\/0708_simple_machines_8.ppt?cid=73&aid=1036400&afid=1460940&assetid=1036400"
      }
    ],
    "referenceFile": null,
    "associatedLinks": [
      
    ],
    "captions": [
      
    ],
    "AssociatedFiles": [
      
    ],
    "full_cdn_path": "http:\/\/vidego-http.multicastmedia.com\/mm\/presentations\/73\/0708_simple_machines_8.ppt?cid=73&aid=1036400&afid=1460940",
    "slides": [
      
    ],
    "googleAnalyticsAccount": "123",
    "folders": [
      13827,
      14544
    ]
  }
}