aYOUne
← Configuration API

OAuthClients

Singular: OAuthClient — Base URL: https://config-api.ayoune.app — Access: CRUD

play_circle Try it now beta

Requests are proxied through the consumer-app to *.ayoune.app. Tokens stay in your browser and are forwarded per call.

Endpoints

MethodPathDescriptionRight
GET /oauthclients List with filters/pagination config.oauthclients.view
GET /oauthclients/:id Single record config.oauthclients.view
POST /oauthclients Create new record config.oauthclients.new
PUT /oauthclients Update record config.oauthclients.edit
DELETE /oauthclients/:id Delete record config.oauthclients.delete

SDK

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

// List all
const list = await ay.config.oAuthClients.find().limit(10).exec();

// Single record
const one = await ay.config.oAuthClients.findById('OBJECT_ID').exec();

// Create
const created = await ay.config.oAuthClients.create({ name: 'Foo' });

See also