Details |
Last modification |
View Log
| RSS feed
Rev |
Author |
Line No. |
Line |
103 |
- |
1 |
<?php
|
|
|
2 |
// If you are using Composer
|
|
|
3 |
require 'vendor/autoload.php';
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
$apiKey = getenv('SENDGRID_API_KEY');
|
|
|
7 |
$sg = new \SendGrid($apiKey);
|
|
|
8 |
|
|
|
9 |
////////////////////////////////////////////////////
|
|
|
10 |
// Retrieve a list of scopes for which this user has access. #
|
|
|
11 |
// GET /scopes #
|
|
|
12 |
|
|
|
13 |
$response = $sg->client->scopes()->get();
|
|
|
14 |
echo $response->statusCode();
|
|
|
15 |
echo $response->body();
|
|
|
16 |
echo $response->headers();
|