/var/www/hkosl.com/demo_google/application/vendor/sendgrid/sendgrid/examples/scopes/scopes.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
// If you are using Composer
require 'vendor/autoload.php';


$apiKey getenv('SENDGRID_API_KEY');
$sg = new \SendGrid($apiKey);

////////////////////////////////////////////////////
// Retrieve a list of scopes for which this user has access. #
// GET /scopes #

$response $sg->client->scopes()->get();
echo 
$response->statusCode();
echo 
$response->body();
print_r($response->headers());