Watchlists cannot be created or removed using the API, only retrieved. Thus, you must set up a watchlist via the Simpy web site prior to attempting to access it using the API.
Example 821. Retrieving Watchlists
<?php
$simpy = new Zend_Service_Simpy('yourusername', 'yourpassword');
/* Get a list of all watchlists */
$watchlistSet = $simpy->getWatchlists();
/* Display data for each watchlist */
foreach ($watchlistSet as $watchlist) {
echo $watchlist->getId();
echo '<br />';
echo $watchlist->getName();
echo '<br />';
echo $watchlist->getDescription();
echo '<br />';
echo $watchlist->getAddDate();
echo '<br />';
echo $watchlist->getNewLinks();
echo '<br />';
foreach ($watchlist->getUsers() as $user) {
echo $user;
echo '<br />';
}
foreach ($watchlist->getFilters() as $filter) {
echo $filter->getName();
echo '<br />';
echo $filter->getQuery();
echo '<br />';
}
}
/* Get an individual watchlist by its identifier */
$watchlist = $simpy->getWatchlist($watchlist->getId());
$watchlist = $simpy->getWatchlist(1);




