0.1.10 • Published 3 years ago

onoffice v0.1.10

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
3 years ago

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

3 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

3 years ago

0.0.17

3 years ago

0.0.16

3 years ago

0.0.15

3 years ago

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago

0.0.11

3 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago