Struct zoom_api::chatbot_messages::ChatbotMessages
source · [−]pub struct ChatbotMessages {
pub client: Client,
}Fields
client: ClientImplementations
sourceimpl ChatbotMessages
impl ChatbotMessages
sourcepub async fn sendchatbot(&self, body: &SendchatbotRequest) -> Result<()>
pub async fn sendchatbot(&self, body: &SendchatbotRequest) -> Result<()>
Send chatbot messages.
This function performs a POST to the /im/chat/messages endpoint.
Send chatbot messages from your marketplace chatbot app.
Scopes: imchat:bot
Rate Limit Label: Medium
Authorization Flow: Client Credentials Flow
To get authorized, make a POST request to /oauth/token endpoint with grant type as client_credentials.
Use https://api.zoom.us/oauth/token?grant_type=client_credentials as the endpoint for the request.
You will need to send your ClientID and Secret as a Basic base64 encoded AUthorization header. Ex. Basic base64Encode({client_id}:{client_sceret})
Next, use the token recieved (access_token) as a bearer token while making the POST /im/chat/messages request to send chatbot messages.
Learn more about how to authorize chatbots in the Chatbot Authorization guide.
sourcepub async fn edit(
&self,
message_id: &str,
body: &EditChatbotMessageRequest
) -> Result<EditChatbotMessageResponse>
pub async fn edit(
&self,
message_id: &str,
body: &EditChatbotMessageRequest
) -> Result<EditChatbotMessageResponse>
Edit a chatbot message.
This function performs a PUT to the /im/chat/messages/{message_id} endpoint.
Edit a message that was sent by your Chatbot app.
After sending a message using the Send Chatbot Message API, you must store the messageId returned in the response so that you can make edits to the associated message using this API.
Scope: imchat:bot
Rate Limit Label: Medium
Authorization Flow: Client Credentials Flow
To get authorized, make a POST request to /oauth/token endpoint with grant type as client_credentials.
Use https://api.zoom.us/oauth/token?grant_type=client_credentials as the endpoint for the request.
You will need to send your ClientID and Secret as a Basic base64 encoded AUthorization header. Ex. Basic base64Encode({client_id}:{client_sceret})
Next, use the token received (access_token) as a bearer token while making the PUT /im/chat/messages/{message_id} request to edit a chatbot message.
Learn more about how to authotize chatbots in the Chatbot Authorization guide.
Parameters:
message_id: &str– Unique Identifier of the message that needs to be updated. This should be retrieved from the response of Send Chatbot Message API.
sourcepub async fn delete(
&self,
message_id: &str,
body: &DeleteChatbotMessageRequest
) -> Result<DeleteChatbotMessageResponse>
pub async fn delete(
&self,
message_id: &str,
body: &DeleteChatbotMessageRequest
) -> Result<DeleteChatbotMessageResponse>
Delete a chatbot message.
This function performs a DELETE to the /im/chat/messages/{message_id} endpoint.
Delete a message that was sent by your chatbot app.
Scopes: imchat:bot
Rate Limit Label: Medium
Authorization Flow: Client Credentials Flow
To get authorized, make a POST request to /oauth/token endpoint with grant type as client_credentials.
Use https://api.zoom.us/oauth/token?grant_type=client_credentials as the endpoint for the request.
You will need to send your ClientID and Secret as a Basic base64 encoded AUthorization header. Ex. Basic base64Encode({client_id}:{client_sceret})
Next, use the token received (access_token) as a bearer token while making the DELETE /im/chat/messages/{message_id} request to delete a message.
Learn more about how to authotize chatbots in the Chatbot Authorization guide.
Auto Trait Implementations
impl !RefUnwindSafe for ChatbotMessages
impl Send for ChatbotMessages
impl Sync for ChatbotMessages
impl Unpin for ChatbotMessages
impl !UnwindSafe for ChatbotMessages
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> FutureExt for T
impl<T> FutureExt for T
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more