Ubidots

FREE
By ubidots
Updated 4 months ago
Devices
-/10
Popularity Score
-
Latency
-
Success Rate

Ubidots API Documentation

Build your own sensor application. Ubidots simplifies the making of Internet of Things applications for data capturing, real-time remote monitoring and getting insights from sensor data.

View API Details
GETGET /datasources
Variables
DELETEDELETE /variables/{datasource_id}
GETGET /variables/{variable_id}
GETGET /variables
Data Sources
GETGET /datasources/{datasource_id}/variables
GETGET /datasources/{datasource_id}
DELETEDELETE /datasources/{datasource_id}
POSTPOST /datasources
POSTPOST /datasources/{datasource_id}/variables
Collections
POSTPOST /collections/values
Values
GETGET /variables/{variable_id}/values
POSTPOST /variables/{variable_id}/values
GETGET /datasources

This resource lists all the existing data sources of a user.

Authorization:

description

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
X-Auth-TokenHEADER
REQUIREDRefer to http://ubidots.com/docs/api/v1_6/auth/token.html#post-api-v1-6-auth-token for instructions to generate token
Code Snippet
unirest.get("https://community-ubidots.p.rapidapi.com/datasources")
.header("X-RapidAPI-Host", "community-ubidots.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://community-ubidots.p.rapidapi.com/datasources
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://community-ubidots.p.rapidapi.com/datasources")
.header("X-RapidAPI-Host", "community-ubidots.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication