macroTrigger method
macroTrigger
-> /v1/macro/{id}/trigger
Triggers the specified macro.
PARAMETERS
id
: The ID of the macro, either UUID, name, or index.
- Example (by_uuid):
3C39C433-5C18-4F51-B357-55BB870227C4
- Example (by_name):
Macro
- Example (by_index):
3
RESPONSE 204:
The request was processed successfully. There is no response body.
content-type: NONE
RESPONSE 400:
The request was not valid.
content-type: ``
Implementation
Future<bool> macroTrigger(String id) async {
String url = '/v1/macro/$id/trigger';
return await call('get', url, httpAccept: 'application/json');
}