Bloxlink.Net 3.0.0

dotnet add package Bloxlink.Net --version 3.0.0
NuGet\Install-Package Bloxlink.Net -Version 3.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="Bloxlink.Net" Version="3.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Bloxlink.Net --version 3.0.0
#r "nuget: Bloxlink.Net, 3.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 Bloxlink.Net as a Cake Addin
#addin nuget:?package=Bloxlink.Net&version=3.0.0

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

Bloxlink.Net

Bloxlink.Net is an unofficial .NET API Wrapper for the Bloxlink API.

Surfing the Search API 🔍

The Search API allows you to determine what Robox accounts are connected to a Discord user.

Note: This is NOT the Roblox to Discord API.

using var client = new BloxlinkClient("api-key");
await client.ValidateKey(); // Make sure to validate your key!

// Get the primary account.
ulong discordUserId = 123456789101112;
var req = await client.GetUserAsync(discordUserId);
Console.WriteLine($"Fetched: {req.User.GlobalAccount}");

// Get the account linked to a guild.
ulong guildId = 372036754078826496;
req = await client.GetUserAsync(discordUserId, guildId);
Console.WriteLine($"Fetched: {req.User.GuildAccount}");

Utilizing the Built-in Cache 📦

Retrieved users are cached by default, you can access them using the GetUser method.

Note: The cache is only cleared when the BloxlinkClient is disposed.

var res = await client.GetUserAsync(123456789101112, options: new() { PopulateCache = true });
Console.WriteLine($"Fetched: {res.User.GlobalAccount}");

// You may access your remaining quota in the BloxlinkResponse.
Console.WriteLine($"Quota Remaining: {res.QuotaRemaining}");

var cachedUserId = client.GetUser(123456789101112)!;
Console.WriteLine($"Cached user: {cachedUserId}");

Exception Handling 🚧

Several custom-exceptions such as UserNotFound and QuotaExceeded are provided for ease-of-use!

try
{
    var res = await client.GetUserAsync(69552131231221232);
}
catch (UserNotFoundException)
{
	Console.WriteLine("User was not found.");
}
catch (QuotaExceededException)
{
    Console.WriteLine("We have exceeded our quota!");
}

Versioning Guarantees

This library generally abides by Semantic Versioning. Packages are published in MAJOR.MINOR.PATCH version format.

An increment of the MAJOR component indicates that a new version of the Bloxlink API is supported.

All other increments of component follow what was described in the Semantic Versioning Summary.

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.
  • net6.0

    • No dependencies.

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
3.0.0 627 12/14/2022
1.0.2 765 1/13/2022
1.0.1 547 1/8/2022
1.0.0 569 1/8/2022