Unet API provides a vast range of functionality for getting data and manipulating different Unet entities.
There are also several methods for authorizing data requests:
RESOURCE_URI
Successful authorization returns the field resource_uri
, which contains the prefix that should be used to compose endpoint URIs.
WEBDAV_URI
If an application uses scopes files_read
or files_write
, then a successful authorization returns the field webdav_uri
, which is the root directory of user files.
Some requests support the fields
parameter which describes what data should be returned.
The mark ? next to a field name indicates that the field is not returned by default and must be specified in the fields
parameter.
The fields model allows you to exclude from the responce any parameters that are included by default.
Example
"fields": {
"id": false,
"title": true,
"message": true,
"attachments": true
}
ENDPOINT/
?q={...}Example
https://00001.unet.com/api/entries/?q={"limit":20}
all/
?q=[...]Examples
Adding and deleting groups of entries
https://00001.unet.com/api/entries/?q=[
"add", [
{
"title":"Article",
"message":"Text of the article."
},
{
"title":"Best story",
"message":"Once upon a time...",
"publish_at":"2011-11-11T11:11:11+00:00",
"access":
}
],
"delete", [
{"id":391},
{"id":392},
{"id":393}
]
]
TODO: describe the response strucute
TODO