Latest stories

login

  • Inputs
{
    "device_details": "string: maximum 128 characters: device_details: optional",
    "forget_password": "integer: excludes password: optional",
    "password": "string: excludes forget_password: optional",
    "phone_code": "string: minimum 5 characters",
    "phone_code_hash": "string: fixed length is 16",
    "phone_number": "phone number: example: +18885559977",
    "version": "string: length between 5 and 12 characters: version :optional"
}

  • Errors
{
    "device_details": [
        {
            "max length is 128": "maximum length of device_details is 128"
        }
    ],
    "insert_your_password": "user set password for account, but not inserted",
    "must_logout": "user must logout",
    "must_register": "there is no account that matches these input parameters",
    "no_password_to_reset": "forget_password is given in input but no password assigned yet",
    "phone_code": [
        {
            "min length is 5": "minimum length of phone code is 5"
        },
        {
            "max length is 5": "maximum length of phone code is 5"
        }
    ],
    "phone_code_hash_expired": "wrong or expired phone_code_hash",
    "phone_number": [
        {
            "null value not allowed": "phone number is not valid"
        }
    ],
    "version": [
        {
            "min length is 5": "minimum length of version is 5"
        },
        {
            "max length is 12": "maximum length of version is 12"
        }
    ],
    "wrong_phone_code": "phone_code is wrong"
}

  • Extra Description
Create a session for an already registered user. it can be called with forget_password for recovering the account

  • Sample
  • Url:
https://api.pantel.me/a/login?forget_password=1&phone_number=+1**********&phone_code=*****&phone_code_hash=rqciq5d92ymhoees
  • Output:
                                {
    "message": "check_your_email",
    "status": "success",
    "time": 1546344466.2644718
}