pub struct ConnectorClient { /* private fields */ }Implementations§
Source§impl ConnectorClient
impl ConnectorClient
pub fn with_api_key(host: &str, api_key: &str, api_secret: &str) -> Self
pub fn new(host: &str) -> ServiceResult<Self>
Sourcepub async fn dial_whatsapp_call(
&self,
phone_number_id: impl Into<String>,
to_phone_number: impl Into<String>,
api_key: impl Into<String>,
cloud_api_version: impl Into<String>,
options: DialWhatsAppCallOptions,
) -> ServiceResult<DialWhatsAppCallResponse>
pub async fn dial_whatsapp_call( &self, phone_number_id: impl Into<String>, to_phone_number: impl Into<String>, api_key: impl Into<String>, cloud_api_version: impl Into<String>, options: DialWhatsAppCallOptions, ) -> ServiceResult<DialWhatsAppCallResponse>
Dials a WhatsApp call
§Arguments
phone_number_id- The identifier of the number for business initiating the callto_phone_number- The number of the user that should receive the callapi_key- The API key of the business initiating the callcloud_api_version- WhatsApp Cloud API version (e.g., “23.0”, “24.0”)options- Additional options for the call
§Returns
Information about the dialed call including the WhatsApp call ID and room name
Sourcepub async fn disconnect_whatsapp_call(
&self,
call_id: impl Into<String>,
api_key: impl Into<String>,
) -> ServiceResult<DisconnectWhatsAppCallResponse>
pub async fn disconnect_whatsapp_call( &self, call_id: impl Into<String>, api_key: impl Into<String>, ) -> ServiceResult<DisconnectWhatsAppCallResponse>
Sourcepub async fn connect_whatsapp_call(
&self,
call_id: impl Into<String>,
sdp: SessionDescription,
) -> ServiceResult<ConnectWhatsAppCallResponse>
pub async fn connect_whatsapp_call( &self, call_id: impl Into<String>, sdp: SessionDescription, ) -> ServiceResult<ConnectWhatsAppCallResponse>
Sourcepub async fn accept_whatsapp_call(
&self,
phone_number_id: impl Into<String>,
api_key: impl Into<String>,
cloud_api_version: impl Into<String>,
call_id: impl Into<String>,
sdp: SessionDescription,
options: AcceptWhatsAppCallOptions,
) -> ServiceResult<AcceptWhatsAppCallResponse>
pub async fn accept_whatsapp_call( &self, phone_number_id: impl Into<String>, api_key: impl Into<String>, cloud_api_version: impl Into<String>, call_id: impl Into<String>, sdp: SessionDescription, options: AcceptWhatsAppCallOptions, ) -> ServiceResult<AcceptWhatsAppCallResponse>
Accepts an incoming WhatsApp call
§Arguments
phone_number_id- The identifier of the number for business initiating the callapi_key- The API key of the business connecting the callcloud_api_version- WhatsApp Cloud API version (e.g., “23.0”, “24.0”)call_id- Call ID sent by Metasdp- The SDP from Meta (for user-initiated call)options- Additional options for the call
§Returns
Information about the accepted call including the room name
Sourcepub async fn connect_twilio_call(
&self,
direction: TwilioCallDirection,
room_name: impl Into<String>,
options: ConnectTwilioCallOptions,
) -> ServiceResult<ConnectTwilioCallResponse>
pub async fn connect_twilio_call( &self, direction: TwilioCallDirection, room_name: impl Into<String>, options: ConnectTwilioCallOptions, ) -> ServiceResult<ConnectTwilioCallResponse>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConnectorClient
impl !RefUnwindSafe for ConnectorClient
impl Send for ConnectorClient
impl Sync for ConnectorClient
impl Unpin for ConnectorClient
impl !UnwindSafe for ConnectorClient
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