hue_web_lamp_api v1.0.0
hue_web_lamp_api
HueWebLampApi - JavaScript client for hue_web_lamp_api No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen) This SDK is automatically generated by the Swagger Codegen project:
- API version: v1
- Package version: v1
- Build package: io.swagger.codegen.languages.JavascriptClientCodegen
Installation
For Node.js
npm
To publish the library as a npm, please follow the procedure in "Publishing npm packages".
Then install it via:
npm install hue_web_lamp_api --save
git
If the library is hosted at a git repository, e.g. https://github.com/YOUR_USERNAME/hue_web_lamp_api then install it via:
npm install YOUR_USERNAME/hue_web_lamp_api --save
For browser
The library also works in the browser environment via npm and browserify. After following
the above steps with Node.js and installing browserify with npm install -g browserify
,
perform the following (assuming main.js is your entry file):
browserify main.js > bundle.js
Then include bundle.js in the HTML pages.
Getting Started
Please follow the installation instruction and execute the following JS code:
var HueWebLampApi = require('hue_web_lamp_api');
var api = new HueWebLampApi.ColorApi()
var id = "id_example"; // {String}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.apiLampColorBrightnessByIdGet(id, callback);
Documentation for API Endpoints
All URIs are relative to https://localhost/
Class | Method | HTTP request | Description |
---|---|---|---|
HueWebLampApi.ColorApi | apiLampColorBrightnessByIdGet | GET /api/lamp/Color/brightness/{id} | |
HueWebLampApi.ColorApi | apiLampColorBrightnessByIdPost | POST /api/lamp/Color/brightness/{id} | |
HueWebLampApi.ColorApi | apiLampColorBrightnessPost | POST /api/lamp/Color/brightness | |
HueWebLampApi.ColorApi | apiLampColorByIdGet | GET /api/lamp/Color/{id} | |
HueWebLampApi.ColorApi | apiLampColorByIdPost | POST /api/lamp/Color/{id} | |
HueWebLampApi.ColorApi | apiLampColorHueByIdGet | GET /api/lamp/Color/hue/{id} | |
HueWebLampApi.ColorApi | apiLampColorHueByIdPost | POST /api/lamp/Color/hue/{id} | |
HueWebLampApi.ColorApi | apiLampColorHuePost | POST /api/lamp/Color/hue | |
HueWebLampApi.ColorApi | apiLampColorPost | POST /api/lamp/Color | |
HueWebLampApi.ColorApi | apiLampColorSaturationByIdGet | GET /api/lamp/Color/saturation/{id} | |
HueWebLampApi.ColorApi | apiLampColorSaturationByIdPost | POST /api/lamp/Color/saturation/{id} | |
HueWebLampApi.ColorApi | apiLampColorSaturationPost | POST /api/lamp/Color/saturation | |
HueWebLampApi.LampApi | apiLampByIdGet | GET /api/Lamp/{id} | |
HueWebLampApi.LampApi | apiLampGet | GET /api/Lamp | |
HueWebLampApi.LampApi | apiLampOffByIdPost | POST /api/Lamp/off/{id} | |
HueWebLampApi.LampApi | apiLampOffPost | POST /api/Lamp/off | |
HueWebLampApi.LampApi | apiLampOnByIdPost | POST /api/Lamp/on/{id} | |
HueWebLampApi.LampApi | apiLampOnPost | POST /api/Lamp/on | |
HueWebLampApi.LampApi | apiLampStateByIdGet | GET /api/Lamp/state/{id} | |
HueWebLampApi.SpecialApi | apiLampSpecialAlertByIdGet | GET /api/lamp/Special/alert/{id} | |
HueWebLampApi.SpecialApi | apiLampSpecialAlertByIdPost | POST /api/lamp/Special/alert/{id} | |
HueWebLampApi.SpecialApi | apiLampSpecialAlertPost | POST /api/lamp/Special/alert | |
HueWebLampApi.SpecialApi | apiLampSpecialEffectByIdGet | GET /api/lamp/Special/effect/{id} | |
HueWebLampApi.SpecialApi | apiLampSpecialEffectByIdPost | POST /api/lamp/Special/effect/{id} | |
HueWebLampApi.SpecialApi | apiLampSpecialEffectPost | POST /api/lamp/Special/effect |
Documentation for Models
- HueWebLampApi.Brightness
- HueWebLampApi.Brightness1
- HueWebLampApi.Color
- HueWebLampApi.Color1
- HueWebLampApi.ColorAttribute
- HueWebLampApi.Hue
- HueWebLampApi.Hue1
- HueWebLampApi.InlineResponse200
- HueWebLampApi.InlineResponse2001
- HueWebLampApi.Lamp
- HueWebLampApi.Saturation
- HueWebLampApi.Saturation1
Documentation for Authorization
All endpoints do not require authorization.
7 years ago