Delete

Delete one subscription

Parameters:

Name

Optional / Required

Data type

Description

Default

id

required

String

One of your subscription ids

‚Äč

curl
PHP
JavaScript
Java
curl

Example:

curl -X DELETE -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=B7OxpT5ji53wLuR2" "http://api.yumpu.com/2.0/account/subscription.json"
PHP

Example:

require_once('../yumpu.php');
$yumpu = new Yumpu();
$id = 'B7OxpT5ji53wLuR2';
$deleteSubscription = $yumpu->deleteSubscription($id);
print_r($deleteSubscription);
JavaScript

Example:

var yumpu = require('yumpu');
yumpu.setToken('yourToken');
var parameters = {
id: 'B7OxpT5ji53wLuR2'
};
yumpu.deleteSubscription(parameters, function(statusCode, document){
console.log('Status: ' + statusCode);
console.log(document);
});
Java

Example:

Yumpu y = new Yumpu("your access token");
String id = "B7OxpT5ji53wLuR2";
System.out.println(y.deleteSubscription(id));

Whatever language you are using, the result will be the same.

{
"state": "success",
"completed_in": "0.0407"
}