sailthru/Sailthru_Client.php
public function saveList($list, $type = null, $primary = null, $query = [ ], $vars = []) {
        $data = [
            'list' => $list,
            'type' => $type,
            'primary' => $primary ? 1 : 0,
            'query' => $query,
            'vars' => $vars,
        ];
        return $this->apiPost('list', $data);
    }
public function saveList($list, $type = null, $primary = null, $query = [ ], $vars = []) {
        $data = [
            'list' => $list,
            'type' => $type,
            'primary' => $primary ? 1 : 0,
            'query' => $query,
            'vars' => $vars,
        ];
        return $this->apiPost('list', $data);
    }
public function saveList ( $ list , $ type = null , $ primary = null , $ query = [ ] , $ vars = [ ] ) { $ data = [ 'list' => $ list , 'type' => $ type , 'primary' => $ primary ? 1 : 0 , 'query' => $ query , 'vars' => $ vars , ] ; return $ this -> apiPost ( 'list' , $ data ) ; }
Create a list, or update a list.

@param string $list
@param string $list
@param string $type
@param bool $primary
@param array $query
@return array
@link http://docs.sailthru.com/api/list
@link http://docs.sailthru.com/api/query
Create a list or update a list .