Create White Board
This API creates new White Board in CometChat for specific User.
Request body
Name | Description | Mandatory |
---|---|---|
action | To create a new white board, pass the value: createwhiteboard |
Yes |
api-key | The API Key present in your CometChat Admin Panel | Yes |
userid | unique user ID | No |
toid | If ‘isgroup’ is ‘0’ than ‘toid’ will be ‘userid’ of the person with who you want to share the whiteboard. If ‘isgroup’ is ‘1’ than ‘toid’ will be Group Id. | No |
isgroup | ‘isgroup’ will be ‘1’ or ‘0’. If ‘isgroup’ is ‘0’ than ‘toid’ will be ‘userid’ of the person with who you want to share the whiteboard or ‘isgroup’ is 1 than passed ‘toid’ will be Group Id. | No |
Response
Success
If api is successfully processed we will get response in below Format.
{“success”:{“status”:”1040″, “whiteboardURL”:"https:\/\/b.chatforyoursite.com\/d\/draw-28efb8abe8092ace82e8482a9135f63e"}}