function createOrUpdateBatch($contacts) { $endpoint = "https://api.hubapi.com/contacts/v1/contact/batch"; $options['json'] = $contacts; return $this->client->request('post', $endpoint, $options); }