Using the endpoint users under Intercom API 2.0 (2020-01-30) gets a version invalid response. Downgrading the API version to 1.4 solves the issue.
Version info
- intercom-go version: 2.0.0
- Go version: 1.13.5
Expected behavior
User.FindByEmail should return an Intercom user by given email
Actual behavior
HTTP code 400 with the message: intercom_version_invalid, Requested resource is not available in current API version
Steps to reproduce
- Initiate a new Intercom client
intercom.NewClient(token, "")
- Call
ic.Users.FindByEmail(email)
- A 400 error is returned with the message
intercom_version_invalid, Requested resource is not available in current API version
Logs
Using the endpoint
usersunder Intercom API 2.0 (2020-01-30) gets a version invalid response. Downgrading the API version to 1.4 solves the issue.Version info
Expected behavior
User.FindByEmailshould return an Intercom user by given emailActual behavior
HTTP code 400 with the message:
intercom_version_invalid, Requested resource is not available in current API versionSteps to reproduce
intercom.NewClient(token, "")ic.Users.FindByEmail(email)intercom_version_invalid, Requested resource is not available in current API versionLogs