Reddit 1.0.0
See the version list below for details.
dotnet add package Reddit --version 1.0.0
NuGet\Install-Package Reddit -Version 1.0.0
<PackageReference Include="Reddit" Version="1.0.0" />
paket add Reddit --version 1.0.0
#r "nuget: Reddit, 1.0.0"
// Install Reddit as a Cake Addin #addin nuget:?package=Reddit&version=1.0.0 // Install Reddit as a Cake Tool #tool nuget:?package=Reddit&version=1.0.0
____ __ __ _ __ _ __ ______ ______
/ __ \ ___ ____/ /____/ /(_)/ /_ / | / // ____//_ __/
/ /_/ // _ \ / __ // __ // // __/ / |/ // __/ / /
/ _, _// __// /_/ // /_/ // // /_ _ / /| // /___ / /
/_/ |_| \___/ \__,_/ \__,_//_/ \__/(_)/_/ |_//_____/ /_/
Created by Kris Craig.
Overview
Reddit.NET is a .NET Standard library that provides easy access to the Reddit API with virtually no boilerplate code required. Keep reading below for code examples.
Currently, the library supports 169 of the 205 endpoints listed in the API documentation. All of them (except voting and admin-reporting, for obvious reasons) are covered by integration tests and all 327 of the tests are currently passing. All of the most commonly used endpoints are supported.
Reddit.NET is FOSS (MIT license) and was written in C#. It can be found on Github at: https://github.com/sirkris/Reddit.NET
Contributors
Kris Craig, Andrew Hall, Ben Mitchell, Daryl Harrison, Emiel Dorsman, JP Dillingham, and the knowledgeable people over at r/csharp and r/redditdev.
Beta Testers
Kris Craig, Ben Mitchell, and Emiel Dorsman.
Usage
Reddit.NET can be installed via NuGet. You can find it at: https://www.nuget.org/packages/Reddit
To install via the Visual Studio NuGet Package Manager Console (in VS 2017, you'll find it under Tools->NuGet Package Manager->NuGet Package Manager Console):
PM> Install-Package Reddit
To create a new API instance bound to a specific user's refresh token in an installed app:
using Reddit;
...
var reddit = new RedditAPI("YourRedditAppID", "YourBotUserRefreshToken");
If you're using a "script"-type app instead, you'll also need to pass your app secret:
using Reddit;
...
// You can also pass them as named parameters.
var reddit = new RedditAPI(appId: "YourRedditAppID", appSecret: "YourRedditAppSecret", refreshToken: "YourBotUserRefreshToken");
For more examples, check out the Example and Reddit.NETTests projects.
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
- Microsoft.CSharp (>= 4.5.0)
- Newtonsoft.Json (>= 11.0.2)
- RestSharp (>= 106.4.2)
NuGet packages (3)
Showing the top 3 NuGet packages that depend on Reddit:
Package | Downloads |
---|---|
FenixAlliance.ABS.Integrations.Reddit
Application Component for the Alliance Business Suite. |
|
Thalitech.NamiBot
This is a custome discord bot that was made to just make it easy for end users. This a full console application |
|
NamiBot
This is a custome discord bot that was made to just make it easy for end users |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on Reddit:
Repository | Stars |
---|---|
aelassas/wexflow
.NET Workflow Engine and Automation Platform
|