Created
October 16, 2015 19:10
-
-
Save thinkingserious/ccbc7359b0cb16a4cace to your computer and use it in GitHub Desktop.
SendGrid PHP v3 ASM Suppressions DELETE Example
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 | |
require 'vendor/autoload.php'; | |
Dotenv::load(__DIR__); | |
$sendgrid_apikey = getenv('SG_KEY'); | |
$sendgrid = new Client($sendgrid_apikey); | |
$group_id = 70; | |
$email = 'elmer.thomas+test1@gmail.com'; | |
$response = $sendgrid->asm_suppressions->delete($group_id, $email); | |
print("Status Code: " . $response->getStatusCode() . "\n"); | |
print("Body: " . $response->getBody() . "\n"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment