MapleStory.NET 6.5.0

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

// Install MapleStory.NET as a Cake Tool
#tool nuget:?package=MapleStory.NET&version=6.5.0

MapleStory.NET

English | 한국어

NuGet

MapleStory.NET is a wrapper to simplify the use of Nexon's MapleStory Open API, which offers functionality for retrieving data, such as character details, cube usage results, and various rankings.

Installation

# Add dependency
dotnet add package Microsoft.Extensions.Logging
dotnet add package MapleStory.NET

How to use

API Key

API Key will be generated once you register your application on Nexon Open API Center.

Example code

using System;
using System.Linq;
using System.Net.Http;
using MapleStory.NET;

const string ApiKey = "Your_api_key_here";
using var httpClient = new HttpClient();

var client = new MapleStoryClient(httpClient, ApiKey);
var dateYesterday = DateOnly.FromDateTime(DateTime.Now).AddDays(-1);

var overallRankingResult = await client.RankingApi.GetOverallRankingAsync(dateYesterday); //fetch overall ranking

if (overallRankingResult.Data is null)
{
    Console.WriteLine(overallRankingResult.Error);
    return;
}

var top10 = overallRankingResult.Data.Ranking?.Take(10); //get top 10 characters
var firstPlace = top10?.FirstOrDefault(); //get first place

if (firstPlace?.CharacterName is null)
{
    Console.WriteLine("Unable to get first place.");
    return;
}

var characterResult = await client.CharacterApi.GetAsync(firstPlace.CharacterName); //fetch character identifier(ocid)

if (characterResult.Data is null)
{
    Console.WriteLine(characterResult.Error);
    return;
}

var ocid = characterResult.Data.Ocid;

if (ocid is null)
{
    Console.WriteLine("Unable to get ocid.");
    return;
}

var characterBasicResult = await client.CharacterApi.GetBasicAsync(ocid); //fetch basic data

if (characterBasicResult.Data is null)
{
    Console.WriteLine(characterBasicResult.Error);
    return;
}

var characterBasic = characterBasicResult.Data;
Console.WriteLine(characterBasic.ToJsonString());
Product 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. 
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
6.5.0 90 4/14/2024
6.4.0 95 3/17/2024
6.3.3 101 1/27/2024
5.3.3 98 1/12/2024
5.2.3 73 1/12/2024
4.2.3 103 1/7/2024
4.2.2 96 1/6/2024
4.2.1 99 1/6/2024
3.2.1 90 1/4/2024
3.2.0 109 1/3/2024
2.2.0 109 1/3/2024
1.2.0 98 1/2/2024
1.1.0 89 1/2/2024
1.0.1 98 1/2/2024
1.0.0 101 1/2/2024