플레이어 정보 조회
플레이어 정보를 조회합니다.
소스 코드
playNANOOHandlers.playerInfo = function(args) {
var result = pluginAccount.info({
version : "v20221001"
});
if(result.statusCode == 200) {
var parse = JSON.parse(result.body);
log.debug(parse.Player.UserUniqueID);
log.debug(parse.Player.OpenID);
log.debug(parse.Player.Nickname);
log.debug(parse.Player.Country);
log.debug(parse.Player.PurchaseCount);
log.debug(parse.Player.PurchaseCurrencyCode);
log.debug(parse.Player.PurchaseTotalPrice);
log.debug(parse.Player.JoinPeriod);
return true;
} else {
return false;
}
}
통신 결과
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
{
"Player": {
"UserUniqueID": "ABCD1234",
"OpenID": "ABCD1234",
"Nickname": "ABCD1234",
"LinkedID": "ABCD1234",
"LinkedType": "GUEST",
"PurchaseCount": 10,
"PurchaseCurrencyCode": "USD",
"PurchaseTotalPrice": 100,
"Country": "US",
"JoinPeriod": 100
}
}
통시 결과 상세 정보
데이터키 | 설명 | 타입 |
---|---|---|
UserUniqueID | 플레이어 ID | string |
OpenID | 플레이어 공개 ID | string |
Nickname | 플레이어 닉네임 | string |
Country | 플레이어 국가 코드 | string |
PurchaseCount | 결제 횟수 | integer |
PurchaseCurrencyCode | 결제 화폐 코드 | string |
PurchaseTotalPrice | 누적 결제 금액 | integer |
JoinPeriod | 가입 기간 | integer |