getVariables method

Gets all the Variables of a published Dialogue. Takes parameter request of type GetVariablesRequest.

Implementation

Future<DialoguewiseResponse> getVariables(GetVariablesRequest request) async {
  if (request.slug.isEmpty) {
    throw ArgumentError("Please provide the Slug.");
  }

  http.Request clientRequest = _getHeader(
    accessToken,
    '${Endpoints.getVariables}?slug=${request.slug}',
    isGet: true,
  );

  return _getResponse(clientRequest);
}