versión 8.3.8

Back | 

WsProgram

URL

de.piksel.tech/services/index.php?&mode=json
Use "request" param as post variable for submitting json/xml request payload for all POST requests.

Request Headers

Name

Parameters

Request

Creates a new program

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_Program": {
      "projectUUID": "a1s2d3f4",
      "assetId": "33",
      "title": "My New Title",
      "description": "My New Description",
      "date_start": "2014-03-02",
      "date_end": "2016-03-03",
      "isHidden": "0",
      "isPublished": "1",
      "youtubePublishable": "1",
      "sortnum": "end",
      "categories": [
        "200",
        "300"
      ],
      "metadatas": {
        "adVastUrl": "http:\/\/www.google.com",
        "adVastUrl2": "http:\/\/www.googleasdsad.com"
      }
    }
  }
}

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_Program": { "projectUUID": "a1s2d3f4", "assetId": "33", "title": "My New Title", "description": "My New Description", "date_start": "2014-03-02", "date_end": "2016-03-03", "isHidden": "0", "isPublished": "1", "youtubePublishable": "1", "sortnum": "end", "categories": [ "200", "300" ], "metadatas": { "adVastUrl": "http:\/\/www.google.com", "adVastUrl2": "http:\/\/www.googleasdsad.com" } } } }

Response

Response format

{
  "response": {
    "success": {
      "code": 882,
      "message": "Program added\/updated",
      "details": ""
    },
    "WsProgram": {
      "Program": {
        "class": "Program",
        "sortnum": 0,
        "type": "video",
        "dateStart": "2014-03-02T00:00:00Z",
        "dateEnd": "2016-03-03T00:00:00Z",
        "assetid": 33,
        "uuid": "p5p28bx3",
        "presentationid": 0,
        "isHidden": 0,
        "geoFilterId": 0,
        "youtubePublishable": 1,
        "referenceId": "sad",
        "hasGeoFilter": false,
        "thumbnailUrl": "",
        "posterUrl": "",
        "duration": null,
        "projectUUID": "a1s2d3f4",
        "asset": {
          "assetid": 33,
          "title": "",
          "datemod": "2014-08-20T20:34:27Z",
          "isActive": 1,
          "isHidden": 0,
          "geoFilterId": 0,
          "uuid": "aaaaaa",
          "isPublished": 1,
          "date_start": "2000-05-01T00:00:00Z",
          "date_end": "3015-05-01T00:00:00Z",
          "youtubePublishable": 1,
          "referenceId": "2",
          "thumbnailUrl": "\/thumbs\/aid\/w\/h\/t1408566867\/33.jpg",
          "thumbRel": "\/thumbs\/aid\/w\/h\/t1408566867\/33.jpg",
          "assetType": "video",
          "asset_type": "video",
          "assetFiles": [
            {
              "class": "AssetFile",
              "assetfileid": 1,
              "datemod": "2014-08-20T20:34:27Z",
              "isReferenceFile": 0,
              "setAsAssociatedFile": 0,
              "isSymLink": 0
            }
          ],
          "referenceFile": null,
          "rtmpSmil": "\/ws\/get_smilv2\/od\/rtmp\/tr_projectuuid_a1s2d3f4\/tr_programuuid_p5p28bx3\/33.smil",
          "associatedLinks": [
            
          ],
          "captions": [
            
          ],
          "AssociatedFiles": [
            
          ],
          "metadatas": [
            
          ],
          "folders": null
        },
        "Title": "My New Title",
        "Description": "My New Description",
        "metadatas": {
          "adVastUrl": {
            "value": "http:\/\/www.google.com",
            "displayName": "adVastUrl"
          },
          "adVastUrl2": {
            "value": "http:\/\/www.googleasdsad.com",
            "displayName": "adVastUrl2"
          }
        },
        "hasChapters": false,
        "vmapUrl": ""
      }
    }
  }
}