pub struct ILinkClient { /* private fields */ }Expand description
Low-level iLink API client.
Implementations§
Source§impl ILinkClient
impl ILinkClient
pub fn new() -> Self
pub fn with_options(options: ILinkClientOptions) -> Self
pub fn with_http_client(http: Client) -> Self
pub fn with_http_client_and_options( http: Client, options: ILinkClientOptions, ) -> Self
pub async fn get_qr_code(&self, base_url: &str) -> Result<QrCodeResponse>
pub async fn get_qr_code_with_local_tokens( &self, base_url: &str, local_token_list: &[String], ) -> Result<QrCodeResponse>
pub async fn poll_qr_status( &self, base_url: &str, qrcode: &str, ) -> Result<QrStatusResponse>
pub async fn poll_qr_status_with_verify_code( &self, base_url: &str, qrcode: &str, verify_code: Option<&str>, ) -> Result<QrStatusResponse>
pub async fn get_updates( &self, base_url: &str, token: &str, cursor: &str, ) -> Result<GetUpdatesResponse>
pub async fn send_message( &self, base_url: &str, token: &str, msg: &Value, ) -> Result<()>
pub async fn get_config( &self, base_url: &str, token: &str, user_id: &str, context_token: &str, ) -> Result<GetConfigResponse>
pub async fn send_typing( &self, base_url: &str, token: &str, user_id: &str, ticket: &str, status: i32, ) -> Result<()>
pub async fn notify_start( &self, base_url: &str, token: &str, ) -> Result<NotifyStartResponse>
pub async fn notify_stop( &self, base_url: &str, token: &str, ) -> Result<NotifyStopResponse>
Source§impl ILinkClient
impl ILinkClient
Sourcepub async fn get_upload_url(
&self,
base_url: &str,
token: &str,
params: &GetUploadUrlParams,
) -> Result<GetUploadUrlResponse>
pub async fn get_upload_url( &self, base_url: &str, token: &str, params: &GetUploadUrlParams, ) -> Result<GetUploadUrlResponse>
Get a pre-signed CDN upload URL.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ILinkClient
impl !RefUnwindSafe for ILinkClient
impl Send for ILinkClient
impl Sync for ILinkClient
impl Unpin for ILinkClient
impl UnsafeUnpin for ILinkClient
impl !UnwindSafe for ILinkClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more