API:POST /activate

From SoFurry
Revision as of 12:46, 25 April 2016 by Tetsudra (talk | contribs) (Created page with "= Resource URL = https://api.sofurrybeta.com/activate = Request = POST /activate { // Required, 8 characters "activate_token": "abcd1234" } = Response: Success =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Resource URL

https://api.sofurrybeta.com/activate

Request

POST /activate
{
  // Required, 8 characters
  "activate_token": "abcd1234"
}

Response: Success

HTTP 200
{
  "result": true,
  "token": "Activated! Go ahead and log in."
}

If the result is TRUE, then the activation was a success. The corresponding user will now be able to log in with their username and password.

Response: Failed Login

HTTP 422
{
  "result": false,
  "message": "Incorrect username or password"
}