Authentication
All requests require an API key via the Authorization
header.
curl -H "Authorization: Bearer YOUR_KEY" \
https://api.fan.com/v1/devices
Powerful APIs, SDKs, and tools to integrate Fan devices and services into your apps.
Quickstart Guide$ npm install -g fan-cli
$ fan login
$ fan init my-app
All requests require an API key via the Authorization
header.
curl -H "Authorization: Bearer YOUR_KEY" \
https://api.fan.com/v1/devices
List, create, update, and delete connected devices.
GET /v1/devices
POST /v1/devices
PATCH /v1/devices/:id
DELETE /v1/devices/:id
import Fan from 'fan-sdk';
const client = new Fan({ key: 'YOUR_KEY' });
const devices = await client.devices.list();
from fan_sdk import Fan
client = Fan('YOUR_KEY')
print(client.devices.list())
curl -H "Authorization: Bearer YOUR_KEY" \
https://api.fan.com/v1/devices