User Creation
From EveryTrail API Developer Documentation
Contents |
URL
/api/user/create
Semantics
Creates a new user account for use on EveryTrail.com (and through APIs)
Parameters
| Parameter name | Parameter format | Required | Description |
|---|---|---|---|
| username | string (0-9,a-z,A-Z,-,_) | yes | requested username for the account |
| password | string (at least 6 characters) | yes | requested password for the account |
| string (valid email address) | yes | email address of the user creating the account |
Success Response
<etUserCreateResponse status="success"> <userID>${user ID}</userID> </etUserCreateResponse>
${media ID}: ID of media object on the server as int ${media type}: mime-type of the media object as string
Error Response
<etUserCreateResponse status="error"> ${error reponse} </etUserCreateResponse>
${error reponse}: See format in Error Reponse Format
Error Codes
| Code | Message |
|---|---|
| 1 | username empty |
| 2 | incorrect password length |
| 4 | incorrect email format |
| 6 | username taken |
| 7 | email taken |
| 10 | unknown error |
