(
    auth, url, login_data, is_retry=False,
)
return auth.query(
        url=url,
        headers=headers,
        data=data,
        json_resp=False,
        reqtype="post",
        is_retry=is_retry,
    )
Login request.

    :param auth: Auth instance.
    :param url: Login url.
    :login_data: Dictionary containing blink login data.
Login request.
Login request .
def request_login(
    auth, url, login_data, is_retry=False,
):
    """
    Login request.

    :param auth: Auth instance.
    :param url: Login url.
    :login_data: Dictionary containing blink login data.
    """
    headers = {
        "Host": DEFAULT_URL,
        "Content-Type": "application/json",
        "user-agent": DEFAULT_USER_AGENT,
    }
    data = dumps(
        {
            "email": login_data["username"],
            "password": login_data["password"],
            "unique_id": login_data["uid"],
            "device_identifier": login_data["device_id"],
            "client_name": "Computer",
            "reauth": True,
        }
    )

    return auth.query(
        url=url,
        headers=headers,
        data=data,
        json_resp=False,
        reqtype="post",
        is_retry=is_retry,
    )
def request_login ( auth , url , login_data , is_retry = False , ) : headers = { "Host" : DEFAULT_URL , "Content-Type" : "application/json" , "user-agent" : DEFAULT_USER_AGENT , } data = dumps ( { "email" : login_data [ "username" ] , "password" : login_data [ "password" ] , "unique_id" : login_data [ "uid" ] , "device_identifier" : login_data [ "device_id" ] , "client_name" : "Computer" , "reauth" : True , } ) return auth . query ( url = url , headers = headers , data = data , json_resp = False , reqtype = "post" , is_retry = is_retry , )