Qore HueRestClient Module Reference 1.0
All Classes Namespaces Functions Variables Modules Pages

HueRestClient Introduction

The HueRestClient module provides an API for calling Philips Hue REST API services.

To use this module, use "%requires HueRestClient" in your code.

All the public symbols in the module are defined in the HueRestClient namespace.

The main classes are:

  • HueRestClient: this class provides the REST client API for communuication with the Hue REST API; it also automates authentication and authorization to the target
  • HueRestConnection: provides a REST connection object to Philips Hue cloud services (based on the ConnectionProvider module)
Example:
#!/usr/bin/env qore
%new-style
%strict-args
%require-types
%enable-all-warnings
%requires HueRestClient
%requires ConnectionProvider
HueRestClient rest = get_connection("my-hue-connection");
hash<auto> ans = rest.get("/calendar/users/me/calendarList");
printf("%N\n", ans.body);

Release Notes

HueRestClient v1.0

  • the initial version of the HueRestClient module