pub struct Conversations {
    pub client: Client,
}

Fields

client: Client

Implementations

List conversations.

This function performs a GET to the /conversations endpoint.

Get a list of conversations for the account. Conversations has been deprecated in favor of Inbox and these endpoints don’t include Inbox data. Past Conversations are still available via this endpoint, but new campaign replies and other Inbox messages aren’t available using this endpoint.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • has_unread_messages: crate::types::IsRead – Whether a conversation message has been marked as read.
  • list_id: &str – The unique id for the list.
  • campaign_id: &str – The unique id for the campaign.

Get conversation.

This function performs a GET to the /conversations/{conversation_id} endpoint.

Get details about an individual conversation. Conversations has been deprecated in favor of Inbox and these endpoints don’t include Inbox data. Past Conversations are still available via this endpoint, but new campaign replies and other Inbox messages aren’t available using this endpoint.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • conversation_id: &str – The unique id for the conversation.

List messages.

This function performs a GET to the /conversations/{conversation_id}/messages endpoint.

Get messages from a specific conversation. Conversations has been deprecated in favor of Inbox and these endpoints don’t include Inbox data. Past Conversations are still available via this endpoint, but new campaign replies and other Inbox messages aren’t available using this endpoint.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • conversation_id: &str – The unique id for the conversation.
  • is_read: crate::types::IsRead – Whether a conversation message has been marked as read.
  • before_timestamp: chrono::DateTime<chrono::Utc> – Restrict the response to messages created before the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • since_timestamp: chrono::DateTime<chrono::Utc> – Restrict the response to messages created after the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Get message.

This function performs a GET to the /conversations/{conversation_id}/messages/{message_id} endpoint.

Get an individual message in a conversation. Conversations has been deprecated in favor of Inbox and these endpoints don’t include Inbox data. Past Conversations are still available via this endpoint, but new campaign replies and other Inbox messages aren’t available using this endpoint.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • conversation_id: &str – The unique id for the conversation.
  • message_id: &str – The unique id for the conversation message.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more