intercom-php
intercom-php copied to clipboard
API Should not return 404 on input error
Version info
- intercom-php version: 4.4
- Intercom API version: 2.2
- PHP version:7.4
Expected behavior
400 bad request
Actual behavior
404 not found
Steps to reproduce (as granular as possible, including screenshots where appropriate)
- $this->intercomClient is the intercom/intercom-php client.
- Given:
$this->intercomClient->post('contacts/merge', [
'from' => $fromId,
'to' => $toId,
]);
- I get: EXCEPTION: Not Found 404 Http\Client\Common\Exception\ClientErrorExceptionHeaders: {"Host":["api.intercom.io"],"Accept":["application/json"],"Content-Type":["application/json"],"User-Agent":["Intercom-PHP/4.4.0"],"Intercom-Version":["2.2"],"Authorization":["Bearer xxx"]} https://api.intercom.io/contacts/merge