Roblox_Sharp 2.0.1
dotnet add package Roblox_Sharp --version 2.0.1
NuGet\Install-Package Roblox_Sharp -Version 2.0.1
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="Roblox_Sharp" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Roblox_Sharp" Version="2.0.1" />
<PackageReference Include="Roblox_Sharp" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Roblox_Sharp --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Roblox_Sharp, 2.0.1"
#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.
#addin nuget:?package=Roblox_Sharp&version=2.0.1
#tool nuget:?package=Roblox_Sharp&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Endpoints Sourced From roblox-web-apis and create.roblox.com
Roblox_Sharp
Roblox_Sharp is a C#/.NET framework that serves as a unofficial asynchronouse wrapper for Roblox's Web API system. The framework is built on .NET 8.0, and depends on the standard library (no external dependencies)
Installation
Roblox_Sharp can be installed directly from NuGet through your IDE's package manager or with the following command in the command-line.
Install-Package Roblox_Sharp -Version <version>
Some Current Features
- Users: Get information of any user on the platform, including their badges, inventory (if visible), friends, who they follow, and more.
- Assets: Get Asset Information
- Groups: Get Group Information
- Badges: Get Badge Information
- Avatar: Get information about a users avatar
- Custom Requests: Send your own your own requests to the Roblox API using the framework's static WebAPI.Get_RequestAsync function.
- Thumbnail: Get a users thumbnail for their head, bust or full avatar.
Code Examples
Getting Detailed User Information
using Roblox_Sharp.Models;
using Roblox_Sharp.Endpoints;
ulong id = 156; // the id to be requested
User user = await Users_v1.Get_UserAsync(id); //request the users info
DateTime created = user.Created; //get the users creation date
bool hasVerifiedBadge = user.HasVerifiedBadge; //get if the user has a verified badge
Console.WriteLine(user.ToString()); //a string representation of the user in the format {DisplayName}@{Username} (ID {UserId})"
Getting A List of A Users Friends
using Roblox_Sharp.Models;
using Roblox_Sharp.Endpoints;
using System.Collections.Generic;
using System.Linq;
using System;
List<User> friends = [];
friends.AddRange(await Friends_v1.Get_FriendsAsync(261)); //a list of 261's friends
IEnumerable<User> sorted = friends.OrderByDescending(user => user.UserId); // sorting the friends list from newest to oldest
Console.WriteLine($"oldest friend: {sorted.Last().ToString()}"); // display the oldest friend
Console.WriteLine($"youngest friend: {sorted.First().ToString()}"); // display the youngest friend
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. 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. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.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.