CSFetch.ClientDo
1.3.0
dotnet add package CSFetch.ClientDo --version 1.3.0
NuGet\Install-Package CSFetch.ClientDo -Version 1.3.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="CSFetch.ClientDo" Version="1.3.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CSFetch.ClientDo" Version="1.3.0" />
<PackageReference Include="CSFetch.ClientDo" />
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 CSFetch.ClientDo --version 1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CSFetch.ClientDo, 1.3.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.
#:package CSFetch.ClientDo@1.3.0
#: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=CSFetch.ClientDo&version=1.3.0
#tool nuget:?package=CSFetch.ClientDo&version=1.3.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
CSFetch HTTP Client
Exposes functionality for: GET, POST, PUT, DELETE
Basic GET example:
ClientDo client = new ClientDo("https://jsonplaceholder.typicode.com");
Task<string> data = client.Get("/todos");
Todo[] todos = JsonConvert.DeserializeObject<Todo[]>(data.Result);
foreach (var todo in todos)
{
Console.WriteLine("Todo: {0} - Status: {1}", todo.title, todo.completed);
}
JSON Utility Methods
Todo todo = client.ToObject<Todo>(jsonString);
string json = client.ToJson(todo);
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET Framework | net47 is compatible. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
.NETFramework 4.7
- Microsoft.Bcl (>= 1.1.10)
- Microsoft.Bcl.Build (>= 1.0.21)
- Microsoft.Net.Http (>= 2.2.29)
- Newtonsoft.Json (>= 12.0.2)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Exposing JSON helper methofs.