BetterApi 1.0.0.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package BetterApi --version 1.0.0.5
NuGet\Install-Package BetterApi -Version 1.0.0.5
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="BetterApi" Version="1.0.0.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add BetterApi --version 1.0.0.5
#r "nuget: BetterApi, 1.0.0.5"
#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 BetterApi as a Cake Addin
#addin nuget:?package=BetterApi&version=1.0.0.5

// Install BetterApi as a Cake Tool
#tool nuget:?package=BetterApi&version=1.0.0.5

Better Api

Logo

Handy library for using API. It also have some cool feature

Usage

using BetterApi;
using BetterApi.Types;

GetRequest getRequest = new GetRequest();//main class
getRequest.Url("inventedurl.com/json?");//IMPORTANT: REMEMBER TO USE ? AT THE END OF THE URL
getRequest.AddHeader("x-key", "API_KEY");//to AddHeader to add the header
getRequest.AddParameter("city = london");//to AddParameterto add the parameter

ResultType result = getRequest.Execute();//execute the query
Console.WriteLine(ResultType.RawContent());//print the raw result
result.DefineModel("json");//defines the model with which to search for data. JSON or XML
Console.WriteLine("Result"+result.GetData("weather.day1.temp"));//print the value.
/*
* To access the nodes you need to use the ., for example: node1.node2
*/

What I used

I used RestSharp for an efficient api call and Json.NET to deserialize the json

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

MIT

Product 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. 
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
1.0.0.9 477 9/19/2022
1.0.0.8 441 2/12/2022
1.0.0.5 281 1/3/2022
1.0.0.4 279 1/3/2022
1.0.0.3 409 1/3/2022
1.0.0.2 385 1/2/2022
1.0.0.1 398 1/2/2022