aYOUne
← iot API

BleSensors

Singular: BleSensor — Base URL: https://iot.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 /blesensors List with filters/pagination iot.blesensors.view
GET /blesensors/:id Single record iot.blesensors.view
POST /blesensors Create new record iot.blesensors.new
PUT /blesensors Update record iot.blesensors.edit
DELETE /blesensors/:id Delete record iot.blesensors.delete

SDK

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

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

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

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

See also