Gamebase Server API는 RESTful 형식으로, 다음과 같은 API를 제공합니다.
서버 API를 사용하기 위해서는 다음과 같은 정보를 알고 있어야 합니다.
API를 호출하기 위한 서버 주소는 다음과 같습니다. 해당 주소는 Gamebase Console 화면에서도 확인 가능합니다.
https://api-gamebase.cloud.toast.com
앱 ID는 NHN Cloud 프로젝트 ID로 앱 메뉴 화면에서 확인할 수 있습니다.
비밀 키(secret key)는 API에 대한 접근 제어 방안으로, Gamebase Console에서 확인할 수 있습니다. 비밀 키는 Server API를 호출할 때 HTTP 헤더에 필수로 설정해야 합니다.
[참고] 비밀 키가 외부에 노출되어 잘못된 호출이 발생한다면 생성 버튼을 클릭하여 새로운 비밀 키를 만든 후, 새 비밀 키를 사용하면 됩니다.
API를 호출하는 서버에서 내부적으로 API 요청을 관리할 수 있는 방안으로 TransactionId 기능을 제공합니다. 호출하는 서버에서 HTTP 헤더에 트랜잭션 ID를 설정하여 API를 호출하면, Gamebase 서버는 응답 HTTP Header 및 응답 결과의 Response Body Header에 해당 TransactionId를 설정하여 결과를 전달합니다.
API 호출 시 HTTP Header에 다음 항목들을 설정해야 합니다.
Name | Required | Value |
---|---|---|
Content-Type | mandatory | application/json; charset=UTF-8 |
X-Secret-Key | mandatory | SecretKey 설명 참고 |
X-TCGB-Transaction-Id | optional | TransactionId 설명 참고 |
모든 API 요청에 대한 응답으로 HTTP 200 OK를 전달합니다. API 요청 성공 유무는 Response Body의 Header 항목을 참고하여 판단할 수 있습니다.
[Request]
Content-Type: application/json
X-TCGB-Transaction-Id: 88a1ae42-6b1d-48c8-894e-54e97aca07fq
X-Secret-Key: IgsaAP
GET https://api-gamebase.cloud.toast.com
[Response]
HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
X-TCGB-Transaction-Id: 88a1ae42-6b1d-48c8-894e-54e97aca07fq
{
"header" : {
"transactionId": "88a1ae42-6b1d-48c8-894e-54e97aca07fq",
"isSuccessful" : true,
"resultCode": 0,
"resultMessage" : "Success."
}
}
Key | Type | Description |
---|---|---|
transactionId | String | API 요청 시 HTTP Header에 설정한 값. 해당 값을 전달하지 않으면 Gamebase 내부적으로 생성된 값을 반환 |
isSuccessful | boolean | 성공 여부 |
resultCode | int | 응답 코드 성공 시 0, 실패 시 오류 코드 반환 |
resultMessage | String | 응답 메시지 |
로그인 사용자에게 발급된 Access Token이 유효한지를 검사합니다. Access Token이 정상이면 해당 사용자의 정보를 리턴합니다.
[Method, URI]
Method | URI |
---|---|
GET | /tcgb-gateway/v1.0/apps/{appId}/members/{userId}/tokens/{accessToken}?linkedIdP=false |
[Request Header]
공통 사항 확인
[Path Variable]
Name | Type | Value |
---|---|---|
appId | String | NHN Cloud 프로젝트 ID |
userId | String | 로그인한 사용자 아이디 |
accessToken | String | 로그인한 사용자에게 발급된 Access Token |
[Request Parameter]
Name | Type | Required | Value |
---|---|---|---|
linkedIdP | boolean | optional | true or false (기본값은 false) Access Token을 발급받을 때 사용된, IdP 관련 정보 포함 여부 |
[Response Body]
{
"header": {
"transactionId": "String",
"resultCode": 0,
"resultMessage": "String",
"isSuccessful": true
},
"linkedIdP": {
"idPCode": "String",
"idPId": "String"
},
"member": {
"userId": "String",
"valid": "Y",
"appId": "String",
"regDate": 1488257745000,
"lastLoginDate": 1488286059000,
"authList": [
{
"userId": "String",
"authSystem": "String",
"idPCode": "String",
"authKey": "String",
"regDate": 1488257745000
},
{
"userId": "String",
"authSystem": "String",
"idPCode": "String",
"authKey": "String",
"regDate": 1490922916000
}
]
}
}
Key | Type | Description |
---|---|---|
linkedIdP | Object | 로그인한 사용자가 사용한 IdP 정보 |
linkedIdP.idPCode | String | IdP 정보 guest, payco, facebook 등 |
linkedIdP.idPId | String | IdP ID |
member.userId | String | 사용자 ID |
member.lastLoginDate | long | 마지막으로 로그인한 시간 처음 로그인한 사용자는 해당 값이 없음 |
member.appId | String | appId |
member.valid | String | 로그인에 성공한 사용자의 값은 "Y" (다른 값에 대한 설명은 멤버 API 참고) |
member.regDate | long | 사용자가 계정을 생성한 시간 |
authList | Array[Object] | 사용자 인증 IdP 관련 정보 |
authList[].authSystem | String | Gamebase 내부적으로 사용되는 인증 시스템 추후 사용자 인증 시스템 지원 예정 |
authList[].idPCode | String | 사용자 인증 IdP 정보 guest, payco, facebook 등 |
authList[].authKey | String | authSystem에서 발급된 사용자 구분 값 |
[Error Code]
Console 화면에서 설정한 서버 주소, 설치 URL 등의 클라이언트 설정 정보 및 현재 점검 상태/시간/ 메시지 등 클라이언트 앱 기동시 제공되는 Launching 정보들에 대해 서버에서 간략히 확인할수 있습니다.
[Method, URI]
Method | URI |
---|---|
GET | /tcgb-launching/v1.0/apps/{appId}/launching/simple |
[Request Header]
공통 사항 확인
[Path Variable]
Name | Type | Value |
---|---|---|
appId | String | NHN Cloud 프로젝트 ID |
[Request Parameter]
Name | Type | Required | Value |
---|---|---|---|
osCode | OsCode | true | OS 코드 AOS, IOS, WEB, WINDOWS |
clientVersion | String | true | 클라이언트 버전 |
[Response Body]
{
"header": {
"resultCode": 0,
"resultMessage": "String",
"isSuccessful": true
},
"launchingData": {
"status": {
"code": 200,
"message": "String"
},
"app": {
"storeCode": "String",
"accessInfo": {
"serverAddress": "String",
"csInfo": "String"
},
"relatedUrls": {
"termsUrl": "String",
"csUrl": "String",
"punishRuleUrl": "String",
"personalInfoCollectionUrl": "String"
},
"install": {
"url": "String"
}
}
}
}
{
"header": {
"resultCode": 0,
"resultMessage": "String",
"isSuccessful": true
},
"launchingData": {
"status": {
"code": 303,
"message": "String"
},
"app": {
"storeCode": "String",
"accessInfo": {
"serverAddress": "String",
"csInfo": "String"
},
"relatedUrls": {
"termsUrl": "String",
"csUrl": "String",
"punishRuleUrl": "String",
"personalInfoCollectionUrl": "String"
},
"install": {
"url": "String"
}
},
"maintenance": {
"typeCode": "String",
"beginDate": "2018-05-23T10:44:00+09:00",
"endDate": "2022-01-01T10:44:00+09:00",
"url": null,
"reason": "String",
"message": "String"
}
}
}
Key | Type | Description |
---|---|---|
status | Object | 현재 클라이언트 상태를 나타내는 정보 |
status.code | int | 클라이언트 상태코드 정상: 200 업데이트 권장: 201, 업데이트 필수: 300 서비스 종료: 302 점검 중: 303 |
status.message | String | 클라이언트 상태 메시지 |
app | Object | 앱의 정보 |
app.storeCode | String | 앱 스토어코드 "GG", "AS" 등 |
app.accessInfo | Object | 콘솔 앱 화면에서 설정한 정보 |
app.accessInfo.serverAddress | String | 서버 주소 클라이언트에서 설정한 서버 주소의 우선순위가 높음. 클라이언트 서버 주소 미설정시, 앱 화면에서 설정한 서버 주소가 전달됨. |
app.accessInfo.csInfo | String | 고객 센터 정보 |
app.relatedUrls | Object | 앱 내에서 사용할 인앱 URL |
app.relatedUrls.termsUrl | String | 이용약관 |
app.relatedUrls.csUrl | String | 고객센터 |
app.relatedUrls.punishRuleUrl | String | 이용 정지 규정 |
app.relatedUrls.personalInfoCollectionUrl | String | 개인 정보동의 |
app.install | Object | 앱 설치 정보 |
app.install.url | String | 설치 URL |
maintenance | Object | 점검 정보 |
maintenance.typeCode | String | 점검 타입 코드 전체 점검:'SYSTEM', 앱별 점검:'APP' |
maintenance.beginDate | Date | 점검 시작 시간 ISO 8601 |
maintenance.endDate | Date | 점검 종료 시간 ISO 8601 |
maintenance.url | String | 점검 URL |
maintenance.reason | String | 점검 사유 |
maintenance.message | String | default 점검 사유 메시지 |
단일 사용자에 대해 상세 정보를 조회합니다.
[Method, URI]
Method | URI |
---|---|
GET | /tcgb-member/v1.0/apps/{appId}/members/{userId} |
[Request Header]
공통 사항 확인
[Path Variable]
Name | Type | Value |
---|---|---|
appId | String | NHN Cloud 프로젝트 ID |
userId | String | 조회 대상 사용자 ID |
[Request Parameter]
Name | Type | Required | Value |
---|---|---|---|
includeMemberInfo | boolean | optional | true or false (기본값은 true) 사용자 단말기, OS 등의 상세 정보 포함 여부 |
[Response Body]
{
"header": {
"transactionId": "String",
"resultCode": 0,
"resultMessage": "SUCCESS",
"isSuccessful": true
},
"member": {
"userId": "String",
"valid": "Y",
"appId": "String",
"regDate": 1488185201000,
"lastLoginDate": 1488185201000,
"authList": [
{
"userId": "String",
"authSystem": "String",
"idPCode": "String",
"authKey": "String",
"regDate": 1488185201000
}
]
},
"memberInfo": {
"deviceCountryCode": "String",
"usimCountryCode": "String",
"language": "String",
"osCode": "String",
"telecom": "String",
"storeCode": "String",
"network": "String",
"deviceModel": "String",
"osVersion": "String",
"sdkVersion": "String",
"clientVersion": "String"
}
}
Key | Type | Description |
---|---|---|
member | Object | 조회된 사용자의 기본 정보 |
member.userId | String | 사용자 ID |
member.valid | Enum | Y: 정상 사용자 D: 탈퇴된 사용자 B: 이용 정지된 사용자 M: 유실된 계정 |
member.appId | String | appId |
member.regDate | long | 사용자가 계정을 생성한 시간 |
member.lastLoginDate | long | 마지막으로 로그인한 시간 처음 로그인한 사용자는 해당 값이 없음 |
member.authList | Array[Object] | 사용자 인증 IdP 관련 정보 |
member.authList[].userId | String | 사용자 ID |
member.authList[].authSystem | String | Gamebase 내부적으로 사용되는 인증 시스템 추후 사용자 인증 시스템 지원 예정 |
member.authList[].idPCode | String | 사용자 인증 IdP 정보 guest, payco, facebook 등 |
member.authList[].authKey | String | authSystem에서 발급된 사용자 구분 값 |
member.authList[].regDate | long | IdP 정보가 사용자 계정과 매핑된 시간 |
memberInfo | Object | 사용자에 대한 부가 정보 |
memberInfo.deviceCountryCode | String | 사용자 단말기의 국가 설정 |
memberInfo.usmCountryCode | String | 사용자 USIM의 국가 코드 |
memberInfo.language | String | 사용자 언어 |
memberInfo.osCode | String | 사용자 단말기의 OS 종류 |
memberInfo.telecom | String | 통신사 |
memberInfo.storeCode | String | store 코드 |
memberInfo.network | String | 네트워크 환경 3g, WiFi 등 |
memberInfo.deviceModel | String | 사용자 단말기의 모델명 |
memberInfo.osVersion | String | 사용자 단말기의 OS 버전 |
memberInfo.sdkVersion | String | SDK 버전 |
memberInfo.clientVersion | String | 클라이언트 버전 |
[Error Code]
다수의 사용자 정보를 간략히 조회합니다.
[Method, URI]
Method | URI |
---|---|
POST | /tcgb-member/v1.0/apps/{appId}/members |
[Request Header]
공통 사항 확인
[Path Variable]
Name | Type | Value |
---|---|---|
appId | String | NHN Cloud 프로젝트 ID |
[Request Body]
Name | Type | Required | Value |
---|---|---|---|
userIdList | Array[String] | mandatory | 조회 대상 사용자 ID ["userId", "userId", "userId",...] |
[Response Body]
{
"header": {
"transactionId": "String",
"resultCode": 0,
"resultMessage": "SUCCESS",
"isSuccessful": true
},
"memberList": [
{
"userId": "String",
"valid": "Y",
"appId": "String",
"regDate": 1488185201000
}
]
}
Key | Type | Description |
---|---|---|
memberList | Array[Object] | 조회된 사용자의 기본 정보 |
memberList[].userId | String | 사용자 ID |
memberList[].valid | Enum | Y: 정상 사용자 D: 탈퇴된 사용자 B: 이용 정지된 사용자 M: 유실된 계정 |
memberList[].appId | String | appId |
memberList[].regDate | long | 사용자가 계정을 생성한 시간 |
[Error Code]
사용자 ID로 매핑된 IdP 정보를 조회합니다.
[Method, URI]
Method | Type | URI |
---|---|---|
POST | String | /tcgb-member/v1.0/apps/{appId}/auth/authKeys |
[Request Header]
공통 사항 확인
[Path Variable]
Name | Type | Value |
---|---|---|
appId | String | NHN Cloud 프로젝트 ID |
[Request Body]
Name | Type | Required | Value |
---|---|---|---|
userIdList | Array[String] | mandatory | 조회 대상 사용자 ID ["userId", "userId", "userId",...] |
[Response Body]
{
"header": {
"transactionId": "String",
"resultCode": 0,
"resultMessage": "SUCCESS",
"isSuccessful": true
},
"result": {
"String": [
{
"authKey": "String",
"idPCode": "gbid",
"authSystem": "String"
}
]
}
}
Key | Type | Description |
---|---|---|
result | Array[Object] | 조회된 사용자의 기본 정보 userId가 key, IdP 정보가 value인 object |
authkey | String | authSystem에서 발급된 사용자 구분 값 |
IdPCode | String | 사용자 인증 IdP 정보 guest, payco, facebook 등 |
authSystem | String | Gamebase 내부적으로 사용되는 인증 시스템 추후 사용자 인증 시스템 지원 예정 |
[Error Code]
사용자 인증 키에 매핑된 사용자 ID를 조회합니다.
[Method, URI]
Method | URI |
---|---|
POST | /tcgb-member/v1.0/apps/{appId}/members/userIds/authKeys?authSystem={authSystem} |
[Request Header]
공통 사항 확인
[Path Variable]
Name | Type | Value |
---|---|---|
appId | String | NHN Cloud 프로젝트 ID |
[Request Parameter]
Name | Type | Required | Value |
---|---|---|---|
authSystem | String | mandatory | Gamebase 내부적으로 사용되는 인증 시스템 추후 사용자 인증 시스템 지원 예정 현재는 gbid |
[Request Body]
Name | Type | Required | Value |
---|---|---|---|
authKeyList | Array[String] | mandatory | authSystem에서 발급된 authKey ["authKey", "authKey", "authKey",...] |
[Response Body]
{
"header": {
"transactionId": "String",
"resultCode": 0,
"resultMessage": "SUCCESS",
"isSuccessful": true
},
"result": {
"String": "String"
}
}
Key | Type | Description |
---|---|---|
result | Array[Object] | 조회된 사용자의 기본 정보 authKey가 key이고, userId가 value인 object |
[Error Code]
사용자 이용 정지 이력을 조회합니다.
[Method, URI]
Method | URI |
---|---|
GET | /tcgb-member/v1.0/apps/{appId}/members/bans |
[Request Header]
공통 사항 확인
[Path Variable]
Name | Type | Value |
---|---|---|
appId | String | NHN Cloud 프로젝트 ID |
[Request Parameter]
Name | Type | Required | Value |
---|---|---|---|
begin | String | mandatory | 이용 정지 이력 조회 시작 시간 (ISO 8601 표준 시간, UTF-8 Encoding 필요) ex) yyyy-MM-dd'T'HH:mm:ss.SSSXXX |
end | String | mandatory | 이용 정지 이력 조회 종료 시간 (ISO 8601 표준 시간, UTF-8 Encoding 필요) begin ~ end 사이 시간에 이용정지가 되었다면 조회 결과에 존재 |
page | String | optional | 조회하고자 하는 페이지. 0부터 시작 |
size | String | optional | 한 페이지당 데이터 개수 |
[Response Body]
{
"header": {
"transactionId": "String",
"resultCode": 0,
"resultMessage": "SUCCESS",
"isSuccessful": true
},
"pagingInfo": {
"first": true,
"last": true,
"numberOfElements": 0,
"page": 0,
"size": 0,
"totalElements": 0,
"totalPages": 0
},
"result": [
{
"appId": "String",
"banCaller": "CONSOLE",
"banReason": "String",
"banType": "TEMPORARY",
"beginDate": 0,
"endDate": 0,
"flags": "String",
"message": "String",
"name": "String",
"regUser": "String",
"releaseCaller": "CONSOLE",
"releaseDate": 0,
"releaseReason": "String",
"releaseUser": "String",
"seq": 0,
"templateCode": 0,
"userId": "String"
}
]
}
Key | Type | Description |
---|---|---|
pagingInfo | Object | 조회된 페이징 정보 |
pagingInfo.first | boolean | 첫번째 페이지이면 true |
pagingInfo.last | boolean | 마지막 페이지이면 true |
pagingInfo.numberOfElements | int | 전체 데이터 수 |
pagingInfo.page | int | 페이지 번호 |
pagingInfo.size | int | 한 페이지당 데이터 개수 |
pagingInfo.totalElements | int | 전체 데이터 수 |
pagingInfo.totalPages | int | 전체 페이징 수 |
result | Array[Object] | 조회된 이용 정지 내역 |
result.appId | String | 조회된 이용 정지 의 NHN Cloud 프로젝트 ID |
result.banCaller | String | 이용 정지 호출 주체 |
result.banReason | String | 이용 정지 사유 |
result.banType | String | 이용 정지 타입. TEMPORARY or PERMANENT |
result.beginDate | String | 이용 정지 시작 시간. ISO 8601 표준 시간 |
result.endDate | String | 이용 정지 종료 시간. ISO 8601 표준 시간 |
result.flags | String | 콘솔에서 이용 정지 등록 시 리더보드 삭제를 선택한 경우 'Leaderboard' 로 반환 |
result.message | String | 이용 정지 메시지 |
result.name | String | 콘솔에서 등록한 템플릿 이름 |
result.regUser | String | 이용 정지 등록자 |
result.releaseCaller | String | 이용 정지 해제 주체 |
result.releaseDate | String | 이용 정지 해제 시간. ISO 8601 표준 시간 |
result.releaseReason | String | 이용 정지 해제 사유 |
result.releaseUser | String | 이용 정지 해제 등록자 |
result.seq | Long | 이용 정지 내역 순번 |
result.templateCode | Long | 콘솔에서 등록한 이용 정지 템플릿 코드 값 |
result.userId | String | 사용자 ID |
[Error Code]
사용자 이용 정지 해제 이력을 조회합니다.
[Method, URI]
Method | URI |
---|---|
GET | /tcgb-member/v1.0/apps/{appId}/members/bans/release |
[Request Header]
공통 사항 확인
[Path Variable]
Name | Type | Value |
---|---|---|
appId | String | NHN Cloud 프로젝트 ID |
[Request Parameter]
Name | Type | Required | Value |
---|---|---|---|
begin | String | mandatory | 이용 정지 해제 이력 조회 시작 시간 (ISO 8601 표준 시간, UTF-8 Encoding 필요) ex) yyyy-MM-dd'T'HH:mm:ss.SSSXXX |
end | String | mandatory | 이용 정지 해제 이력 조회 종료 시간 (ISO 8601 표준 시간, UTF-8 Encoding 필요) begin ~ end 사이 시간에 이용정지가 해제 되었다면 조회 결과에 존재 |
page | String | optional | 조회하고자 하는 페이지. 0부터 시작 |
size | String | optional | 한 페이지당 데이터 개수 |
[Response Body]
{
"header": {
"transactionId": "String",
"resultCode": 0,
"resultMessage": "SUCCESS",
"isSuccessful": true
},
"pagingInfo": {
"first": true,
"last": true,
"numberOfElements": 0,
"page": 0,
"size": 0,
"totalElements": 0,
"totalPages": 0
},
"result": [
{
"appId": "String",
"banCaller": "CONSOLE",
"banReason": "String",
"banType": "TEMPORARY",
"beginDate": 0,
"endDate": 0,
"flags": "String",
"message": "String",
"name": "String",
"regUser": "String",
"releaseCaller": "CONSOLE",
"releaseDate": 0,
"releaseReason": "String",
"releaseUser": "String",
"seq": 0,
"templateCode": 0,
"userId": "String"
}
]
}
Key | Type | Description |
---|---|---|
pagingInfo | Object | 조회된 페이징 정보 |
pagingInfo.first | boolean | 첫번째 페이지이면 true |
pagingInfo.last | boolean | 마지막 페이지이면 true |
pagingInfo.numberOfElements | int | 전체 데이터 수 |
pagingInfo.page | int | 페이지 번호 |
pagingInfo.size | int | 한 페이지당 데이터 개수 |
pagingInfo.totalElements | int | 전체 데이터 수 |
pagingInfo.totalPages | int | 전체 페이징 수 |
result | Array[Object] | 조회된 이용 정지 정보 |
result.appId | String | 조회된 이용 정지 의 NHN Cloud 프로젝트 ID |
result.banCaller | String | 이용 정지 호출 주체 |
result.banReason | String | 이용 정지 사유 |
result.banType | String | 이용 정지 타입. TEMPORARY or PERMANENT |
result.beginDate | String | 이용 정지 시작 시간. ISO 8601 표준 시간 |
result.endDate | String | 이용 정지 종료 시간. ISO 8601 표준 시간 |
result.flags | String | 콘솔에서 이용 정지 등록 시 리더보드 삭제를 선택한 경우 'Leaderboard' 로 반환 |
result.message | String | 이용 정지 메시지 |
result.name | String | 콘솔에서 등록한 템플릿 이름 |
result.regUser | String | 이용 정지 등록자 |
result.releaseCaller | String | 이용 정지 해제 주체 |
result.releaseDate | String | 이용 정지 해제 시간. ISO 8601 표준 시간 |
result.releaseReason | String | 이용 정지 해제 사유 |
result.releaseUser | String | 이용 정지 해제 등록자 |
result.seq | Long | 이용 정지 내역 순번 |
result.templateCode | Long | 콘솔에서 등록한 이용 정지 템플릿 코드 값 |
result.userId | String | 사용자 ID |
[Error Code]
현재 점검이 설정되어 있는지 여부를 확인합니다.
[Method, URI]
Method | URI |
---|---|
GET | /tcgb-launching/v1.0/apps/{appId}/maintenances/under-maintenance |
[Request Header]
공통 사항 확인
[Path Variable]
Name | Type | Value |
---|---|---|
appId | String | NHN Cloud 프로젝트 ID |
[Request Parameter]
없음
[Response Body]
{
"header": {
"transactionId": "String",
"resultCode": 0,
"resultMessage": "String",
"isSuccessful": true
},
"appId": "",
"underMaintenance": true,
"maintenances": [
{
"typeCode": "APP",
"beginDate": "2017-01-01T12:10:00+07:00",
"endDate": "2017-02-01T12:17:00+07:00",
"url": "http://url.info",
"message": "maintenance reason"
}
]
}
Key | Type | Description |
---|---|---|
underMaintenance | boolean | 현재 점검 설정 여부 |
maintenances | Object | 점검이 설정되어 있다면 점검 기본 정보 |
maintenances.typeCode | Enum | APP: 게임에서 설정한 점검 SYSTEM: Gamebase 시스템에서 설정한 점검 |
maintenances.beginDate | String | 점검 시작 시간. ISO 8601 |
maintenances.endDate | String | 점검 종료 시간. ISO 8601 |
maintenances.url | String | 상세 점검 URL |
maintenances.message | String | 점검 메시지 |
[Error Code]
Gamebase는 NHN Cloud IAP 서비스의 서버 API에 대해 Wrapping 기능을 제공합니다. Wrapping 기능을 사용하면 사용자 서버에서 일관된 인터페이스로 NHN Cloud 서비스들을 사용할 수 있습니다.
API | Method | Wrapping URI | IAP URI |
---|---|---|---|
아이템 소비 | POST | /tcgb-inapp/v1.0/apps/{appId}/consume/{paymentSeq}/items/{itemSeq} | /inapp/v3/consume/{paymentSeq}/items/{itemSeq} |
아이템 조회 | GET | /tcgb-inapp/v1.0/apps/{appId}/item/list/{appSeq} | /standard/item/list/{appSeq} |
미소비 결제 내역 조회 | POST | /tcgb-inapp/v1.0/apps/{appId}/consumable/list | /standard/inapp/v1/consumable/list |
해당 API에 대한 상세 설명은 다음 링크를 참고하시기 바랍니다.
해당 API 들은 IAP에서 deprecated 되었습니다.
Content-Type: application/json
X-TCGB-Transaction-Id: 88a1ae42-6b1d-48c8-894e-54e97aca07fq
X-Secret-Key: IgsaAP
POST https://api-gamebase.cloud.toast.com/tcgb-inapp/v1.0/apps/{appId}/consume/{paymentSeq}/items/{itemSeq}
Gamebase는 NHN Cloud Leaderboard 서비스의 서버 API에 대해 Wrapping 기능을 제공합니다. Wrapping 기능을 사용하면 사용자 서버에서 일관된 인터페이스로 NHN Cloud 서비스들을 사용할 수 있습니다.
API | Method | Wrapping URI | Leaderboard URI |
---|---|---|---|
Factor에 등록된 사용자 수 조회 | GET | /tcgb-leaderboard/v1.0/apps/{appId}/factors/{factor}/user-count | /leaderboard/v2.0/appkeys/{appKey}/factors/{factor}/user-count |
단일 사용자 점수/순위 조회 | GET | /tcgb-leaderboard/v1.0/apps/{appId}/factors/{factor}/users?userId={userId} | /leaderboard/v2.0/appkeys/{appKey}/factors/{factor}/users?userId={userId} |
다수 사용자 점수/순위 조회 | POST | /tcgb-leaderboard/v1.0/apps/{appId}/get-users | /leaderboard/v2.0/appkeys/{appKey}/get-users |
일정 범위의 전체 점수/순위 조회 | GET | /tcgb-leaderboard/v1.0/apps/{appId}/factors/{factor}/users?start={start}&size={size} | /leaderboard/v2.0/appkeys/{appKey}/factors/{factor}/users?start={start}&size={size} |
단일 사용자 점수 등록 | POST | /tcgb-leaderboard/v1.0/apps/{appId}/factors/{factor}/users/{userId}/score | /leaderboard/v2.0/appkeys/{appKey}/factors/{factor}/users/{userId}/score |
단일 사용자 점수/ExtraData 등록 | POST | /tcgb-leaderboard/v1.0/apps/{appId}/factors/{factor}/users/{userId}/score-with-extra | /leaderboard/v2.0/appkeys/{appKey}/factors/{factor}/users/{userId}/score-with-extra |
다수 사용자 점수 등록 | POST | /tcgb-leaderboard/v1.0/apps/{appId}/scores | /leaderboard/v2.0/appkeys/{appKey}/scores |
다수 사용자 점수/ExtraData 등록 | POST | /tcgb-leaderboard/v1.0/apps/{appId}/scores-with-extra | /leaderboard/v2.0/appkeys/{appKey}/score-with-extra |
단일 사용자 Leaderboard정보 삭제 | DELETE | /tcgb-leaderboard/v1.0/apps/{appId}/factors/{factor}/users | /leaderboard/v2.0/appkeys/{appKey}/factors/{factor}/users |
해당 API에 대한 상세 설명은 다음 링크를 참고하시기 바랍니다.
Content-Type: application/json
X-TCGB-Transaction-Id: 88a1ae42-6b1d-48c8-894e-54e97aca07fq
X-Secret-Key: IgsaAP
GET https://api-gamebase.cloud.toast.com/tcgb-leaderboard/v1.0/apps/{appId}/factors/{factor}/user-count
API 호출 실패 원인에 대한 문의 사항이 있을 경우, API 호출 URL(HTTP body가 있는 경우는 body와 함께)과 그에 대한 응답 결과를 고객 센터에 올려 주시면 가능한 한 빠르게 답변 드리겠습니다.
GET https://api-gamebase.cloud.toast.com/tcgb-launching/v1.0/apps/C3JmSctU/maintenances/under-maintenance
{
"header": {
"transactionId": "18a1ae42-6b1d-54c8-894e-54e97bca07fq",
"resultCode": -4010002,
"resultMessage": "Gamebase product appKey is invalid, appId:C3JmSctU",
"traceError": {
"trackingTime": 1489726350287,
"throwPoint": "gateway",
"uri": "/tcgb-launching/v1.0/apps/C3JmSctU/maintenances/under-maintenance"
},
"isSuccessful": false
}
}