Stupid.RS3.API
1.0.0
See the version list below for details.
dotnet add package Stupid.RS3.API --version 1.0.0
NuGet\Install-Package Stupid.RS3.API -Version 1.0.0
<PackageReference Include="Stupid.RS3.API" Version="1.0.0" />
paket add Stupid.RS3.API --version 1.0.0
#r "nuget: Stupid.RS3.API, 1.0.0"
// Install Stupid.RS3.API as a Cake Addin
#addin nuget:?package=Stupid.RS3.API&version=1.0.0
// Install Stupid.RS3.API as a Cake Tool
#tool nuget:?package=Stupid.RS3.API&version=1.0.0
Stupid.RS3.API C# Package
The Stupid.RS3.API C# package is a simple and lightweight API wrapper for interacting with the RuneScape 3 (RS3) API. This package is designed to make it easier to query various endpoints of the RuneScape API and retrieve game-related data.
Installation
You can install the package via NuGet Package Manager. Open your project in Visual Studio or any other C# development environment and execute the following command in the NuGet Package Manager Console:
Install-Package Stupid.RS3.API
Quick Start
To use the Stupid.RS3.API package in your C# project, follow these steps:
Import the
Stupid.RS3.API
namespace in your C# file where you want to use the package:using Stupid.RS3.API;
Create an instance of the
Client
class:var rs3Client = new Client();
Use the
GetPlayerStatsByName
method to retrieve a player's statistics by their RuneScape 3 username:string playerName = "YourPlayerName"; var playerStats = await rs3Client.GetPlayerStatsByName(playerName); foreach (var stat in playerStats) { Console.WriteLine($"Skill: {stat.Skill}, Rank: {stat.Rank}, Level: {stat.Level}, Experience: {stat.Experience}"); }
Replace "YourPlayerName"
with the actual RuneScape 3 username you want to retrieve statistics for.
This code snippet demonstrates how to fetch player statistics using the Stupid.RS3.API package in a C# application.
Example Usage
Here's an example of how to use the package to retrieve a player's RuneScape 3 statistics:
using System;
using Stupid.RS3.API;
namespace RS3StatRetrieval
{
class Program
{
static async Task Main(string[] args)
{
// Create an instance of the RS3 API client
var rs3Client = new Client();
// Define the player's RuneScape 3 username
string playerName = "YourPlayerName";
// Retrieve the player's statistics
var playerStats = await rs3Client.GetPlayerStatsByName(playerName);
// Display the player's statistics
foreach (var stat in playerStats)
{
Console.WriteLine($"Skill: {stat.Skill}, Rank: {stat.Rank}, Level: {stat.Level}, Experience: {stat.Experience}");
}
}
}
}
Remember to replace "YourPlayerName"
with the actual username you want to retrieve statistics for.
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
- 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.