A
A
API
Search…
Get

Retrieve a subscription

Parameters:

Name
Optional / Required
Data type
Description
Default
id
required
Integer
One of your subscription ids
return_fields
optional
String
Customize the responses by setting the return fields (id, itc_product_id, name, description, duration, kiosks, create_date, update_date)
id, itc_product_id, name, description, duration, kiosks, create_date, update_date

Demo

URL Find your token on - yumpu.com Token
id

Optional parameters:

return_fields
Add optional parametersRun request
1
Copied!
curl
PHP
JavaScript
Java
Example:
1
curl -X GET -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" "http://api.yumpu.com/2.0/account/subscription.json?id=QOjiaWfWYWd7TBHE"
Copied!
Example:
1
require_once('../yumpu.php');
2
$yumpu = new Yumpu();
3
$data = array(
4
'id' => 'QOjiaWfWYWd7TBHE'
5
);
6
$listSubscription = $yumpu->getSubscription($data);
7
print_r($listSubscription);
Copied!
Example:
1
var yumpu = require('yumpu');
2
yumpu.setToken('yourToken');
3
var parameters = {
4
id: 'QOjiaWfWYWd7TBHE'
5
};
6
yumpu.getSubscription(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[] params = {"id=QOjiaWfWYWd7TBHE"};
3
System.out.println(y.getSubscription(params));
Copied!
Whatever language you are using, the result will be the same.
1
{
2
"subscription": {
3
"id": "QOjiaWfWYWd7TBHE",
4
"create_date": "2015-01-27 13:21:37",
5
"update_date": "0000-00-00 00:00:00",
6
"itc_product_id": "subscription1",
7
"name": "subscription1",
8
"description": "subscription1",
9
"duration": "365",
10
"kiosks": [
11
{
12
"id": "72",
13
"type": "appkiosk"
14
}
15
]
16
},
17
"state": "success",
18
"completed_in": "0.0434"
19
}
Copied!
Last modified 1yr ago