-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support sending to the team inbox. #8
Comments
Currently the api does not allow posting to inbox using user authorization, it only works with flow api token. The way to implement this would be to just create a Flow object that works a bit like Session but allows just posting to a flow inbox using flow api token. That said, we're about to release a new version of our message api, so I'd like to postpone this still a bit (I know this was opened in may, sorry about the dealy in reacting!) |
Any updates to this? |
Yeah. We have the new api details available here. Posting is as simple as providing the message and thread payload along with the new data = ... // compose message payload
data["flow_token"] = flowToken
request('/messages', {json: data}, callback) and flow = new Flow(flowToken)
data = ... // compose message payload
flow.inbox(data, callback) is pretty minimal. |
Do you have a complete example on how to post something to the team inbox? |
Create a new method that will post to the team inbox
The text was updated successfully, but these errors were encountered: