360Saglik.Assistant.ClientLibrary
1.3.1
dotnet add package 360Saglik.Assistant.ClientLibrary --version 1.3.1
NuGet\Install-Package 360Saglik.Assistant.ClientLibrary -Version 1.3.1
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="360Saglik.Assistant.ClientLibrary" Version="1.3.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="360Saglik.Assistant.ClientLibrary" Version="1.3.1" />
<PackageReference Include="360Saglik.Assistant.ClientLibrary" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add 360Saglik.Assistant.ClientLibrary --version 1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: 360Saglik.Assistant.ClientLibrary, 1.3.1"
#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.
#:package 360Saglik.Assistant.ClientLibrary@1.3.1
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=360Saglik.Assistant.ClientLibrary&version=1.3.1
#tool nuget:?package=360Saglik.Assistant.ClientLibrary&version=1.3.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
360 Assistant Dot Net Client Library
This library provides a simple way to authenticate and interact with an assistant API using HttpClient
. The AssistantClientProvider
class helps in setting up authentication and sending requests to the server.
Features
- Authentication: Authenticate users with the provided patient information.
- Server Communication: Send requests to different server environments (Development, Production, etc.).
📋 Requirements
- .NET 6.0+
- API Key
🛠️ Setup
Add the package to your project via NuGet:
dotnet add package 360Saglik.Assistant.ClientLibrary
Nuget Package Manager
https://www.nuget.org/packages/360Saglik.Assistant.ClientLibrary
💻 Usage
using System.Text.Json;
using Assistant;
using Assistant.Builders;
using Assistant.Enums;
var client = new AssistantClientProvider(clientId: "client_id", clientSecret: "client_secret", ServerType.Development);
var policyInstance = PolicyBuilder.Create()
.WithId(Guid.NewGuid().ToString())
.WithPolicyNumber("12345678901")
.WithStartDate(DateTime.Now)
.WithEndDate(DateTime.Now.AddYears(1))
.WithGroup("Custom Field")
.WithDescription("Test Policy")
.Build();
var patient = PatientBuilder.Create()
.WithId(Guid.NewGuid().ToString())
.WithGsmCountryCode("+90")
.WithGsm("5551231234")
.WithFirstName("Richard")
.WithLastName("Stallman")
.WithCountryCode("TUR")
.WithNationalId("12345678901")
.WithPassportNumber("12345678901")
.WithPolicy(policyInstance)
.WithBirthDate(new DateTime(1988, 6, 25))
.WithGender(GenderType.Male)
.Build();
var auth = await client.AuthenticatePatientAsync(patient);
Console.WriteLine(JsonSerializer.Serialize(auth));
Response
{
"Data": {
"AccessToken": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJwdWJsaWNLZXkiOiIxZjcyNWRiNi01MjRjLTQwM2Qt.....",
"AccessTokenExpiredTime": "2025-02-19T12:26:56.019Z",
"RedirectUrl": "https://uri.360saglik.dev/OwXTRSuCJmPF1zt"
},
"Actions": [],
"Message": "success",
"IsSuccess": true,
"StatusCode": 200,
"Error": null
}
📝 License
This project is licensed under the MIT License. See the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release with authentication and patient data management support.