Services/Sync/Server/Archived/0.3/API/Registration

From MozillaWiki
< Services‎ | Sync‎ | Server‎ | Archived‎ | 0.3/API
Revision as of 23:59, 7 November 2008 by Telliott (talk | contribs) (New page: = Weave 0.3 Registration API = Release Date: TBD == Checking for a Username == GET '''https://''server''/''prefix''/check/''username''' returns 1 if the username exists, 0 otherwise =...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Weave 0.3 Registration API

Release Date: TBD


Checking for a Username

GET https://server/prefix/check/username

returns 1 if the username exists, 0 otherwise

Creating a User Account

POST https://server/prefix/new'

Term Description
uid The username to be created.
password The requested password
email Email address associated with the account (for password recovery)
recaptcha_challenge_field (optional) challenge field from the captcha
recaptcha_response_field (optional) response field from the captcha

The captcha is optional and is activated by setting the WEAVE_REGISTER_USE_CAPTCHA variable in the apache config. If it is set, issuing a GET request to the above URL (no parameters) will provide the html for the captcha.


Changing a User Password

POST https://server/prefix/chpwd

Term Description
uid The username to be created.
password The old password
new The new password

Response Codes

The registration API uses the standard Weave Response Codes