IVAXOR.PatreonNET
0.0.4
See the version list below for details.
dotnet add package IVAXOR.PatreonNET --version 0.0.4
NuGet\Install-Package IVAXOR.PatreonNET -Version 0.0.4
<PackageReference Include="IVAXOR.PatreonNET" Version="0.0.4" />
paket add IVAXOR.PatreonNET --version 0.0.4
#r "nuget: IVAXOR.PatreonNET, 0.0.4"
// Install IVAXOR.PatreonNET as a Cake Addin #addin nuget:?package=IVAXOR.PatreonNET&version=0.0.4 // Install IVAXOR.PatreonNET as a Cake Tool #tool nuget:?package=IVAXOR.PatreonNET&version=0.0.4
Patreon.NET
.NET library for accessing Patreon API
Setup
You'll need to register an OAuth client account to receive a client_id
, client_secret
and other info for use with this module.
Visit the OAuth Documentation Page while logged in as a Patreon creator on patreon.com to register your client.
Installation
Install with dotnet CLI.
dotnet add package IVAXOR.PatreonNET
Usage
Get OAuth tokens
Library doesn't support full OAuth flow because of code
flow, so you will need to get provide OAuth tokens to the library.
If you aren't familiar with OAuth concept you should check it first.
Manage OAuth tokens
Library have multiple ways to handle and manage OAuth tokens, but for simplicity of tutorial PatreonSimpleTokenManager
will be chosen.
var tokenManager = new PatreonSimpleTokenManager("access_token");
API v1 calls
var httpClient = new HttpClient();
var patreonAPIv1 = new PatreonAPIv1(httpClient, tokenManager);
var currentUser = await PatreonAPIv1.CurrentUser().ExecuteAsync();
var currentUserCampaings = await PatreonAPIv1.CurrentUserCampaigns().ExecuteAsync();
API v2 calls (in development)
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 | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | 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.1
- System.Text.Json (>= 7.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.