MENU
      Searching blocked user

        Searching blocked user


        Article summary

        View to see if a user is blocked by user UID.

        Requested

        GET https://dashboard-api.gamepot.ntruss.com/v1/api/project/{projectId}/user/{userId}/block
        HTTP
        ItemTypeRequirement StatusDescriptionRemarks
        projectIdStringOGAMEPOT SDK's projectId
        userIdStringOGAMEPOT SDK's userId

        Request header

        Header nameRequirement StatusDescription
        x-api-keyOAuthentication key issued by GAMEPOT
        accept-languageXLanguage in use

        Response

        Field nameTypeDescription
        statusIntResult value (1: success)
        idStringID for user block information
        member_idStringUser ID
        deletedBooleanWhether to delete user block information (true: deleted, false: normal)
        typeStringBlock classification (manual, autopurchase)
        statusIntStatus (1: active, 2: inactive)
        messageStringBlock reason (currently deprecated)
        langStringBlock message language
        valueStringBlock reason message
        defaultBooleanDefault language settings (If the device's language value is not present in messageMulti, messages set to true are displayed by default.)
        startedAtStringBlock start date
        endedAtStringBlock end date
        createdAtBooleanBlock registration date
        updatedAtBooleanBlock modification date
        deletedAtBooleanBlock deletion date
        category_idStringBlock classification ID

        Examples

        Request examples

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

        Response examples

        {
          "status": 1,
          "result": {
            "id": "xxxxxxxxxxxxxx",
            "member_id": "xxxxxxxxxxxxxx",
            "deleted": false,
            "type": "manual",
            "status": 1,
            "message": null,
            "messageMulti": [
              {
                "lang": "ko",
                "value": "Test-ko",
                "default": true
              }
            ],
            "startedAt": "Mon May 11 2020 12:02:00 GMT+0900 (GMT+09:00)",
            "endedAt": "Mon May 25 2020 22:00:00 GMT+0900 (GMT+09:00)",
            "createdAt": "Tue May 12 2020 14:06:40 GMT+0900 (GMT+09:00)",
            "updatedAt": "Tue May 12 2020 14:06:40 GMT+0900 (GMT+09:00)",
            "deletedAt": null,
            "category_id": ""
          }
        }
        HTTP

        Error Code

        These are the common error codes that occur in response to GAMEPOT Open API requests.

        ParameterDescription
        statusErrors (1: success, see the error code in case of failures)
        messageError description
        Error CodeDescription
        -1When a key that doesn't exist in the dashboard has been used
        -2When the dashboard's key and the header's key are different
        -3When a key deleted from the dashboard has been used
        -4When a key processed as "not used" on the dashboard has been used
        -5When a key has expired
        -6When the project ID doesn't exist
        {
          "status": -6,
          "message": "projectId was wrong."
        }
        Plain text

        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.