Struct mailchimp_api::connected_sites::ConnectedSites
source · pub struct ConnectedSites {
pub client: Client,
}
Fields
client: Client
Implementations
sourceimpl ConnectedSites
impl ConnectedSites
sourcepub async fn get(
&self,
fields: &[String],
exclude_fields: &[String],
count: i64,
offset: i64
) -> Result<ConnectedSites>
pub async fn get(
&self,
fields: &[String],
exclude_fields: &[String],
count: i64,
offset: i64
) -> Result<ConnectedSites>
List connected sites.
This function performs a GET
to the /connected-sites
endpoint.
Get all connected sites in an account.
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.
sourcepub async fn post(&self, body: &ConnectedSite) -> Result<Sites>
pub async fn post(&self, body: &ConnectedSite) -> Result<Sites>
Add connected site.
This function performs a POST
to the /connected-sites
endpoint.
Create a new Mailchimp connected site.
sourcepub async fn get_connected_sites(
&self,
fields: &[String],
exclude_fields: &[String],
connected_site_id: &str
) -> Result<Sites>
pub async fn get_connected_sites(
&self,
fields: &[String],
exclude_fields: &[String],
connected_site_id: &str
) -> Result<Sites>
Get connected site.
This function performs a GET
to the /connected-sites/{connected_site_id}
endpoint.
Get information about a specific connected site.
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.connected_site_id: &str
– The unique identifier for the site.
sourcepub async fn delete(&self, connected_site_id: &str) -> Result<()>
pub async fn delete(&self, connected_site_id: &str) -> Result<()>
Delete connected site.
This function performs a DELETE
to the /connected-sites/{connected_site_id}
endpoint.
Remove a connected site from your Mailchimp account.
Parameters:
connected_site_id: &str
– The unique identifier for the site.
sourcepub async fn post_actions_verify_script_installation(
&self,
connected_site_id: &str
) -> Result<()>
pub async fn post_actions_verify_script_installation(
&self,
connected_site_id: &str
) -> Result<()>
Verify connected site script.
This function performs a POST
to the /connected-sites/{connected_site_id}/actions/verify-script-installation
endpoint.
Verify that the connected sites script has been installed, either via the script URL or fragment.
Parameters:
connected_site_id: &str
– The unique identifier for the site.