SevenShores\Hubspot\Resources\ContactLists::removeContact PHP Method

removeContact() public method

Remove a contact from a list.
public removeContact ( integer $list_id, array $contact_ids ) : Response
$list_id integer
$contact_ids array
return SevenShores\Hubspot\Http\Response
    function removeContact($list_id, $contact_ids)
    {
        $endpoint = "https://api.hubapi.com/contacts/v1/lists/{$list_id}/remove";
        $options['json'] = ['vids' => $contact_ids];
        return $this->client->request('post', $endpoint, $options);
    }