Last updated 1 year ago
Example:
curl -X DELETE -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj" -d "documents=20327014,20327015" "https://api.yumpu.com/2.0/collection/section/document.json"
require_once('../yumpu.php'); $yumpu = new Yumpu(); $data = array( 'id' => 'iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj', 'documents' => '20327014,20327015' ); $deleteSectionDocument = $yumpu->deleteSectionDocument($data); print_r($deleteSectionDocument);
var yumpu = require('yumpu'); yumpu.setToken('yourToken'); var parameters = { id: 'iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj', documents: '20327014,20327015' }; yumpu.deleteSectionDocument(parameters, function(statusCode, document){ console.log('Status: ' + statusCode); console.log(document); });
Yumpu y = new Yumpu("your access token"); String id = "iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj"; String documents = "20327014,20327015"; System.out.println(y.deleteSectionDocument(id, documents));
Whatever language you are using, the result will be the same.
{"state":"success"}
Name
Optional / Required
Data type
Description
Default
id
required
String
One of your section ids
documents
String or integer
One or more document ids