95        const DefaultUrl = 
"rests://api.meethue.com/route/api";
 
   98        const DefaultAuthUrl = 
"https://api.meethue.com/v2/oauth2/authorize";
 
  101        const DefaultGrantType = 
"authorization_code";
 
  104        const DefaultTokenUrl = 
"https://api.meethue.com/v2/oauth2/token";
 
  107        const DefaultOptions = {
 
  109            "oauth2_auth_url": DefaultAuthUrl,
 
  110            "oauth2_grant_type": DefaultGrantType,
 
  111            "oauth2_token_url": DefaultTokenUrl,
 
  115        const DefaultHuePingMethod= 
"GET";
 
  118        const DefaultHuePingHeaders = {
 
  119            "Accept": MimeTypeJson,
 
  158            "cls": Class::forName(
"HueRestConnection"),
 
  159            "options": RestConnection::ConnectionScheme.options + {
 
  160                "oauth2_auth_url": RestConnection::ConnectionScheme.options.oauth2_auth_url
 
  161                + <ConnectionOptionInfo>{
 
  164                "oauth2_grant_type": RestConnection::ConnectionScheme.options.oauth2_grant_type
 
  165                + <ConnectionOptionInfo>{
 
  168                "oauth2_token_url": RestConnection::ConnectionScheme.options.oauth2_token_url
 
  169                + <ConnectionOptionInfo>{
 
  173            "required_options": 
"token|oauth2_auth_url,oauth2_grant_type,oauth2_token_url," 
  174                "oauth2_client_id,oauth2_client_secret",
 
const DefaultTokenUrl
Default token request URL.
Definition: HueRestClient.qm.dox.h:104
 
const DefaultAuthUrl
Default authorization request URL.
Definition: HueRestClient.qm.dox.h:98
 
const DefaultUrl
Default Hue REST API URL.
Definition: HueRestClient.qm.dox.h:95
 
const DefaultGrantType
Default OAuth2 grant type.
Definition: HueRestClient.qm.dox.h:101
 
static hash< auto > getOptions(hash< auto > opts)
returns options for HueRestClient::HueRestClient::constructor()
 
constructor(hash< auto > opts, *softbool do_not_connect)
creates the object with the given options
 
Class for Hue REST connections; returns HueRestClient objects.
Definition: HueRestClient.qm.dox.h:153
 
DataProvider::AbstractDataProvider getDataProvider()
returns a data provider object for this connection
 
string getType()
returns "hue"
 
bool hasDataProvider()
returns True as this connection returns a data provider with the getDataProvider() method
 
setChildCapabilities()
Sets child data provider capabilities.
 
hash< ConnectionSchemeInfo > getConnectionSchemeInfoImpl()
Returns the ConnectionSchemeInfo hash for this object.
 
constructor(string name, string description, string url=HueRestClient::DefaultUrl, hash< auto > attributes={}, hash< auto > options={})
creates the HueRestConnection object
 
const ConnectionScheme
Connection entry info.
Definition: HueRestClient.qm.dox.h:157
 
HueRestClient getImpl(bool connect=True, *hash< auto > rtopts)
returns a HueRestClient object
 
the HueRestClient namespace contains all the objects in the HueRestClient module
Definition: HueRestClient.qm.dox.h:81