0.1.10 • Published 2 years ago

onoffice v0.1.10

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 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

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.9

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.0

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago