A
A
API
Search…
Delete

Delete one subscription

Parameters:

Name
Optional / Required
Data type
Description
Default
id
required
String
One of your subscription ids
curl
PHP
JavaScript
Java
Example:
1
curl -X DELETE -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" -d "id=B7OxpT5ji53wLuR2" "http://api.yumpu.com/2.0/account/subscription.json"
Copied!
Example:
1
require_once('../yumpu.php');
2
$yumpu = new Yumpu();
3
$id = 'B7OxpT5ji53wLuR2';
4
$deleteSubscription = $yumpu->deleteSubscription($id);
5
print_r($deleteSubscription);
Copied!
Example:
1
var yumpu = require('yumpu');
2
yumpu.setToken('yourToken');
3
var parameters = {
4
id: 'B7OxpT5ji53wLuR2'
5
};
6
yumpu.deleteSubscription(parameters, function(statusCode, document){
7
console.log('Status: ' + statusCode);
8
console.log(document);
9
});
Copied!
Example:
1
Yumpu y = new Yumpu("your access token");
2
String id = "B7OxpT5ji53wLuR2";
3
System.out.println(y.deleteSubscription(id));
Copied!
Whatever language you are using, the result will be the same.
1
{
2
"state": "success",
3
"completed_in": "0.0407"
4
}
Copied!
Last modified 1yr ago