searchUser method

  1. @override
Future<HttpResult<OpenApiSearchUsersResponse>> searchUser({
  1. int? id,
  2. String? login,
})
override

Implementation

@override
Future<HttpResult<OpenApiSearchUsersResponse>> searchUser({
  int? id,
  String? login,
}) {
  return client.makeGet(
    OpenApiChannelConstants.searchUsersEndpoint,
    convertBodyFunc: (response) =>
        OpenApiSearchUsersResponse.fromHttpResponse(response),
    queryParameters: {
      OpenApiChannelConstants.queryParamId: id?.toString(),
      OpenApiChannelConstants.queryParamLogin: login,
    },
    bearerToken: token,
    clientId: clientId,
  );
}