ClientApi documentation
Some basic information
- Unless communicated differently, the base url for all calls in this documentation is https://clientapi.epublisher.world
- All requests are case sensitive
- Every call fo this API must be authorized with the Creator username and password as Basic Auth headers or a token as Bearer Token header
- All calls are JSON based, unless something else is specifically mentioned
Revisions
- 2021 new documentation format
ePublisher
Contact: Eelco van Delft
All calls to the ClientAPI are done using Basic Auth with your Creator login or clientapi token
The login data is the same as your Creator username and password. Since version 1.2 we support the use if ClientApi tokens which can be sent as Bearer Token
- If this data is not known for your account, then please contact your sales manager.
- All login data is case sensitive
Magazines / publications are referred to as Editions
{id}
{storekey}
{startdate}
/{enddate}
{id}
Authentication
This will output the packaged data to be saved locally
Path variables
the edition id
Responses
Valid output, the data will be output
If anything is incorrect (wrong ID or not in account), the response will be a 400 Bad Request
GET https://clientapi.epublisher.world/datapackage/48042 HTTP/1.1
{storekey}
Authentication
This endpoint will retreive all editions for the given storekey for the authenticated account.
Path variables
the storekey of editions to load or leave empty for main store
Responses
Body
Examples
[
{
"Id": 1,
"Title": "",
"Description": "",
"Thumbnail": "",
"Price": 1,
"Publicationdate": "2020-01-22T15:00:00Z",
"Version": 1,
"Pagecount": 1,
"Storenames": [
""
],
"Active": true,
"Storekeys": [
""
],
"Storeids": [
1
],
"WebID": "null or 1234abcdef",
"pagedata": "",
"articledata": "",
"package_ios": "https://content.epublisher.world/Magazines/XXXXX//Resources/package/ios.zip",
"package_android": "https://content.epublisher.world/Magazines/XXXXX//Resources/package/ios.zip"
}
]
{startdate}
/{enddate}
Authentication
Find editions that have a publication date between the given start- end end-date
Path variables
date in format yyyy-mm-dd (eg 2001-12-25)
date in format yyyy-mm-dd (eg 2001-12-25)
Responses
Body
Examples
[
{
"Id": 1,
"Title": "",
"Description": "",
"Thumbnail": "",
"Price": 1,
"Publicationdate": "2020-01-22T15:00:00Z",
"Version": 1,
"Pagecount": 1,
"Storenames": [
""
],
"Active": true,
"Storekeys": [
""
],
"Storeids": [
1
],
"WebID": "null or 1234abcdef",
"pagedata": "",
"articledata": "",
"package_ios": "https://content.epublisher.world/Magazines/XXXXX//Resources/package/ios.zip",
"package_android": "https://content.epublisher.world/Magazines/XXXXX//Resources/package/ios.zip"
}
]
Authentication
Retreive all available stores for the logged in account
Responses
Body
The main ID
The title
The (html) description
The url for a thumbnail image
The price values (-1 in subscription only, 0=free, any valid double like 0.99 is a set price)
The date of publication
The version
The amount of pages
An array of store names which the edition is published in
The status, when false has been deleted
similar to storenames, but the unique storekeys
0000000-0000-000-0000-000000000000
similar to storenames, but the actual ids
my store name in text
the id required for the webreader (or null if not available for web)
list of pages
list of articles
url to the ios data package (if setup for account)
url to the android data package (if setup for account)
{
"Id": 1,
"Title": "",
"Description": "",
"Thumbnail": "",
"Price": 1,
"Publicationdate": "2020-01-22T15:00:00Z",
"Version": 1,
"Pagecount": 1,
"Storenames": [
""
],
"Active": true,
"Storekeys": [
""
],
"Storeids": [
1
],
"WebID": "null or 1234abcdef"
}
The ID
The Title
The unique ID for api connection
When true, this is the main storekey for the account and can also be required for other api calls (there can be only 1 set to Ismain)
{
"Id": 1,
"Title": "An Awesome store name filled with editions",
"Storekey": "xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxx",
"Ismain": true
}
{
"Id": 32,
"Title": "Another store in the same account",
"Storekey": "aaaaaaaa-aaaa-aaaa-aaaaaaaaaaaa",
"Ismain": false
}