This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$api_key = 'YOUR API KEY'; | |
$list_id = 'YOUR LIST ID'; | |
$dc = substr($api_key,strpos($api_key,'-')+1); // us5, us8 etc | |
$args = array( | |
'headers' => array( | |
'Authorization' => 'Basic ' . base64_encode( 'user:'. $api_key ) | |
) | |
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Enter MailChimp API key and List Id. | |
$api_key = 'YOUR API KEY'; | |
$list_id = 'YOUR LIST ID'; | |
$dc = substr($api_key,strpos($api_key,'-')+1); // datacenter, it is the part of your api key - us5, us8 etc | |
$args = array( | |
'headers' => array( | |
'Authorization' => 'Basic ' . base64_encode( 'user:'. $api_key ) |
NewerOlder