API
  • Yumpu documentations
  • JS
    • Introduction
    • Quick setup
    • Magazine example's
    • Bookshelf example's
    • FAQs
  • API
    • Introduction
    • Getting started
      • API token
      • Document API
      • User API
      • Search API
      • Install SDK's
    • Limits
    • Flowchart of basic processes
    • Documents
      • Get
    • Document
      • Get
      • Post file
      • Post url
      • Put
      • Delete
    • Document hotspots
      • Get
    • Document hotspot
      • Get
      • Post
      • Put
      • Delete
    • Document progress
      • Get
    • Document categories
      • Get
    • Document languages
      • Get
    • Countries
      • Get
    • Collections
      • Get
    • Collection
      • Get
      • Post
      • Put
      • Delete
    • Section
      • Get
      • Post
      • Put
      • Delete
    • Section document
      • Post
      • Delete
    • Search
      • Get
    • User
      • Get
      • Post
      • Put
    • Embeds
      • Get
    • Embed
      • Get
      • Post
      • Put
      • Delete
    • Members
      • Get
    • Member
      • Get
      • Post
      • Put
      • Delete
    • Access tags
      • Get
    • Access tag
      • Get
      • Post
      • Put
      • Delete
    • Subscriptions
      • Get
    • Subscription
      • Get
      • Post
      • Put
      • Delete
Powered by GitBook
On this page
  • Retrieve a list of your subscriptions
  • Parameters:
  • Demo

Was this helpful?

  1. API
  2. Subscriptions

Get

PreviousSubscriptionsNextSubscription

Last updated 3 years ago

Was this helpful?

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 - 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:

Yumpu y = new Yumpu("your access token");
String[] params = {"limit=2", "offset=0"};
System.out.println(y.getSubscriptions(params));

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

{
  "total": "5",
  "subscriptions": [
    {
      "id": "QOjiaWfWYWd7TBHE",
      "create_date": "2015-01-27 13:21:37",
      "update_date": "0000-00-00 00:00:00",
      "itc_product_id": "subscription1",
      "name": "subscription1",
      "description": "subscription1",
      "duration": "365",
      "kiosks": [
        {
          "id": "72",
          "type": "appkiosk"
        }
      ]
    },
    {
      "id": "Xzb3GYb5dzimC3Ww",
      "create_date": "2015-01-27 09:58:17",
      "update_date": "0000-00-00 00:00:00",
      "itc_product_id": "subscription2",
      "name": "subscription2",
      "description": "subscription2",
      "duration": "93",
      "kiosks": [
        {
          "id": "72",
          "type": "appkiosk"
        }
      ]
    },
    {
      ...
    }
  ],
  "state": "success",
  "completed_in": "0.0316"
}
yumpu.com