
유연한 보상 페이로드
보상 데이터는 자유 형식 JSON이므로 게임이 인식하는 재화, 아이템, 플래그의 어떤 조합이든 지급할 수 있습니다.
세밀한 제한 설정
코드마다 글로벌 교환 한도, 사용자별 한도, 만료일을 각각 독립적으로 설정할 수 있습니다.
즉시 무효화
코드가 유출되거나 남용된 경우 Dashboard에서 즉시 무효화할 수 있으며, 앱 업데이트가 필요 없습니다.
빠른 통합
코드 교환
기프트 코드 입력
아래에 프로모션 코드를 입력하세요
WINTER2024
// Unity C#: Gift Codes (needs a signed in player)
using PM.horizOn.Cloud.Manager;
using UnityEngine;
// Validate without redeeming (true, false, or null when the request failed)
bool? valid = await GiftCodeManager.Instance.Validate("SUMMER2025");
// Redeem: giftData is the JSON payload you set in the dashboard
var result = await GiftCodeManager.Instance.Redeem("SUMMER2025");
if (result != null && result.success)
{
Debug.Log($"Rewards: {result.giftData}");
}# REST API: Gift Codes
# Validate a gift code (does not redeem)
curl -X POST https://horizon.pm/api/v1/app/gift-codes/validate \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{"userId":"USER_ID","code":"SUMMER2025"}'
# Redeem a gift code (needs the player's session token)
curl -X POST https://horizon.pm/api/v1/app/gift-codes/redeem \
-H "X-API-Key: YOUR_API_KEY" \
-H "Authorization: Bearer SESSION_TOKEN" \
-H "Content-Type: application/json" \
-d '{"userId":"USER_ID","code":"SUMMER2025"}'이 예시는 Unity SDK(C#)와 REST API를 사용합니다. Godot과 Unreal도 각자의 SDK에서 같은 호출을 제공합니다: 퀵스타트 보기
