pub async fn auth_by_password(
        &self,
        device_id: &str,
        session_id: &str,
        password: &str,
    ) -> ResponsePayload<UserInfo> {
        self.request(
            "/v1/auth/by/password",
            &[("deviceId", device_id), ("sessionid", session_id)],
            &[("password", password)],
        )
        .await
        .json()
        .await
        .unwrap()
    }
/// Auth by password.
///
/// You can't skip this step if you want to get full access to API. So, before calling this
/// method you should complete auth by phone.
Auth by password.
You can't skip this step if you want to get full access to API. So, before calling this
method you should complete auth by phone.
Auth by password . You can ' t skip this step if you want to get full access to API . So before calling this method you should complete auth by phone .
pub async fn auth_by_password(
        &self,
        device_id: &str,
        session_id: &str,
        password: &str,
    ) -> ResponsePayload<UserInfo> {
        self.request(
            "/v1/auth/by/password",
            &[("deviceId", device_id), ("sessionid", session_id)],
            &[("password", password)],
        )
        .await
        .json()
        .await
        .unwrap()
    }
pub async fn auth_by_password ( & self , device_id : & str , session_id : & str , password : & str , ) -> ResponsePayload < UserInfo > { self . request ( " " , & [ ( " " , device_id ) , ( " " , session_id ) ] , & [ ( " " , password ) ] , ) . await . json ( ) . await . unwrap ( ) }
Auth by password.
Auth by password .
&self
device_id
&str
session_id
&str
password
&str
&self
device_id
&str
session_id
&str
password
&str