Modrinth.Net 3.0.4

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

// Install Modrinth.Net as a Cake Tool
#tool nuget:?package=Modrinth.Net&version=3.0.4                

Modrinth.Net

GitHub Nuget Nuget (with prereleases) Modrinth API

Usage

using Modrinth;

// You must provide a user-agent, and optionally an authentication token if you wish to access authenticated API endpoints
var client = new ModrinthClient(userAgent: "My_Awesome_Project" , token: "Your_Authentication_Token");

var project = await client.Project.GetAsync("sodium");

Console.WriteLine(project.Description);

Unsuccesful API calls

  • If the API call was unsuccessful, the client will throw an ModrinthApiException exception
  • This will be thrown if the API call return non-200 status code, or if the response body is not valid JSON
  • This approach will be revisited in future versions

Info

  • This package was previously called 'Modrinth.RestClient', while completely rewriting it, I've decided to rename it to 'Modrinth.Net', continuing the versioning from the previous package
    • The old package can be found here
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 (1)

Showing the top 1 popular GitHub repositories that depend on Modrinth.Net:

Repository Stars
DaiYu-233/YMCL.Avalonia
Yu Minecraft Launcher · YMCL !
Version Downloads Last updated
3.4.5 1,077 4/22/2024
3.4.4 121 4/21/2024
3.4.3 265 2/22/2024
3.4.2 167 2/22/2024
3.4.1 142 1/29/2024
3.4.0 412 11/28/2023
3.4.0-alpha2 131 9/29/2023
3.4.0-alpha 120 9/29/2023
3.3.0 324 8/7/2023
3.2.2 286 6/21/2023
3.2.1 146 6/21/2023
3.2.0 260 5/20/2023
3.2.0-rc2 111 5/13/2023
3.2.0-rc1 127 5/12/2023
3.2.0-beta1 151 4/25/2023
3.1.1 333 4/14/2023
3.1.0 254 4/2/2023 3.1.0 is deprecated because it has critical bugs.
3.1.0-rc4 138 3/31/2023
3.1.0-rc3 183 3/25/2023
3.1.0-rc2 147 3/24/2023
3.1.0-rc1 133 3/23/2023
3.1.0-alpha3 142 3/21/2023
3.1.0-alpha2 151 3/20/2023
3.1.0-alpha 155 3/20/2023
3.0.10 241 3/20/2023
3.0.9 212 3/16/2023
3.0.8 226 3/15/2023
3.0.7 215 3/15/2023
3.0.6 219 3/11/2023
3.0.5 314 2/20/2023
3.0.4 253 2/20/2023
3.0.3 276 2/18/2023
3.0.2 282 2/2/2023
3.0.1 315 1/29/2023