Instance Methods
createOAuth2Callback
(async) createOAuth2Callback(apiUrl): Promise.<CloudOAuth2Callback>Generate a OAuth2 Callback
Parameters
Name | Type | Description |
---|---|---|
apiUrl
|
string |
Returns
Promise.<CloudOAuth2Callback>
createWebhook
(async) createWebhook(id, secret, data): Promise.<CloudWebhook>Parameters
Name | Type | Description |
---|---|---|
id
|
string | Webhook ID |
secret
|
string | Webhook Secret |
data
|
object | Webhook Data |
Returns
Promise.<CloudWebhook>
getHomeyId
(async) getHomeyId(): Promise.<string>Get Homey's Cloud ID
Returns
A promise that resolves to the cloud id
Promise.<string>
getLocalAddress
(async) getLocalAddress(): Promise.<string>Get Homey's local address & port
Returns
A promise that resolves to the local address
Promise.<string>