Meride API - Akamai Media Analytics - Create

Questa pagina spiega come inserire elementi Akamai Media Analytics.

Entity name: ama.

POST http://API_DOMAIN/rest/ama.{format}

Attributes

Parameter Value Mandatory
title A non-empty string YES
url_beacon The URL of the xml beacon of the analytics configuration. A field between url_beacon and beacon must be set No
beacon Un riferimento al percorso del file beacon sul proprio disco.
Formati accettati: xml. A field between url_beacon and beacon must be set
No
predefinito 1 if you want the configuration entered to be the default. 0 otherwise. A default configuration is automatically associated when creating a new embed which is not explicitly specified NO
description A string NO

Response

Field Value Description
id string Object ID
title string Object title
predefinito boolean 1 if the default configuration is Akamai Media Analytics . 0 otherwise
description string The associated description
data_inserimento string The create date that follows the format Y-m-d H:i:s
Y(year) m(month) d(day) H(hours) i(minutes) s(seconds)
url_beacon string URL of the associated beacon file

Example of a curl request

curl -i -H "Accept: application/json" -H "access-token: Fun94nBf4YiaL20hG5np2Ki8mHtm9OCn4R6lPamNM8mNn7YFDRUvZveSbB0n6T" -X POST -F "beacon=@path_and_filename.xml" -F "titolo=Title" -F "predefinito=1" http://API_DOMAIN/rest/ama.json

Example of a JSON response

{
    "id":"7",
    "titolo":"Title",
    "predefinito":"1",
    "descrizione":null,
    "data_inserimento":"2013-05-18 17:00:37",
    "url_beacon":"http:\/\/example.com\/meride\/video\/images\/test.xml"
}
            

Note The object created will be returned as a response