MENU
      キャラクター照会

        キャラクター照会


        記事の要約

        当該コンテンツは、ローカリゼーションサービスを準備しております。早急にローカライズサービスをご提供できるよう、努めております。

        ゲーム内のプレイヤーIDを照会します。

        要請

        GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/player/{playerID}
        HTTP
        項目タイプ必須かどうか説明備考
        projectIdStringOGamePot SDKの projectId
        playerIDStringOGamePot SDKのプレイヤーID

        要請 Header

        Header名必須かどうか説明
        x-api-keyOGamePotで発行する認証key
        accept-languageX使用言語

        応答

        フィールド名タイプ説明
        statusInt結果値 (1: 成功)
        idStringユーザーID
        player_idStringプレイヤーID
        server_idStringサーバID
        nameStringプレイヤー名
        levelStringプレーヤー·レベル
        userdataString登録したUserdata
        ipStringプレイヤーip
        createdAtStringプレイヤー生成日
        updatedAtStringプレイヤー更新日
        user_idStringGamepot UID

        例示

        要請例

        curl --request GET \
          --url https://dashboard-api.gamepot.ntruss.com/v1/api/project/12a0f2ff-xxxx-xxxx-xxxx-9c13ef02f5fs/player/dodo  \
          --header 'accept-language: ko' \
          --header 'x-api-key: 86dcgffae0641745432as02a8801ce5a5475f764fxxxxxxxxx'
        HTTP

        応答例

        {
          "status": 1,
          "result": {
            "id": "xxxxxxxxxxxxxxx",
            "player_id": "テストID",
            "server_id": "テストサーバー",
            "name": "テスト名",
            "level": "12",
            "userdata": "dododo",
            "ip": "xxx.xxx.xxx.xxx",
            "createdAt": "Fri Feb 21 2020 14:15:33 GMT+0900 (GMT+09:00)",
            "updatedAt": "Fri Feb 21 2020 14:15:33 GMT+0900 (GMT+09:00)",
            "user_id": "xxxxxxxxxxxxxxx"
          }
        }
        HTTP

        エラーコード

        Gamepot Open APIリクエスト時に発生する共通エラーコードです。

        parameter説明
        statusエラーコード(1: 成功、失敗時Error code参考)
        messageエラー詳細説明
        エラーコード説明
        -1ダッシュボードにないkeyを使用した場合
        -2ダッシュボードのkeyとheaderのkeyが異なる場合
        -3ダッシュボードで削除したkeyを使用した場合
        -4ダッシュボードで未使用に処理されたkeyを使用した場合
        -5keyが切れた場合
        -6プロジェクトIDがない場合
        {
          "status": -6,
          "message": "projectId was wrong."
        }
        Plain text

        この記事は役に立ちましたか?

        Changing your password will log you out immediately. Use the new password to log back in.
        First name must have atleast 2 characters. Numbers and special characters are not allowed.
        Last name must have atleast 1 characters. Numbers and special characters are not allowed.
        Enter a valid email
        Enter a valid password
        Your profile has been successfully updated.