I have added a webhook to my Box app integration (I followed the instructions from Box on how to do that), but am unsure how to actually instantiate it.
My application is for previewing so the simple flow is you select a file from Box and then my viewer will open it in a pop up. I want my webhook to alert me when a collaborator is added on a file. How does my application do that if it is strictly for previewing? Is there a better way to accomplish what I am trying to do?
On another note, what exactly do the callback parameters "to_user_ids" and "to_user_names" mean? From my understanding, it means if I share my document foo.bar with Joe, then the callback parameters will have Joe's username and Box id included? Please correct me if I am wrong.
Also, I noticed that it looks like you can only add collaborators on folders, not files. Will the webhook pick up on "sharing" of a file?
I hope this makes sense.
Thank you very much!
Please sign in to leave a comment.