/
var
/
www
/
doncode.com.ua
/
www
/
lib
/
sendgrid
/
lib
/
/var/www/doncode.com.ua/www/lib/sendgrid/lib
mkdir
upload
Name
Size
Mode
Actions
contacts/
-
0755
rm
eventwebhook/
-
0755
rm
helper/
-
0755
rm
mail/
-
0755
rm
stats/
-
0755
rm
BaseSendGridClientInterface.php
1884
0644
edit
dl
rm
SendGrid.php
740
0644
edit
dl
rm
TwilioEmail.php
848
0644
edit
dl
rm
Edit:
/var/www/doncode.com.ua/www/lib/sendgrid/lib/BaseSendGridClientInterface.php
(1884B)
<?php use SendGrid\Client; use SendGrid\Mail\Mail; use SendGrid\Response; /** * This class is the base interface to the Twilio SendGrid Web API. * * @package SendGrid\Mail */ abstract class BaseSendGridClientInterface { /** @var string SendGrid API library version */ const VERSION = '8.0.1'; /** @var Client SendGrid HTTP Client library */ public $client; /** @var string SendGrid version */ public $version = self::VERSION; /** * Set up the HTTP Client. * * @param string $auth Authorization header value. * @param string $host Default host/base URL for the client. * @param array $options An array of options, currently only "host", "curl", * "version", "verify_ssl", and "impersonateSubuser", * are implemented. */ public function __construct($auth, $host, $options = array()) { $headers = [ $auth, 'User-Agent: sendgrid/' . $this->version . ';php', 'Accept: application/json', ]; $host = isset($options['host']) ? $options['host'] : $host; $version = isset($options['version']) ? $options['version'] : '/v3'; if (!empty($options['impersonateSubuser'])) { $headers[] = 'On-Behalf-Of: ' . $options['impersonateSubuser']; } $this->client = new Client($host, $headers, $version); $this->client->setCurlOptions(isset($options['curl']) ? $options['curl'] : []); $this->client->setVerifySSLCerts(isset($options['verify_ssl']) ? $options['verify_ssl'] : true); } /** * Make an API request. * * @param Mail $email A Mail object, containing the request object * * @return Response */ public function send(Mail $email) { return $this->client->mail()->send()->post($email); } }
Save
cmd:
run