SevenShores\Hubspot\Resources\Contacts::createOrUpdateBatch PHP Method

createOrUpdateBatch() public method

public createOrUpdateBatch ( array $contacts ) : Response
$contacts array The contacts and properties.
return SevenShores\Hubspot\Http\Response
    function createOrUpdateBatch($contacts)
    {
        $endpoint = "https://api.hubapi.com/contacts/v1/contact/batch";
        $options['json'] = $contacts;
        return $this->client->request('post', $endpoint, $options);
    }