odb-api
TypeScript icon, indicating that this package has built-in type declarations

1.0.6 • Public • Published

objektdatenbank-api-nodejs

This package can be used to get API access to an ODB instance.

NPM Package: https://www.npmjs.com/package/odb-api

Example Usage:

    const odb = api({apiKey: '1234', host: 'objektdatenbank.at'});
    const list = await odb.getList(123);
    const object = await odb.getObject(123, list[0].id);
    const updated = await odb.updateObject(123, list[0].id, {text: 'updated'});
    const added = await odb.addObject(123, {title: 'title', lat: '12.3', lng: '47.1'});
    const removed = await odb.removeObject(123, added.id);

Package Sidebar

Install

npm i odb-api

Weekly Downloads

2

Version

1.0.6

License

MIT

Unpacked Size

14.8 kB

Total Files

7

Last publish

Collaborators

  • shofer