your Code is exactly what i need, but i Got the error "ResourceNotFound: The requested resource does not exist; check your path and try again"
And I tried to change the API version from intercom, if i change it to 1.0 and regenerate the access token I don't get any error but the output file contains only headers and email addresses I gave it in the beginning.
Is there anything else I should do?