ParksRecClient 1.0.0
See the version list below for details.
dotnet add package ParksRecClient --version 1.0.0
NuGet\Install-Package ParksRecClient -Version 1.0.0
<PackageReference Include="ParksRecClient" Version="1.0.0" />
paket add ParksRecClient --version 1.0.0
#r "nuget: ParksRecClient, 1.0.0"
// Install ParksRecClient as a Cake Addin #addin nuget:?package=ParksRecClient&version=1.0.0 // Install ParksRecClient as a Cake Tool #tool nuget:?package=ParksRecClient&version=1.0.0
Overview
Welcometo the .NET client for the Parks and Rec API. For information and documentation for the API, check the API Wiki.
Usage
Token
First things first, right? To use this API you'll need a Token. To request a token, go to www.parksandrecapi.com and follow the steps.
Client
To implement the Library into your project, install the NuGet package into your solution/project by running it in the Package Manager Console:
PM> Install-Package ParksRecClient -Version 1.0.0
Or by searching ParksRecClient in the Package Manager searching bar.
To implement the client into your project, include the ParksRec.Client
namespace:
using ParksRec.Client;
To instantiate a new client in your program, include the following:
ParksRecConfig parksRecConfig = new ParksRecConfig {Token = "<TOKEN>"};
ParksRecClient client = new ParksRecClient(parksRecConfig);
Band Names
To retrieve the band names, you can use:
var bands = await client.Bands.Get();
Or, to use the name filter, use:
var bands = await client.Bands.Get("name of band");
Characters
To retrieve the characters of the show, you can use:
var characters = await client.Characters.Get();
Or, to use the name filter, use:
var characters = await client.Characters.Get("leslie");
Episodes
To retrieve the episodes, you can use:
var episodes = await client.Episodes.Get();
Or, to filter by the title of the episode, use:
var episodes = await client.Episodes.Get("knope");
Seasons
To retrieve the seasons, you can use:
var seasons = await client.Seasons.Get();
Or, to filter by the season, use:
var seasons = await client.Seasons.Get("special");
Author
Disclaimer
This library is provided "as is" without expressed or implied warranty of any kind. Please use at your own risk and discretion.
License
This API is provided under the MIT License. See the LICENSE file for details.
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. |
-
.NETStandard 2.0
- HttpClientFactoryLite (>= 0.2.0)
- Newtonsoft.Json (>= 12.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.
New NuGet Package as the .NET Client for the parks and rec api