BroadWorksConnector 4.1.0

dotnet add package BroadWorksConnector --version 4.1.0                
NuGet\Install-Package BroadWorksConnector -Version 4.1.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BroadWorksConnector" Version="4.1.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BroadWorksConnector --version 4.1.0                
#r "nuget: BroadWorksConnector, 4.1.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install BroadWorksConnector as a Cake Addin
#addin nuget:?package=BroadWorksConnector&version=4.1.0

// Install BroadWorksConnector as a Cake Tool
#tool nuget:?package=BroadWorksConnector&version=4.1.0                

BroadWorks Connector.NET

BroadWorks Connector.NET is a .NET Standard 2.0 library for connecting to the BroadWorks OCI-P API. It is based on the BroadWorks Connector library for PHP.

Installation

Install via NuGet:

Install-Package BroadWorksConnector

Or via the .NET Core CLI:

dotnet add package BroadWorksConnector

Usage Example

// Initialize by passing the OCI-P API's endpoint URL (if using SOAP) along with your BroadWorks username and password.
var ocip = new OcipClient("https://your-bw-soap-endpoint.com/webservice/services/ProvisioningService", "username", "password");

// .. or if connecting via TCP:
// var ocip = new OcipClient("tcp://your-bw-ocs-hostname.com:2208", "username", "password");

// .. or if connecting via TCP+SSL/TLS:
// var ocip = new OcipClient("tls://your-bw-ocs-hostname.com:2209", "username", "password");

// In this example, a single request is made to get all users in a group whose first name is John.

var req1 = new UserGetListInGroupRequest
{
    ServiceProviderId = "test-service-provider",
    GroupId = "test-group",
    SearchCriteriaUserFirstName = new List<SearchCriteriaUserFirstName> {
        new SearchCriteriaUserFirstName
        {
            IsCaseInsensitive = false,
            Mode = SearchMode.EqualTo,
            Value = "John"
        }
    }
};

try
{
    var response = await ocip.CallAsync(req1);

    foreach (var row in response.UserTable.Row)
    {
        Console.WriteLine(row.Col[0]);
    }
}
catch (ErrorResponseException e)
{
    Console.WriteLine($"Server Error: {e.Message}");
}
catch (ValidationException e)
{
    Console.WriteLine($"Validation Error: {e.Message}");
}

// Multiple requests can be executed in a single call to the API too via the CallAllAsync method.
// Here we'll add another request that retrieves all users from another group whose last name starts with an M.

var req2 = new UserGetListInGroupRequest
{
    ServiceProviderId = "test-service-provider",
    GroupId = "test-group",
    SearchCriteriaUserLastName = new List<SearchCriteriaUserLastName> {
        new SearchCriteriaUserLastName
        {
            IsCaseInsensitive = false,
            Mode = SearchMode.StartsWith,
            Value = "M"
        }
    }
};

try
{
    var responses = await ocip.CallAllAsync(new OCIRequest[] { req1, req2 });

    foreach (var response in responses)
    {
        if (response is UserGetListInGroupResponse r)
        {
            foreach (var row in r.UserTable.Row)
            {
                Console.WriteLine(row.Col[0]);
            }
        }
    }

    // The response for a request can be also be retreived
    var res2 = responses.Get(req2);

    foreach (var row in res2.UserTable.Row)
    {
        Console.WriteLine(row.Col[0]);
    }

}
catch (ErrorResponseException e)
{
    Console.WriteLine($"Server Error: {e.Message}");
}
catch (ValidationException e)
{
    Console.WriteLine($"Validation Error: {e.Message}");
}
Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 was computed. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
4.1.0 86 11/10/2024
4.0.0 553 3/31/2024
3.0.0 1,481 1/27/2024
2.1.3 3,201 12/30/2022
2.1.2 2,279 5/31/2022
2.1.1 1,772 1/23/2022
2.1.0 1,476 12/18/2021
2.0.1 1,491 11/21/2021
2.0.0 1,379 11/21/2021
1.4.1 2,038 11/21/2021
1.4.0 1,761 7/4/2021
1.3.0 1,394 3/28/2021
1.2.1 1,056 12/13/2020
1.2.0 1,608 7/22/2020
1.1.0 1,075 6/28/2020
1.0.3 969 5/14/2020
1.0.2 1,027 4/11/2020
1.0.1 1,266 12/24/2019
1.0.0 929 12/15/2019
0.5.5-alpha 806 12/5/2019
0.5.4-alpha 916 9/2/2019
0.5.3-alpha 845 9/2/2019
0.5.2-alpha 881 8/19/2019
0.5.1-alpha 898 7/27/2019
0.5.0-alpha 847 7/23/2019
0.4.2-alpha 992 7/3/2019
0.4.1-alpha 847 6/30/2019
0.4.0-alpha 890 6/30/2019
0.3.0-alpha 2,069 6/22/2019