Summary
Method | Url | Description |
---|---|---|
GET | /api/1/data/{dataType} | Return a list of all objects of the provided dataType. |
GET | /api/1/data/{dataType}/{rowId} | Return an object of the provided dataType based on the primary key (the id). |
POST | /api/1/data/{dataType} | Insert a new object of the provided dataType in the Plamo data store. |
PUT | /api/1/data/{dataType}/{rowId} | Updates the existing object of the provided dataType with rowId in the Plamo data store. |
DELETE | /api/1/data/{dataType}/{rowId} | Deletes the existing object of the provided dataType with rowId from the Plamo data store. |
GET | /api/1/data/content/{dataType}/{rowId}/{column} | Return the content of a specific field. Can be used to retrieve files stored in the Plamo data store. |
POST | /api/1/data/content/{dataType}/{rowId}/{column} | Inserts the file content in the specified field of an existing object of the provided dataType with rowId. |
GET /api/1/data/{dataType}
URL: https://www.plamo.nl/api/1/data/{dataType}
Return a list of all objects of the provided dataType.
The results can be limited by providing a where clause. Sorting of the result can be performed by using the order statement.
HTTP headers
x-plamo-application-key required |
The application key as shown in the Plamo console for the application. |
x-plamo-application-version required |
The application version key as shown in the Plamo console for the application. |
Request parameters
dataType required |
The datatype to retrieve. |
query optional |
{"where":[{"<columnName>":[{"<operator>":"<value>"},{"<operator>":"<value>"}]},{"<columnName":{"<opterator>":"<value>"}}],"order":[{"<columnName>":"<sortOrder>"},{"<columnName>":"<sortOrder>"}]} columnName: the name of a column as defined in the "Data storage" section of the Plamo console. operator: allowed values: =, <, >, <=, >=, <> sortOrder: allowed values: asc, desc Default: none |
page optional |
Specifies the page of the result to return.Default: 1 |
pageSize optional |
Specifies the number of items on one page.Default: 20 |
Example 1:
Retrieve a list of articles. Get the second page of 30 items. (results 31..60)
Example output:
Example 2:
Retrieve a list of articles with an Id > 1 and < 4. Sort the results on id in descending order.
Example output:
GET /api/1/data/{dataType}/{rowId}
URL: https://www.plamo.nl/api/1/data/{dataType}/{rowId}
Return an object of the provided dataType based on the primary key (the id).
HTTP headers
x-plamo-application-key required |
The application key as shown in the Plamo console for the application. |
x-plamo-application-version required |
The application version key as shown in the Plamo console for the application. |
Request parameters
dataType required |
The datatype to retrieve. |
rowId required |
The id of the object to retrieve. |
Example:
Retrieve article with id 2.
Example output:
POST /api/1/data/{dataType}
URL: https://www.plamo.nl/api/1/data/{dataType}
Insert a new object of the provided dataType in the Plamo data store.
HTTP headers
x-plamo-application-key required |
The application key as shown in the Plamo console for the application. |
x-plamo-application-version required |
The application version key as shown in the Plamo console for the application. |
Request parameters
dataType required |
The datatype to insert. |
Request body
<json object> required |
The object that needs to be inserted for the specified datatype. |
Example:
Insert object of datatype article.
Example output:
PUT /api/1/data/{dataType}/{rowId}
URL: https://www.plamo.nl/api/1/data/{dataType}/{rowId}
Updates the existing object of the provided dataType with rowId in the Plamo data store.
HTTP headers
x-plamo-application-key required |
The application key as shown in the Plamo console for the application. |
x-plamo-application-version required |
The application version key as shown in the Plamo console for the application. |
Request parameters
dataType required |
The datatype of the object to be updated. |
rowId required |
The id of the object to update. |
Request body
<json object> required |
The object specifying fields to be updated for the specified datatype. |
Example:
Updates object of datatype article with id 2.
Example output:
DELETE /api/1/data/{dataType}/{rowId}
URL: https://www.plamo.nl/api/1/data/{dataType}/{rowId}
Deletes the existing object of the provided dataType with rowId from the Plamo data store.
HTTP headers
x-plamo-application-key required |
The application key as shown in the Plamo console for the application. |
x-plamo-application-version required |
The application version key as shown in the Plamo console for the application. |
Request parameters
dataType required |
The datatype of the object to be deleted. |
rowId required |
The id of the object to delete. |
Example:
Deletes object of datatype article with id 3.
Example output:
GET /api/1/data/content/{dataType}/{rowId}/{column}
URL: https://www.plamo.nl/api/1/data/content/{dataType}/{rowId}/{column}
Return the content of a specific field. Can be used to retrieve files stored in the Plamo data store.
HTTP headers
x-plamo-application-key required |
The application key as shown in the Plamo console for the application. |
x-plamo-application-version required |
The application version key as shown in the Plamo console for the application. |
Request parameters
dataType required |
The datatype to retrieve. |
rowId required |
The id of the object to retrieve. |
column required |
The column of the dataType to return. |
Request body iOS
<transactionReceipt> required |
When Store Kit returns a completed purchase to your payment queue observer, the transaction's transactionReceipt property contains a signed receipt that records all the critical information for the transaction. This receipt needs to be posted to Plamo to verify that the receipt is valid and has not been tampered with. |
Request body Android
signedData required |
The signedData as received from the inapp_signed_data bundle attribute of the com.android.vending.billing.PURCHASE_STATE_CHANGED intent. See the Google Android InApp Billing documentation for more information. |
signature required |
The signedData as received from the inapp_signature bundle attribute of the com.android.vending.billing.PURCHASE_STATE_CHANGED intent. Send the data received from Google unmodified in the signedData attribute. Although the data received from Google is JSON, do not handle the data as JSON but as String. See the Google Android InApp Billing documentation for more information. |
email optional |
PDF files can be stamped with purchase details. The purchase details will be added to the PDF when the PDF is downloaded from Plamo. Example: When the email address is provided the address is used in the stamp. The email is only using with PDF content. |
iOS Example:
Retrieve protected content for article with id 2.
Example output:
Android Example:
Retrieve protected content for article with id 2.
Example output:
POST /api/1/data/content/{dataType}/{rowId}/{column}
URL: https://www.plamo.nl/api/1/data/content/{dataType}/{rowId}/{column}
Inserts the file content in the specified field of an existing object of the provided dataType with rowId.
HTTP headers
x-plamo-application-key required |
The application key as shown in the Plamo console for the application. |
x-plamo-application-version required |
The application version key as shown in the Plamo console for the application. |
Request parameters
dataType required |
The datatype for which a file should be added. |
rowId required |
The id of the object for which a file should be added. |
column required |
The column of the dataType for which a file should be added. |
Request body
<file> required |
The file that needs to be added to the specified field. |
Example:
Insert file content for the image column of the article with id 2.