본문으로 건너뛰기

재화 조회

플레이어가 보유한 게임 내 재화를 조회 합니다.

호출 정보

CurrencyGet(String currencyCode, PlayNANOODelegate callback) {}

호출 상세 정보

파라미터설명타입
currencyCode재화 코드string
callback통신 결과PlayNANOODelegate

소스 코드

using PlayNANOO;

public class PlayNANOOExample : MonoBehaviour
{
Plugin plugin;

void Awake()
{
plugin = Plugin.GetInstance();

string currencyCode = "string";
plugin.CurrencyGet(currencyCode, (status, errorMessage, jsonString, values) => {
if (status.Equals(Configure.PN_API_STATE_SUCCESS))
{
Debug.Log(values["amount"]);
}
else
{
Debug.Log("Fail");
}
});
}
}

통신 결과

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"amount": 100
}

통신 결과 상세 정보

데이터키설명타입
amount보유 재화double