利用停止タイプを確認する¶
Retrieves the list of registered access restriction types. It returns operation policy restriction types (block_type_list) and temporary restriction types (temp_type_list) separately. Unregistered languages are displayed in English. See Authentication > Restriction > Type registration.
リクエストURL¶
| 本番URL | https://auth.qpyou.cn/v2/game/block/type/get |
|---|---|
| サンドボックスURL | https://sandbox-auth.qpyou.cn/v2/game/block/type/get |
| HTTPメソッド | POST |
| Content-Type | application/json |
| データ形式 | JSON |
リクエストヘッダー¶
| フィールド名 | 説明 | タイプ | 必須 |
|---|---|---|---|
| X-Access-Token | アプリサーバー認証用のOAuth 2.0 Access Token (OAuth Tokenを発行するを参照) | String | Y |
| ISCRYPT | データ暗号化の有無(0 = 暗号化しない)(必ず0を送信) | Integer | Y |
リクエスト本文¶
| フィールド名 | 説明 | タイプ | 必須 |
|---|---|---|---|
| appid | App ID | String | Y |
| language | Language code (default: en)
| String | N |
リクエスト例¶
If you need to check popup text for a specific language, send the language code in language. type_name is always Korean, and type_en_name is always English.
レスポンス本文¶
| フィールド名 | 説明 | タイプ |
|---|---|---|
| result_code | レスポンスコード 詳細 | Integer |
| result_msg | 結果メッセージ | String |
| token_validation | JWT検証結果(JWT検証エラー) | Object |
| token_validation.result_code | JWT検証結果コード | Integer |
| token_validation.result_msg | JWT検証結果メッセージ | String |
| data | 結果データ | Object |
| data.block_type_list | Operation policy restriction type list | Array |
| data.block_type_list[].block_type | Restriction type number | Integer |
| data.block_type_list[].type_status | Restriction popup type (O: operation policy restriction) | String |
| data.block_type_list[].type_name | Restriction type name (fixed to Korean regardless of requested language) | String |
| data.block_type_list[].type_en_name | Restriction type name (fixed to English regardless of requested language) | String |
| data.block_type_list[].reason | Restriction reason (returned by language; unregistered languages use English) | String |
| data.temp_type_list | Temporary restriction type list | Array |
| data.temp_type_list[].block_type | Restriction type number | Integer |
| data.temp_type_list[].type_status | Restriction popup type (N: temporary restriction) | String |
| data.temp_type_list[].type_name | Restriction type name (fixed to Korean regardless of requested language) | String |
| data.temp_type_list[].type_en_name | Restriction type name (fixed to English regardless of requested language) | String |
| data.temp_type_list[].title | Temporary restriction popup title (returned by language; unregistered languages use English) | String |
| data.temp_type_list[].reason | Temporary restriction popup message (returned by language; unregistered languages use English) | String |
レスポンスコード¶
| Code value | 説明 |
|---|---|
| 0 | 成功 |
| 2499 | JWT検証失敗(token_validationを参照) |
| 4000 | 無効なパラメータ |
| 6000 | 無効なappid |
レスポンス例¶
成功¶
If the request succeeds and result_code is 0, both data.block_type_list and data.temp_type_list are returned.
{"result_code":0,"result_msg":"SUCCESS","token_validation":{"result_code":0,"result_msg":"success"},"data":{"block_type_list":[{"block_type":1,"type_status":"O","type_name":"불법 프로그램 이용","type_en_name":"Usage of unauthorized programs","reason":"불법 프로그램 이용"}],"temp_type_list":[{"block_type":25,"type_status":"N","type_name":"임시 접속 제한(게임 데이터 수정)","type_en_name":"Temporary access restriction (game data modified)","title":"게임 이용에 불편을 드려 죄송합니다.","reason":"현재 게임 데이터를 수정하는 중입니다. 빠른 조치를 위해 최선을 다하겠습니다."}]}}
JWT validation failure¶
{
"result_code": 2499,
"result_msg": "JWT validation failed. See token_validation for details.",
"token_validation": {
"result_code": 2408,
"result_msg": "The access token is expired. Please refresh your token."
}
}
Note
JWT検証に失敗した場合、token_validationフィールドで詳細なエラー情報を確認できます。詳細はJWT検証エラーコードを参照してください。