Created
October 16, 2015 15:32
-
-
Save thinkingserious/b0996cd929a5232e8c35 to your computer and use it in GitHub Desktop.
SendGrid PHP v3 ASM Groups GET 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'; | |
require 'lib/SendGrid.php'; | |
require 'lib/Client.php'; | |
Dotenv::load(__DIR__); | |
$sendgrid_apikey = getenv('SG_KEY'); | |
$sendgrid = new Client($sendgrid_apikey); | |
$response = $sendgrid->asm_groups->get(); | |
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