Last updated 2 years ago
Example:
curl -X DELETE -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=20327033" "https://api.yumpu.com/2.0/document.json"
require_once('../yumpu.php'); $yumpu = new Yumpu(); $id = 20327033; $deleteDocument = $yumpu->deleteDocument($id); print_r($deleteDocument);
var yumpu = require('yumpu'); yumpu.setToken('yourToken'); var parameters = { id: 20327033 }; yumpu.deleteDocument(parameters, function(statusCode, document){ console.log('Status: ' + statusCode); console.log(document); });
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.
{"state":"success"}
Name
Optional / Required
Data type
Description
Default
id
required
Integer
One of your document ids