This method retrieves a summary of connectors. For payload explanations for both request and response, click here
using OneKhusa.SDK; 
using OneKhusa.SDK.Models.StaticMaintenance.Connectors; 

//code omitted for brevity 

OneKhusaResponse<List<GetConnectorsSummaryResponse>> response = await client 
    .StaticMaintenance 
    .Connectors 
    .GetConnectorsSummaryAsync(); 

if (response is { IsSuccess: true, Data: not null }) 
{ 
    foreach (var connector in response.Data) 
    { 
        Console.WriteLine($""" 
            ConnectorId: {connector.ConnectorId}; 
            ConnectorName: {connector.ConnectorName}; 
            ConnectorCode: {connector.ConnectorCode}; 
            ChannelCode: {connector.ChannelCode};
            IsActive: {connector.IsActive} 
        """); 
    } 
    Console.ReadLine(); 
    return; 
} 
//it means an error has occurred: RFC7807 compliant error object
Console.WriteLine($"""
        Type: {response.Error?.Type};
        Title: {response.Error?.Title};
        Detail: {response.Error?.Detail};
        ErrorCode: {response.Error?.ErrorCode};
        Status: {response.Error?.Status};
        Instance: {response.Error?.Instance};
        Errors: {string.Join(";", response.Error?.Errors ?? [])}
""");
Console.ReadLine();