aYOUne
← communication API

Devices

Singular: Device — Base-URL: https://communication-api.ayoune.app — Zugriff: CRUD

play_circle Jetzt ausprobieren beta

Requests werden über den consumer-app Proxy an *.ayoune.app weitergeleitet. Tokens bleiben im Browser und werden pro Call mitgesendet.

Endpunkte

MethodePathBeschreibungRight
GET /devices Liste mit Filtern/Paginierung communication.devices.view
GET /devices/:id Einzelner Datensatz communication.devices.view
POST /devices Neuen Datensatz erstellen communication.devices.new
PUT /devices Datensatz aktualisieren communication.devices.edit
DELETE /devices/:id Datensatz löschen communication.devices.delete

SDK

import { aYOUne } from '@tolinax/ayoune';
const ay = new aYOUne('pat_your_token');

// Alle abrufen
const list = await ay.communication.devices.find().limit(10).exec();

// Einzelnen Datensatz
const one = await ay.communication.devices.findById('OBJECT_ID').exec();

// Erstellen
const created = await ay.communication.devices.create({ name: 'Foo' });

Weiterführend