ManagerCloud

Extends

Classes

Methods

connect

(async) connect(): Promise.<void>

Connect to the realtime namespace.

Returns

Promise.<void>

disconnect

(async) disconnect(): Promise.<void>

Disconnect from the realtime namespace.

Returns

Promise.<void>

emitOAuth2Callback

(async) emitOAuth2Callback(opts): Promise.<any>

Scopes

-

HTTP

post /api/manager/cloud/oauth2-callback

Parameters

Name Type Description
opts
object
app
string <optional>
token
string <optional>
code
string <optional>
}

Returns

Promise.<any>

emitWebhookCallback

(async) emitWebhookCallback(opts): Promise.<any>

Scopes

-

HTTP

post /api/manager/cloud/webhook/:id/callback

Parameters

Name Type Description
opts
object
id
string
args
object <optional>
}

Returns

Promise.<any>

getState

(async) getState(): Promise.<any>

Scopes

homey.system.readonly

HTTP

get /api/manager/cloud/state

Returns

Promise.<any>

isConnected

isConnected(): Boolean

If this manager's namespace is connected to Socket.io.

Returns

Boolean

Events

webhook.create

.on('webhook.create')

Parameters

Name Type Description
webhook
HomeyAPIV3Cloud.ManagerCloud.Webhook

webhook.delete

.on('webhook.delete')

Parameters

Name Type Description
webhook
HomeyAPIV3Cloud.ManagerCloud.Webhook

webhook.update

.on('webhook.update')

Parameters

Name Type Description
webhook
HomeyAPIV3Cloud.ManagerCloud.Webhook