Skip to content

Instantly share code, notes, and snippets.

@streamsend
Created July 10, 2009 17:32
Show Gist options
  • Select an option

  • Save streamsend/144646 to your computer and use it in GitHub Desktop.

Select an option

Save streamsend/144646 to your computer and use it in GitHub Desktop.
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');
// Fetch our audience. (We only have one.)
$audience = SSAudience::find('first');
// Fetch all the lists for the audience.
$lists = SSList::find('all', array('audience_id' => $audience->id()));
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment