pub async fn confirm_auth_by_phone(
        &self,
        device_id: &str,
        session_id: &str,
        operation_ticket: &str,
        sms_code: &str,
    ) -> ResponsePayload<UserInfo> {
        self.request(
            "/v1/confirm",
            &[("deviceId", device_id), ("sessionid", session_id)],
            &[
                ("initialOperationTicket", operation_ticket),
                ("initialOperation", "auth/by/phone"),
                (
                    "confirmationData",
                    &serde_json::json!({ "SMSBYID": sms_code }).to_string(),
                ),
            ],
        )
        .await
        .json()
        .await
        .unwrap()
    }
/// Complete auth by phone.
///
/// Returns details on current session.
Complete auth by phone.
Returns details on current session.
Complete auth by phone . Returns details on current session .
pub async fn confirm_auth_by_phone(
        &self,
        device_id: &str,
        session_id: &str,
        operation_ticket: &str,
        sms_code: &str,
    ) -> ResponsePayload<UserInfo> {
        self.request(
            "/v1/confirm",
            &[("deviceId", device_id), ("sessionid", session_id)],
            &[
                ("initialOperationTicket", operation_ticket),
                ("initialOperation", "auth/by/phone"),
                (
                    "confirmationData",
                    &serde_json::json!({ "SMSBYID": sms_code }).to_string(),
                ),
            ],
        )
        .await
        .json()
        .await
        .unwrap()
    }
pub async fn confirm_auth_by_phone ( & self , device_id : & str , session_id : & str , operation_ticket : & str , sms_code : & str , ) -> ResponsePayload < UserInfo > { self . request ( " " , & [ ( " " , device_id ) , ( " " , session_id ) ] , & [ ( " " , operation_ticket ) , ( " " , " " ) , ( " " , & serde_json :: json ! ( { " " sms_code } ) . to_string ( ) , ) , ] , ) . await . json ( ) . await . unwrap ( ) }
Complete auth by phone.
Complete auth by phone .
&self
device_id
&str
session_id
&str
operation_ticket
&str
sms_code
&str
&self
device_id
&str
session_id
&str
operation_ticket
&str
sms_code
&str