aYOUne
← communication API

OptInRecords

Singular: OptInRecord — 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 /optinrecords Liste mit Filtern/Paginierung voice.optinrecords.view
GET /optinrecords/:id Einzelner Datensatz voice.optinrecords.view
POST /optinrecords Neuen Datensatz erstellen voice.optinrecords.new
PUT /optinrecords Datensatz aktualisieren voice.optinrecords.edit
DELETE /optinrecords/:id Datensatz löschen voice.optinrecords.delete

SDK

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

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

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

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

Weiterführend