'Bearer ' . $api_key, 'User-Agent' => 'sendgrid/' . $this->version . ';php', ); /** * Build Host */ $host = isset( $options['host'] ) ? $options['host'] : 'https://api.sendgrid.com'; $this->client = new Thrive_Dash_Api_SendGrid_Client( $host, $headers, '/v3', null ); } }