HomeyAPI~ManagerFlowToken

Methods

async getFlowTokens(optsopt) → {Promise.<Array.<HomeyAPI.ManagerFlowToken.FlowToken>>}

Required OAuth scopes:
- homey.flow.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Attributes Description
filter HomeyAPI.ManagerFlowToken.FlowToken <optional>
A response filter (Using a filter will bypass all caches, use sparingely)
Returns:
Promise.<Array.<HomeyAPI.ManagerFlowToken.FlowToken>> - Successful response

async getFlowToken(optsopt) → {Promise.<HomeyAPI.ManagerFlowToken.FlowToken>}

Required OAuth scopes:
- homey.flow.readonly

Parameters:
Name Type Attributes Description
opts object <optional>
Named parameters
Properties
Name Type Description
uri string
id string
Returns:
Promise.<HomeyAPI.ManagerFlowToken.FlowToken> - Successful response

destroy()

Unsubscribes to realtime events, clear all caches, and remove all event listeners for this manager and it's managed objects

Events

flowtoken.create

Fired when a managed FlowToken is created
Parameters:
Name Type Description
flowtoken HomeyAPI.ManagerFlowToken.FlowToken The affected FlowToken

flowtoken.update

Fired when a managed FlowToken is changed
Parameters:
Name Type Description
flowtoken HomeyAPI.ManagerFlowToken.FlowToken The affected FlowToken

flowtoken.delete

Fired when a managed FlowToken has been deleted
Parameters:
Name Type Description
flowtoken HomeyAPI.ManagerFlowToken.FlowToken The affected FlowToken

Classes

Error

FlowToken