SevenShores\Hubspot\Resources\ContactLists::create PHP Метод

create() публичный Метод

Create a new contact list.
public create ( array $list ) : Response
$list array Contact list properties.
Результат SevenShores\Hubspot\Http\Response
    function create($list)
    {
        $endpoint = 'https://api.hubapi.com/contacts/v1/lists';
        $options['json'] = $list;
        return $this->client->request('post', $endpoint, $options);
    }