1.0.0 • Published 7 years ago

hue_web_lamp_api v1.0.0

Weekly downloads
1
License
Unlicense
Repository
-
Last release
7 years ago

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/

ClassMethodHTTP requestDescription
HueWebLampApi.ColorApiapiLampColorBrightnessByIdGetGET /api/lamp/Color/brightness/{id}
HueWebLampApi.ColorApiapiLampColorBrightnessByIdPostPOST /api/lamp/Color/brightness/{id}
HueWebLampApi.ColorApiapiLampColorBrightnessPostPOST /api/lamp/Color/brightness
HueWebLampApi.ColorApiapiLampColorByIdGetGET /api/lamp/Color/{id}
HueWebLampApi.ColorApiapiLampColorByIdPostPOST /api/lamp/Color/{id}
HueWebLampApi.ColorApiapiLampColorHueByIdGetGET /api/lamp/Color/hue/{id}
HueWebLampApi.ColorApiapiLampColorHueByIdPostPOST /api/lamp/Color/hue/{id}
HueWebLampApi.ColorApiapiLampColorHuePostPOST /api/lamp/Color/hue
HueWebLampApi.ColorApiapiLampColorPostPOST /api/lamp/Color
HueWebLampApi.ColorApiapiLampColorSaturationByIdGetGET /api/lamp/Color/saturation/{id}
HueWebLampApi.ColorApiapiLampColorSaturationByIdPostPOST /api/lamp/Color/saturation/{id}
HueWebLampApi.ColorApiapiLampColorSaturationPostPOST /api/lamp/Color/saturation
HueWebLampApi.LampApiapiLampByIdGetGET /api/Lamp/{id}
HueWebLampApi.LampApiapiLampGetGET /api/Lamp
HueWebLampApi.LampApiapiLampOffByIdPostPOST /api/Lamp/off/{id}
HueWebLampApi.LampApiapiLampOffPostPOST /api/Lamp/off
HueWebLampApi.LampApiapiLampOnByIdPostPOST /api/Lamp/on/{id}
HueWebLampApi.LampApiapiLampOnPostPOST /api/Lamp/on
HueWebLampApi.LampApiapiLampStateByIdGetGET /api/Lamp/state/{id}
HueWebLampApi.SpecialApiapiLampSpecialAlertByIdGetGET /api/lamp/Special/alert/{id}
HueWebLampApi.SpecialApiapiLampSpecialAlertByIdPostPOST /api/lamp/Special/alert/{id}
HueWebLampApi.SpecialApiapiLampSpecialAlertPostPOST /api/lamp/Special/alert
HueWebLampApi.SpecialApiapiLampSpecialEffectByIdGetGET /api/lamp/Special/effect/{id}
HueWebLampApi.SpecialApiapiLampSpecialEffectByIdPostPOST /api/lamp/Special/effect/{id}
HueWebLampApi.SpecialApiapiLampSpecialEffectPostPOST /api/lamp/Special/effect

Documentation for Models

Documentation for Authorization

All endpoints do not require authorization.

1.0.0

7 years ago