[][src]Struct mailchimp::Campaigns

pub struct Campaigns { /* fields omitted */ }

Implement Mailchimp Campaigns Endpoint

Campaigns are how you send emails to your Mailchimp list. Use the Campaigns API calls to manage campaigns in your Mailchimp account.

Methods

impl Campaigns[src]

pub fn new(api: MailchimpApi) -> Self[src]

mentos: api: MailchimpApi

pub fn get_campaign_info<'a>(
    &self,
    campaign_id: &'a str,
    filters: HashMap<String, String>
) -> Result<CampaignType, MailchimpErrorType>
[src]

Get information about a specific list in your Mailchimp account. Results include list members who have signed up but haven’t confirmed their subscription yet and unsubscribed or cleaned.

Argumentos: campaign_id: The unique id for the campaign. filters: Filtros que se requieran aplicar a la hora de obtener las automatizaciones Estos filtros se deben pasar en forma de llave, valor donde las llaves puede ser cualquiera de los siguientes: fields: listado de campos deseados, separados por coma exclude_fields: listado de campos excluidos, separados por coma

pub fn get_campaigns(
    &self,
    filters: Option<&CampaignFilter>
) -> Option<CampaignsType>
[src]

Devuelve información de las listas creadas

Argumentos: filters: Filtros que se requieran aplicar a la hora de obtener las automatizaciones Estos filtros se deben pasar en forma de llave, valor donde las llaves puede ser cualquiera de los siguientes: fields: listado de campos deseados, separados por coma exclude_fields: listado de campos excluidos, separados por coma count: Número de registros a devolver offset: El número de registros de una colección a saltar before_date_created: Restrict response to lists created before the set date. since_date_created: Restrict results to lists created after the set date. before_campaign_last_sent: Restrict results to lists created before the last campaign send date. since_campaign_last_sent: Restrict results to lists created after the last campaign send date. email: Restrict results to lists that include a specific subscriber’s email address. sort_field: Returns files sorted by the specified field. sort_dir: Determines the order direction for sorted results. folder_id: The unique folder id. list_id: The unique id for the list.

Important traits for MalchimpIter<B>
pub fn iter(&self, filters: CampaignFilter) -> MalchimpIter<CampaignsBuilder>[src]

Función para recorrer todas las campañas exitentes. A diferencia de la anterior esta función te devuelve un iterador

Trait Implementations

impl Clone for Campaigns[src]

impl Debug for Campaigns[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.