bluedot-nodejs-sdk
GetStarted
const Bluedot = ; const bluedot = email password ; const projects = await bluedotapi; const zones = await bluedotapi;
V1
For V1 please use the official guide:
https://github.com/Bluedot-Innovation/PublicAPI-Client-Node
API Documentation for Bluedot V2
credentials
createTokenRequest
Triggers a password reset token
https://config-docs.bluedot.io/#operation/createTokenRequest
// POST: /password/token-requestconst response = await bluedotapi;
resetPassword
Uses password reset token to change password
https://config-docs.bluedot.io/#operation/resetPassword
// POST: /password/tokenconst response = await bluedotapi;
createNewPassword
Uses the temporary password to change a newly created user's password
https://config-docs.bluedot.io/#operation/createNewPassword
// POST: /password/newconst response = await bluedotapi;
tags
getTags
Gets a list of all tags being used on zones by projectId
https://config-docs.bluedot.io/#operation/getTags
// GET: /tagsconst response = await bluedotapi;
sessions
createSession
Authenticates a user
https://config-docs.bluedot.io/#operation/createSession
// POST: /sessionsconst response = await bluedotapi;
deleteSession
Logs a user out
https://config-docs.bluedot.io/#operation/deleteSession
// DELETE: /sessionsconst response = await bluedotapi;
refreshSession
Refreshes a session
https://config-docs.bluedot.io/#operation/refreshSession
// PUT: /sessionsconst response = await bluedotapi;
users
addUser
Adds a user
https://config-docs.bluedot.io/#operation/addUser
// POST: /usersconst response = await bluedotapi;
searchUsers
Gets all users
https://config-docs.bluedot.io/#operation/searchUsers
// GET: /usersconst response = await bluedotapi;
replaceUser
Updates a complete user
https://config-docs.bluedot.io/#operation/replaceUser
// PUT: /users/{userId}const response = await bluedotapi;
getUserById
Finds user by userId
https://config-docs.bluedot.io/#operation/getUserById
// GET: /users/{userId}const response = await bluedotapi;
deleteUser
Deletes a user
https://config-docs.bluedot.io/#operation/deleteUser
// DELETE: /users/{userId}const response = await bluedotapi;
updateUser
Updates a user
https://config-docs.bluedot.io/#operation/updateUser
// PATCH: /users/{userId}const response = await bluedotapi;
projects
addProject
Adds a project
https://config-docs.bluedot.io/#operation/addProject
// POST: /projectsconst response = await bluedotapi;
getProjects
Gets all projects by accountId
https://config-docs.bluedot.io/#operation/getProjects
// GET: /projectsconst response = await bluedotapi;
replaceProject
Updates a complete project
https://config-docs.bluedot.io/#operation/replaceProject
// PUT: /projects/{projectId}const response = await bluedotapi;
getProjectById
Finds project by ID
https://config-docs.bluedot.io/#operation/getProjectById
// GET: /projects/{projectId}const response = await bluedotapi;
deleteProject
Deletes a project
https://config-docs.bluedot.io/#operation/deleteProject
// DELETE: /projects/{projectId}const response = await bluedotapi;
updateProject
Updates an project
https://config-docs.bluedot.io/#operation/updateProject
// PATCH: /projects/{projectId}const response = await bluedotapi;
zones
addZone
Adds a zone to the project
https://config-docs.bluedot.io/#operation/addZone
// POST: /zonesconst response = await bluedotapi;
getZones
Gets all zones by project Id
https://config-docs.bluedot.io/#operation/getZones
// GET: /zonesconst response = await bluedotapi;
replaceZone
Replaces a zone
https://config-docs.bluedot.io/#operation/replaceZone
// PUT: /zones/{zoneId}const response = await bluedotapi;
getZoneById
Finds a zone by zoneId
https://config-docs.bluedot.io/#operation/getZoneById
// GET: /zones/{zoneId}const response = await bluedotapi;
deleteZone
Deletes a zone
https://config-docs.bluedot.io/#operation/deleteZone
// DELETE: /zones/{zoneId}const response = await bluedotapi;
updateZone
Updates a zone
https://config-docs.bluedot.io/#operation/updateZone
// PATCH: /zones/{zoneId}const response = await bluedotapi;
getZoneClusters
Gets zone clusters by project Id
https://config-docs.bluedot.io/#operation/getZoneClusters
// GET: /zones/clustersconst response = await bluedotapi;
getZonesCount
Gets zones count per project Id
https://config-docs.bluedot.io/#operation/getZonesCount
// GET: /zones/countconst response = await bluedotapi;
beacons
addBeacon
Adds a beacon
https://config-docs.bluedot.io/#operation/addBeacon
// POST: /beaconsconst response = await bluedotapi;
getBeacons
Gets all beacons by account
https://config-docs.bluedot.io/#operation/getBeacons
// GET: /beaconsconst response = await bluedotapi;
getBeaconById
Finds a beacon by beaconId
https://config-docs.bluedot.io/#operation/getBeaconById
// GET: /beacons/{beaconId}const response = await bluedotapi;
deleteBeacon
Deletes a beacon
https://config-docs.bluedot.io/#operation/deleteBeacon
// DELETE: /beacons/{beaconId}const response = await bluedotapi;
replaceBeacon
Updates a complete beacon
https://config-docs.bluedot.io/#operation/replaceBeacon
// PUT: /beacons/{beaconId}const response = await bluedotapi;
updateBeacon
Updates a beacon
https://config-docs.bluedot.io/#operation/updateBeacon
// PATCH: /beacons/{beaconId}const response = await bluedotapi;