Created
July 10, 2009 17:32
-
-
Save streamsend/144646 to your computer and use it in GitHub Desktop.
How to fetch all lists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <? | |
| // 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