getCheermotes method

  1. @override
Future<HttpResult<OpenApiGetCheermotesResponse>> getCheermotes({
  1. required String broadcasterId,
})
override

Implementation

@override
Future<HttpResult<OpenApiGetCheermotesResponse>> getCheermotes({
  required String broadcasterId,
}) {
  return client.makeGet(
    OpenApiChannelConstants.getCheermotesEndpoint,
    convertBodyFunc: (response) =>
        OpenApiGetCheermotesResponse.fromHttpResponse(response),
    queryParameters: {
      OpenApiChannelConstants.queryParamBroadcasterId: broadcasterId,
    },
    bearerToken: token,
    clientId: clientId,
  );
}