Skip to content

Instantly share code, notes, and snippets.

@streamsend
streamsend / gist:439378
Created June 15, 2010 17:01
How to parse headers from a CURL response
<?
class CurlResponse
{
var $headers = array();
function CurlResponse () {}
function parse_header ($handle, $header)
@streamsend
streamsend / import.php
Created July 17, 2009 17:04
How to upload and import a lot of people at once
<?
// Load the PHP API library.
require_once 'streamsend-php/src/streamsend.php';
// Replace these with your actual API Login ID (username) and Key (password).
// Refer to http://app.streamsend.com/docs/api/index.html for more information.
define('STREAMSEND_USERNAME', 'abc');
define('STREAMSEND_PASSWORD', '123');
@streamsend
streamsend / lists.php
Created July 10, 2009 17:32
How to fetch all lists
<?
// Load the PHP API library.
require_once 'streamsend-php/src/streamsend.php';
// Replace these with your actual API Login ID (username) and Key (password).
// Refer to http://app.streamsend.com/docs/api/index.html for more information.
define('STREAMSEND_USERNAME', 'abc');
define('STREAMSEND_PASSWORD', '123');