For my Messenger-only application, I can’t seem to figure out what the best approach is for the following.
A visitor/user can perform a certain action in my Messenger app’s sheet. Say, rate their happiness (9/10). Now I want to write that rating as a custom_attributes to the user’s object with the Intercom API.
But the Intercom API needs a token to write. Question:
- if I obtain the token from the owner (after app install) can I just save it, and use forever with the API?
- if it does expire, how to request a new token from the owner?
- why not provide API token to the messenger environment?
If not clear enough, let me know.