getChannelChatBadges method

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

Implementation

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