Delete one document
Parameters:
Example:
curl -X DELETE -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=20327033" "https://api.yumpu.com/2.0/document.json"
Example:
require_once('../yumpu.php');
$yumpu = new Yumpu();
$id = 20327033;
$deleteDocument = $yumpu->deleteDocument($id);
print_r($deleteDocument);
Example:
var yumpu = require('yumpu');
yumpu.setToken('yourToken');
var parameters = {
id: 20327033
};
yumpu.deleteDocument(parameters, function(statusCode, document){
console.log('Status: ' + statusCode);
console.log(document);
});
Example:
Yumpu y = new Yumpu("your access token");
String id = "20327033";
System.out.println(y.deleteDocument(id));
Whatever language you are using, the result will be the same.