Skip to content

Instantly share code, notes, and snippets.

View rdbinteractive's full-sized avatar

Robert Bardall rdbinteractive

View GitHub Profile
@rdbinteractive
rdbinteractive / mailchimp.php
Created July 1, 2019 17:25 — forked from toledox82/mailchimp.php
PHP cURL function to add subscriber to MailChimp API 3.0
<?php
$data = [
'email' => $email,
'status' => 'subscribed',
'firstname' => $fname,
'lastname' => $lname
];
function syncMailchimp($data) {
$apiKey = 'XXX';