Access to model objects

Hello,

When i try to instantiate a body like var body = new platformClient.UserPresence();
I got the error Uncaught TypeError: platformClient.UserPresence is not a constructor

In the source code it says in the params @param {module:purecloud-platform-client-v2/model/UserPresence} body User presence

But i can't find that in the JS SDK.

Thank you
Best Regards.

Herlander Pires

Sorry about that. I'll clean up that reference. Models don't exist in the JavaScript SDK because they add several megabytes to the package size and provide virtually no value. To determine the body's schema, look at the API Resources documentation.

Ok

Thanks.
Best regards.

Herlander Pires

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.