MENU
      플레이어 이름 검증
        • PDF

        플레이어 이름 검증

        • PDF

        기사 요약

        플레이어의 이름으로 사용할 수 있는지 확인하는 방법은 다음과 같습니다.

        요청

        GET {API_URL}/players/checkName?name={name}
        HTTP

        요청 파라미터

        필드명필수 여부타입제약 사항설명
        nameYString영문숫자 최소 3자, 최대 30자플레이어 이름
        중복체크도 포함

        성공 코드

        HttpStatusCodeCodeMessage
        200200ok

        에러 코드

        HttpStatusCodeCodeMessageDescription
        2004702Body (JSON) domains is missing.
        2004610Query string name is invalid.
        2004802This player already exists.

        요청 예시

        GET /api/v1/players/checkName?name=test123
        HOST: vpe.apigw.ntruss.com
        Content-Type: application/json
        x-ncp-apigw-timestamp:1521787414578
        x-ncp-iam-access-key:6uxz1nKkcYwUjWRG5Q1V7NsW0i5jErlu2NjBXXgy
        x-ncp-apigw-signature-v2:iJFK773KH0WwQ79PasqJ+ZGixtpDQ/abS57WGQdld2M=
        x-ncp-region_code:KR
        HTTP

        응답 예시

        HTTP/1.1 200 OK
        Server: nginx
        Date: Fri, 26 Feb 2021 09:53:32 GMT
        Content-Type: application/json;charset=utf-8
        Connection: keep-alive
        Access-Control-Allow-Origin: *
        x-ncp-trace-id: 36c9k60om4p3238cpmc9gm4cj4
        
        {
        	"code": 200,
        	"message": "ok"
        }
        HTTP

        이 문서가 도움이 되었습니까?

        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.