Author: mrabd423

Add contact in a list of SendGrid via API

Following script will add the contact in to the sendgrid list. $ListId = 'YOUR-LIST-ID'; $reciepent_id = 'YOUR-CONTACT-ID'; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.sendgrid.com/v3/contactdb/lists/".$ListId."/recipients/".$reciepent_id, CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => …

Add contact in SendGrid via API

Following curl script will add the contact in your send grid via API. $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_URL => "https://api.sendgrid.com/v3/contactdb/recipients", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, …