content->mediaItem); } public function convertJson($requestParam) { $ret = json_decode($requestParam, true); if ($ret == $requestParam) { // The content upload specification allows the content-type in the post // body to be the binary data of the content. return null; } return $ret; } public function convertXml($requestParam) { $xml = InputBasicXmlConverter::loadString($requestParam); return InputBasicXmlConverter::convertMediaItems($xml, $xml); } }