Latest stories

check_user_name

  • Inputs
{
    "user_name": "string between 4 to 40 characters"
}

  • Errors
{
    "must_login": "user must be login",
    "user_name": [
        {
            "min length is 4": "minimum length of username is 4"
        },
        {
            "max length is 40": "maximum length of username is 40"
        }
    ],
    "username_already_exists": "this username is already taken by other users",
    "wrong_username": "unacceptable characters passed in inputs"
}

  • Extra Description
Check if username is taken or not

  • Sample
  • Url:
https://api.pantel.me/a/check_user_name?user_name=JohnDoe
  • Output:
                                {
    "status": "success",
    "time": 1526884627.9820757
}