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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
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 | Versions 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.
-
.NETStandard 2.0
- System.ComponentModel.Annotations (>= 5.0.0)
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 | 64 | 11/10/2024 |
4.0.0 | 520 | 3/31/2024 |
3.0.0 | 1,399 | 1/27/2024 |
2.1.3 | 3,198 | 12/30/2022 |
2.1.2 | 2,276 | 5/31/2022 |
2.1.1 | 1,769 | 1/23/2022 |
2.1.0 | 1,473 | 12/18/2021 |
2.0.1 | 1,488 | 11/21/2021 |
2.0.0 | 1,376 | 11/21/2021 |
1.4.1 | 2,035 | 11/21/2021 |
1.4.0 | 1,758 | 7/4/2021 |
1.3.0 | 1,389 | 3/28/2021 |
1.2.1 | 1,053 | 12/13/2020 |
1.2.0 | 1,605 | 7/22/2020 |
1.1.0 | 1,072 | 6/28/2020 |
1.0.3 | 966 | 5/14/2020 |
1.0.2 | 1,024 | 4/11/2020 |
1.0.1 | 1,263 | 12/24/2019 |
1.0.0 | 926 | 12/15/2019 |
0.5.5-alpha | 803 | 12/5/2019 |
0.5.4-alpha | 913 | 9/2/2019 |
0.5.3-alpha | 842 | 9/2/2019 |
0.5.2-alpha | 860 | 8/19/2019 |
0.5.1-alpha | 895 | 7/27/2019 |
0.5.0-alpha | 844 | 7/23/2019 |
0.4.2-alpha | 989 | 7/3/2019 |
0.4.1-alpha | 844 | 6/30/2019 |
0.4.0-alpha | 887 | 6/30/2019 |
0.3.0-alpha | 2,066 | 6/22/2019 |