This example uses cURL with PHP through our web API to send an email.
<?php $url = 'http://sendgrid.com/';
$user = 'USERNAME';
$pass = 'PASSWORD';
$params = array(
'api_user' => $user,
'api_key' => $pass,| var request = require('request'); | |
| var unzip = require('unzip'); | |
| var csv2 = require('csv2'); | |
| request.get('http://s3.amazonaws.com/alexa-static/top-1m.csv.zip') | |
| .pipe(unzip.Parse()) | |
| .on('entry', function (entry) { | |
| entry.pipe(csv2()).on('data', console.log); | |
| }) | |
| ; |
| <?php return array ( | |
| 'url' => 'https://xaviesteve.com/', | |
| 'content' => '<!doctype html><html>...</html>', | |
| 'cookies' => '__cfduid=d3fa669e1069e72c2e47d127ab9b8e11f1465390629', | |
| 'http_code' => 200, | |
| 'content_type' => 'text/html; charset=UTF-8', | |
| 'header_size' => 578, | |
| 'request_size' => 229, | |
| 'filetime' => -1, | |
| 'ssl_verify_result' => 0, |
This example uses cURL with PHP through our web API to send an email.
<?php $url = 'http://sendgrid.com/';
$user = 'USERNAME';
$pass = 'PASSWORD';
$params = array(
'api_user' => $user,
'api_key' => $pass,| <?php | |
| /** | |
| * Split PDF file | |
| * | |
| * <p>Split all of the pages from a larger PDF files into | |
| * single-page PDF files.</p> | |
| * | |
| * @package FPDF required http://www.fpdf.org/ | |
| * @package FPDI required http://www.setasign.de/products/pdf-php-solutions/fpdi/ |
Here are a list of headless browsers that I know about: