0.1.10 • Published 3 years ago
onoffice v0.1.10
API Client
The easiest way to use the API is the OnOfficeAPIClient class which provides straight-forward methods such as searchResource().
import { OnOfficeAPIController } from 'onoffice';
const api = new OnOfficeAPIClient('TOKEN', 'SECRET');
const res = await api.searchResource({
input: 'Aachen'
});
console.log(res);Native Methods
import { fetchActions, signAction } from 'onoffice';
// More native interaction with onoffice API but still handling signing the request
const res = await fetchActions([
{
{
actionid: "urn:onoffice-de-ns:smart:2.5:smartml:action:get",
identifier: "",
parameters: {
input: "Aachen"
},
resourceid: "estate",
resourcetype: "search"
}
}
], 'TOKEN', 'SECRET', 'https://api.onoffice.de/api/latest/api.php', 'json');
// Anyway, this would just sign an action object
const signedAction = signAction({
actionid: "urn:onoffice-de-ns:smart:2.5:smartml:action:get",
identifier: "",
parameters: {
input: "Aachen"
},
resourceid: "estate",
resourcetype: "search"
}, 'TOKEN', 'SECRET');0.1.10
3 years ago
0.1.2
3 years ago
0.1.1
4 years ago
0.1.8
3 years ago
0.1.7
3 years ago
0.1.9
3 years ago
0.1.4
3 years ago
0.1.3
3 years ago
0.1.6
3 years ago
0.1.5
3 years ago
0.1.0
4 years ago
0.0.17
4 years ago
0.0.16
4 years ago
0.0.15
4 years ago
0.0.14
4 years ago
0.0.13
4 years ago
0.0.12
4 years ago
0.0.11
4 years ago
0.0.10
4 years ago
0.0.9
4 years ago
0.0.8
4 years ago
0.0.7
4 years ago
0.0.6
4 years ago
0.0.5
4 years ago
0.0.4
4 years ago
0.0.3
4 years ago
0.0.2
4 years ago
0.0.1
4 years ago