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