User Lookup
    • PDF

    User Lookup

    • PDF

    Article Summary

    Look up a user by user UID.

    request

    GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/user/{userId}
    
    ItemtypeRequiredExplanationRemark
    projectIdStringOProjectId in GamePot SDK
    userIdStringOUserId of GamePot SDK

    Request header

    Header nameRequiredExplanation
    x-api-keyOAuthentication key issued by GamePot
    accept-languageXLanguage used

    answer

    Field nametypeExplanation
    statusIntResult (1: Success )
    idStringUser ID
    deletedBooleanWhether to delete the member (true: delete, false: normal )
    store_idStringStore accessed when creating account (google ...)
    countryStringUser country code (based on ISO 3166-1)
    remoteipStringUser IP
    adidStringAdvertising id
    deviceStringDevice type (android, ios)
    networkStringUser access network (WI-FI ...)
    versionStringClient version information
    modelStringUser device model name
    tokenStringPush token
    pushBooleanWhether to accept push (true: agree, false: disagree)
    nightBooleanNight push consent (true: agree, false: disagree)
    adBooleanAds push consent (true: agree, false: disagree)
    memoStringMember notes
    device_idStringMember Device ID
    createdAtStringDate the member was created
    updatedAtStringDate the member information was modified
    loginedAtStringLast access date
    deletedAtStringDate the member was deleted

    example

    Request example

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

    Example response

    ```http
    {
      "status": 1,
      "result":{
        "id":"XXXXXXXX",
        "deleted":false,
        "store_id":"one",
        "country":"KR",
        "remoteip":"xxx.xxx.xxx.xxxx",
        "nickname":null,
        "adid":"XXXXXX-XXXX-XXXX-XXXX-XXXXXX",
        "device":"android",
        "network":"WIFI",
        "version":"11",
        "model":"SM-G977N",
        "token":"XXXXXXXX",
        "push":true,
        "push_date":{
            "on":"2023-04-21T11:22:55+09:00",
            "off":null
        },
        "night":true,
        "night_date":{
            "on":"2023-04-21T11:22:55+09:00",
            "off":"2023-04-20T11:22:58+09:00"
        },
        "ad":true,
        "memo":null,
        "device_id":"XXXXX-XXXXX-XXXXX",
        "agree":{
            "termsofuse":"Y",
            "termsofuseAt":"2023-04-21T11:22:55+09:00",
            "privacypolicy":"Y",
            "privacypolicyAt":"2023-04-21T11:22:55+09:00"
        },
        "verify":{
            "key":null,
            "updatedAt":null
        },
        "adult":null,
        "gdpr":{
            "status":4,
            "email_verified":null,
            "checked_story_category_ids":[
            "gdpr_term",
            "gdpr_privacy",
            "gdpr_push_normal",
            "gdpr_push_night"
            ]
        },
        "createdAt":"2023-04-21T11:22:55+09:00",
        "updatedAt":"2023-04-21T11:22:55+09:00",
        "loginedAt":"2023-04-21T11:22:55+09:00",
        "deletedAt":null
     }
    }
    
    
    ## Error code<a name="Errorcode"></a>
    
    
    
    Common error code that occurs when requesting Gamepot Open API.
    
    | parameter | Explanation |
    | :--- | :--- |
    | status  | Error code  (1: Refer to Error code in case of success or failure \) |
    | message | Error details |
    
    | Error code | Explanation |
    | :---: | :--- |
    | -1 | If you used a key that is not on the dashboard |
    | -2 | The key of the dashboard and the key of the header are different. |
    | -3 | When using a key deleted from the dashboard |
    | -4 | The dashboard used unused keys. |
    | -5 | If the key has expired |
    | -6 | If there is no project ID |
    

    {
    "status": -6,
    "message": "projectId was wrong."
    }


    Was this article helpful?

    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.