Page History
Examples
Action add
Upload a web image.
Code Block | ||
---|---|---|
| ||
$filename = "/tmp/test_image.gif"; $handle = fopen($filename, "r"); $binary = fread($handle, filesize($filename)); fclose($handle); $data = array( "token" => $token, "tokenHash" => $tokenHash, "objectType" => "webimages", "objectAction" => "add", "values" => array( array( "webimageBinary" => base64_encode($binary), "webimageOldFileName" => "test_image.gif", "webimageName" => "test_image", ), ), ); |
Action delete
Delete an existing web image
Code Block | ||
---|---|---|
| ||
$data = array( "token" => $token, "tokenHash" => $tokenHash, "objectType" => "webimages", "objectAction" => "delete", "values" => array( array( "webimageID" => "46628", ), ), ); |
Overview
Content Tools