Skip to content
This repository was archived by the owner on May 9, 2020. It is now read-only.

Auth Login

sandavid edited this page Apr 27, 2013 · 1 revision

GET auth/login

Returns a JSON which contains the id, the token and the screen of the user if the authentification was successful

  • URL

    /auth/login?username=username&password=password

  • Method:

    GET

  • URL Params

    Required:

    username=[string] password=[string]

  • Success Response:

    • Content:
    {
        "id": [id],
        "token": [token],
        "username": [username]
    }
    
  • Error Response:

    • Code: 1 Account Not Found
      Content:

      {
          "error":"Account Not Found",
          "code":1
      }
      
    • Code: 400 Bad Request
      Content:

      {
          "error":"Bad Request",
          "code":400
      }
      
    • Code: 401 Unauthorized
      Content:

      {
          "error":"Unauthorized",
          "code":401
      }
      
    • Code: 999 Unexpected Error
      Content:

      {
          "error":"Unexpected Error",
          "code":999
      }
      
  • Sample Call:

    /auth/login?username=sherlock&password=1234

Clone this wiki locally