Get
Retrieve a list of your subscriptions
Parameters:
Name
Optional / Required
Data type
Description
Default
q
optional
String
A keyword to search for
offset
optional
Integer
Retrieve rows at position X (min. 0)
0
limit
optional
Integer
Retrieve X rows (min. 0 and max. 100)
10
sort
optional
String
Sort results by create_date ascendending / descending (create_date_asc, create_date_desc) or name ascendending / descending (name_asc, name_desc)
create_date_desc
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
Optional parameters:
q offset limit sort return_fields
Add optional parametersRun request
Example:
curl -X GET -H "X-ACCESS-TOKEN: YOUR_ACCESS_TOKEN" "https://api.yumpu.com/2.0/account/subscriptions.json?limit=2&offset=0"Example:
require_once('../yumpu.php');
$yumpu = new Yumpu();
$data = array(
'limit' => 2,
'offset' => 0
);
$listSubscriptions = $yumpu->getSubscriptions($data);
print_r($listSubscriptions);Example:
var yumpu = require('yumpu');
yumpu.setToken('yourToken');
var parameters = {
limit: 2,
offset: 0
};
yumpu.getSubscriptions(parameters, function(statusCode, document){
console.log('Status: ' + statusCode);
console.log(document);
});Example:
Whatever language you are using, the result will be the same.
Last updated
Was this helpful?