Check User Name
From EveryTrail API Developer Documentation
Contents |
URL
/api/user/checkusername
Semantics
Checks if a username is available for registration
Parameters
| Parameter name | Parameter format | Required | Description |
|---|---|---|---|
| username (0-9, a-z, A-Z,-,_) | string | yes | username to check |
Success Response
<etUserCheckUsernameResponse status="success"> <username>${username}</username> </etUserCheckUsernameResponse>
${username}: the username that was checked
Error Response
<etUserCheckUsernameResponse status="error"> <username>${username}</username> ${error reponse} </etUserLoginResponse>
${username}: The username for which the request was done
${error reponse}: See format in Error Reponse Format
Error Codes
| Code | Message |
|---|---|
| 6 | username taken |
| 10 | unknown error |
