Basic abstraction with Laravel integration for Mailchimp API v3


// Get an array of all available lists: Mailchimp :: getLists (); // Get lists with parameters - get IDs of lists a user is subscribed to: Mailchimp :: getLists ([ 'email' => 'user@example.com' , 'fields' => 'lists.id' ]); // Check to see if an email address is subscribed to a list: Mailchimp :: check ( $ listId , $ emailAddress ); // Returns boolean // Check the staus of a subscriber: Mailchimp :: status ( $ listId , $ emailAddress ); // Returns 'subscribed', 'unsubscribed', 'cleaned', 'pending', 'transactional' or 'not found' // Adds/updates an existing subscriber: Mailchimp :: subscribe ( $ listId , $ emailAddress , $ merge = [], $ confirm = true ); // Use $confirm = false to skip double-opt-in if you already have permission. // This method will update an existing subscriber and will not ask an existing subscriber to re-confirm. // Unsubscribe a member (set status to 'unsubscribed'): Mailchimp :: unsubscribe ( $ listId , $ emailAddress ); // Archive a member (no longer co!
unts towards audience limits): Mailchimp :: archive ( $ listId , $ emailAddress ); // Permanently delete a member record: Mailchimp :: delete ( $ listId , $ emailAddress ); // Use with care: deleted members cannot be re-added without the user subscribing via a Mailchimp-hosted form with double-opt-in confirmation. // Directly call the API: Mailchimp :: api ( $ method , $ endpoint , $ data = []); // Returns an array.

Comentarios

Entradas populares de este blog

Unnofficial Python wrapper for the unite-db.com REST API.

bybit-api