macroGet method

Future<Map<String, dynamic>> macroGet(
  1. String id
)
inherited

macroGet -> /v1/macro/{id}

Requests the details of the specified macro.

PARAMETERS

id (required) : 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 200:

The request was processed successfully.

content-type: application/json

schema:

{
  "type": "object",
  "required": [
    "id",
    "color"
  ]
}

Implementation

Future<Map<String, dynamic>> macroGet(String id) async {
  String url = '/v1/macro/$id';

  return await call('get', url, httpAccept: 'application/json');
}