Instance Methods
createToken
(async) createToken(id, opts): Promise.<FlowToken>The FlowToken class can be used to create a Tag in the Flow Editor.
Parameters
| Name | Type | Description |
|---|---|---|
id
|
string | ID of the token, should be alphanumeric. |
opts
|
object | |
type
|
string | Type of the token, can be either |
title
|
string | Title of the token |
value
|
* | Initial value of the token |
|
|
Returns
Promise.<FlowToken>
getActionCard
getActionCard(id): FlowCardActionParameters
| Name | Type | Description |
|---|---|---|
id
|
string | The ID of the card as defined in the app's |
Returns
getConditionCard
getConditionCard(id): FlowCardConditionParameters
| Name | Type | Description |
|---|---|---|
id
|
string | The ID of the card as defined in the app's |
Returns
getDeviceTriggerCard
getDeviceTriggerCard(id): FlowCardTriggerDeviceParameters
| Name | Type | Description |
|---|---|---|
id
|
string | The ID of the card as defined in the app's |
Returns
getToken
getToken(id): FlowTokenParameters
| Name | Type | Description |
|---|---|---|
id
|
string | The ID of the token, as provided in |
Returns
getTriggerCard
getTriggerCard(id): FlowCardTriggerParameters
| Name | Type | Description |
|---|---|---|
id
|
string | The ID of the card as defined in the app's |