
한 번의 호출로 점수 제출
SDK 메서드 하나로 플레이어 점수를 제출하면 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"



