My App is supposed to allow the user to send pre-defined text blocks (quiz questions) to the chat. So I suppose I have to use the “zoomSdk.composeCard” method. When I use the example from the docs
I would assume that it is similar to the encryption used by the App Context - which uses the apps secret key. But I would not recommend putting the secret key in the client side code in a prod environment. If it is that then I would suggest that you do the encryption in the app server and provide a endpoint the client can use.
I think I have to give up on this for the time coming. The documentation on this topic is too incomplete. The error message doesn’t give any precise hint which part of the options is wrong, and I’m stabbing around in the dark.
What format should the timestamp be in? Epoch, ISO, …?
How to calculate the signature? “HMAC of the message” is not very precise. Why do I need to calculate the signature myself, can’t it be done by the SDK?
As Henry said, can somebody of the Zoom team clarify the situation?
Hi @ojus.zoom, thank you for providing the API format, however it is still not sufficient to utilize this API method. We have made countless attempts and always receive the “Error: Validation error, please check API parameters.” error, which is too vague to be helpful.
How is the signature generated? The documentation states that it is the HMAC of the message, yet the description for the timestamp field says it is
timestamp used to generate signature
We have tried many combinations of using the secret, message, and timestamp to create the signature, to no avail. This really needs to be clarified. Could you please provide some sort of example to use as a baseline?
Additionally, what is the expected format for the timestamp?
We need these additional details in order to use the API. Thank you.
Looking through the “In-Client Features” I found an API method called
"composeText - Set the composed text in the compose box"
That sounds even more like the function that I’m looking for. Unfortunately, I couldn’t find any documentation. It’s not even available in the newest SDK implementation (v0.16.13).