apiGet() public method

Perform an API GET request, using the shared-secret auth hash.
public apiGet ( string $action, array $data = [], $method = 'GET', $options = [] ) : array
$action string
$data array
return array
 function get_all_lists()
 {
     require_once 'client/requires.php';
     $client = new Sailthru_Client(get_option('sailthru_api_key'), get_option('sailthru_secret'));
     //@TODO:  need to do an API call here
     //return array('426' => 'test');
     //return array('pheonix', 'seed');
     $lists = $client->apiGet('list', array());
     $list_names = array();
     foreach ($lists as $list) {
         if (is_array($list)) {
             foreach ($list as $list_name) {
                 $list_names[] = $list_name['name'];
             }
         }
     }
     return $list_names;
 }