Labs/Weave/ServerAPI: Difference between revisions

Line 45: Line 45:
== Checking if userID/email already exists ==
== Checking if userID/email already exists ==


Sometimes you may want to check is a particular userID or email already exists asynchronously. This requires a single GET request to https://sm-labs01.mozilla.org:81/api/register/check/<username> (Replacing <username> with desired username) or https://sm-labs01.mozilla.org:81/api/register/chkmail/<email> (Replacing <email> with desired email address)
Sometimes you may want to check is a particular userID or email already exists asynchronously. This requires a single GET request to https://services.mozilla.com/api/register/check/USERNAME (Replacing "USERNAME" with desired username) or https://services.mozilla.com/api/register/chkmail/EMAIL (Replacing "EMAIL" with desired email address)


Analyze the returned HTTP status code and body with the help of the table below and decide on the next course of action.
Analyze the returned HTTP status code and body with the help of the table below and decide on the next course of action.
Confirmed users
428

edits