
ワンコールでスコア送信
SDK メソッド 1 つでプレイヤースコアを送信。ランキング、重複排除、永続化は horizOn が処理します。
コンテキスト付きランキング
グローバルトップや特定プレイヤー周辺のエントリを取得し、順位をわかりやすく表示できます。
インフラ管理ゼロ
ストレージ、インデックス、クエリパフォーマンスはすべて horizOn が管理。データベースに触れる必要はありません。
クイック統合
楽曲クリア!
あなたのスコア
12,450
// Unity C# - Leaderboard
using HorizOn;
var horizon = new HorizonClient("YOUR_API_KEY");
// Submit score
await horizon.Leaderboard.SubmitScore(userId, 15000);
// Get top 10
var top = await horizon.Leaderboard.GetTop(userId, 10);
foreach (var entry in top.Entries) {
Debug.Log($"#{entry.Rank} {entry.DisplayName}: {entry.Score}");
}
// Get rank around player
var around = await horizon.Leaderboard.GetAround(userId, 5);# REST API - Leaderboard
# Submit a score
curl -X POST https://eu.horizon.pm/api/v1/app/leaderboard/submit \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId":"USER_ID","score":15000}'
# Get top 10 entries
curl -X GET "https://eu.horizon.pm/api/v1/app/leaderboard/top?userId=USER_ID&limit=10" \
-H "X-API-Key: YOUR_API_KEY"
# Get entries around a player
curl -X GET "https://eu.horizon.pm/api/v1/app/leaderboard/around?userId=USER_ID&range=5" \
-H "X-API-Key: YOUR_API_KEY"



