get - Check whether email is subscribed to list in MailChimp API 3.0 using PHP -
i've read following on mailchimp website: mailchimp api v3.0 live! prior versions no longer supported after 2016, api users should begin transitioning v3.0. as result, move v3.0 of api. please have function, in php, returns boolean, check whether email address subscribed specific mailchimp list. not want subscribe user, merely check whether subscribed or not. looking @ mailchimp documentation , assuming have given list in mind, looks call endpoint get: /lists/{list_id}/members/{subscriber_hash} to in php, found nice script sitting on github . last function trick you: function mc_checklist($email, $debug, $apikey, $listid, $server) { $userid = md5($email); $auth = base64_encode( 'user:'. $apikey ); $data = array( 'apikey' => $apikey, 'email_address' => $email ); $json_data = json_encode($data); $ch = curl_init(); curl_setopt($ch, curlopt_url, 'https://'.$server....