APIClientAccess 1.0.7
dotnet add package APIClientAccess --version 1.0.7
NuGet\Install-Package APIClientAccess -Version 1.0.7
<PackageReference Include="APIClientAccess" Version="1.0.7" />
<PackageVersion Include="APIClientAccess" Version="1.0.7" />
<PackageReference Include="APIClientAccess" />
paket add APIClientAccess --version 1.0.7
#r "nuget: APIClientAccess, 1.0.7"
#:package APIClientAccess@1.0.7
#addin nuget:?package=APIClientAccess&version=1.0.7
#tool nuget:?package=APIClientAccess&version=1.0.7
APIClientAccess
Api client access easy to us web api connector
httpclient to web api or restful service connector and object return types
support windows, web application and Blazor Application
used to donate @ paytm 9491312752@ptyes
any code changes or any requirement contact me on above number
sample code listed below
Code
HttpClient httpClient = new HttpClient(); httpClient.BaseAddress = new Uri("https://localhost:7190/"); httpClient.DefaultRequestHeaders.Add("Accept", "application/json");
//httpClient. APIClient client = new APIClient("https://localhost:7190/", httpClient);
CompanyModel model = new();//await
model.CompanyName = "test123"; model.Address = "address"; model.EmailSmtp = "smtp"; model.EmailUname = "uname"; model.EmailPasswd = "passwd"; model.ConfirmEmailPassword = "passwd"; model.Created = DateTime.UtcNow;
try { //var result = await client.POSTAsync<CompanyModelDto>("/api/company", model); //var ListCompanies = await client.GETAsync<CompanyModelDto>("/api/company", cancellationToken: CancellationToken.None); //var ListCompanies = await client.GetByIdAsync<CompanyModelDto>("/api/company", 1); //int deleted = await client.DELETEAsync("/api/company", 1); // var result = await client.GetByObjectAsync<CompanyModelDto>("/api/company/info", model,"company", CancellationToken.None); } catch (Exception ex) { Console.WriteLine(ex.Message); }
++ new methods added
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. 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. |
-
net8.0
- Newtonsoft.Json (>= 13.0.3)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.