public function saveList($list, $type = null, $primary = null, $query = []) { $data = ['list' => $list, 'type' => $type, 'primary' => $primary ? 1 : 0, 'query' => $query]; return $this->apiPost('list', $data); }