Reddit.NET.Client 1.0.0

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

// Install Reddit.NET.Client as a Cake Tool
#tool nuget:?package=Reddit.NET.Client&version=1.0.0

Reddit .NET client

status coverage

About

Provides a .NET client for interacting with reddit.

The client was designed with the following goals in mind:

  • Simple, modern, asynchronous API
  • Support for various authentication modes
  • Modular structure with simple re-usable components

Usage

var builder = RedditClientBuilder.New;

// Configure builder
...

var client = await builder.BuildAsync();

// Get the details of a subreddit
var askReddit = client.Subreddit("askreddit");

var askRedditDetails = await askReddit.GetDetailsAsync();

// Get the top 50 hot submissions
var topFiftyHotSubmissions = askReddit.GetSubmissionsAsync(builder => 
    builder                    
        .WithSort(SubredditSubmissionSort.Hot)                  
        .WithMaximumItems(50));

await foreach (var submission in topFiftyHotSubmissions)
{
    // Upvote the submission
    await submission
        .Interact(client)
        .UpvoteAsync();
}

Further examples of usage can be found in the demos folder.

Development

Following the instructions below to get started with the project in a local development environment.

Prerequisites

Building

After cloning the source code to a destination of your choice, run the following command to build the solution:

dotnet build

Tests

The test suite can be run using the following command:

dotnet test

Documentation

See the docs folder for documentation on how to use the client and an overview of its internals.

Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  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. 
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
2.3.0 485 11/4/2022
2.2.0 361 10/30/2022
2.1.0 343 10/29/2022
2.0.0 370 10/28/2022
1.3.0 357 10/28/2022
1.2.0 416 7/19/2021
1.1.1 437 7/11/2021
1.1.0 313 7/10/2021
1.0.0 422 7/3/2021