test/post-test.php
author cavaliet
Thu, 02 Aug 2012 18:25:30 +0200
branchnew-model
changeset 933 8604bc7b4712
parent 928 5aadbc9f27cd
child 931 0fdce6e14748
permissions -rw-r--r--
source tag for video tag in mashup html code.

<?php

$data = json_decode($HTTP_RAW_POST_DATA);

if (!isset($data->annotations[0]->id)) {
    $data->annotations[0]->id = uniqid("annotation_");
}

if (!isset($data->annotations[0]->type)) {
    $data->annotations[0]->type = uniqid("annotationType_");
}

print_r(json_encode($data));

?>