Version 7.7.3

Back | 

WsThumbnail

URL

medialize.stream.co.jp/services/index.php?&mode=json
Use "request" param as post variable for submitting json/xml request payload for all POST requests.

Parameters

  • assetId => Id of the asset in which to associate the thumbnail.
    assetUUID => UUID of the asset in which to associate the thumbnail.
    referenceId => Reference id of the asset in which to associate the thumbnail.
    filename => Name of or URL to the thumbnail file.
    is_remote_source => True or False whether filename is an URL or name of a file in your FTP folder.
    set_as_default => True or false whether or not to set thumbnail as the default.
    set_as_poster => True or false whether or not to set thumbnail as the poster.

Request

Add a thumbnail to a video or audio asset.

Request format

{
  "request": {
    "authentication": {
      "app_token": "7cd207c2-6808-11e3-b865-22000a8a28ea",
      "client_token": "d4c1b92c0acb102ba3e10015c5f061d1",
      "user_token": "f277cb9d46e45f67f44de949cdde110f"
    },
    "header": {
      "header_version": 1,
      "api_version": "5",
      "no_cache": true
    },
    "ws_thumbnail": {
      "assetId": "",
      "assetUUID": "",
      "referenceId": "",
      "filename": "",
      "is_remote_source": true,
      "setAsDefault": true,
      "setAsPoster": true
    }
  }
}

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 }, "ws_thumbnail": { "assetId": "", "assetUUID ": "", "referenceId": "", "filename": "", "is_remote_source": true, "set_as_default": true, "set_as_poster": true } } }

Response

Response format

{
  "response": {
    "success": {
      "code": 507,
      "message": "Thumbnail Created",
      "details": ""
    },
    "WsThumbnailResponse": {
      "thumbnails": {
        "id": 14579,
        "title": "Sample Thumbnail",
        "filename": "sample.jpg",
        "path": "f\/m\/p\/",
        "sortnum": 1,
        "assetId": "1036831"
      }
    }
  }
}