searchChannels method
Implementation
@override
Future<HttpResult<OpenApiSearchChannelsResponse>> searchChannels({
required String query,
int? first,
String? after,
bool? isLive,
}) {
return client.makeGet(
OpenApiChannelConstants.searchChannelsEndpoint,
convertBodyFunc: (response) =>
OpenApiSearchChannelsResponse.fromHttpResponse(response),
queryParameters: {
OpenApiChannelConstants.queryParamQuery: query,
OpenApiChannelConstants.queryParamFirst: first?.toString(),
OpenApiChannelConstants.queryParamAfter: after,
OpenApiChannelConstants.queryParamIsLive: isLive?.toString(),
},
bearerToken: token,
clientId: clientId,
);
}