Delete a document in a section
Parameters:
curl PHP JavaScript Java
Example:
Copy 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"
Example:
Copy require_once ( '../yumpu.php' );
$yumpu = new Yumpu ();
$data = array (
'id' => 'iMWWKoMS76pjqMoO_vpgFQQ3sHervO8yj' ,
'documents' => '20327014,20327015'
);
$deleteSectionDocument = $yumpu -> deleteSectionDocument ( $data ) ;
print_r ( $deleteSectionDocument ) ;
Example:
Copy 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);
});
Example:
Copy 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.