Get CallBack Time

Hello,

I'm trying to get the callback time like you have in the site.
But the only time i have in the get callback method start 10 seconds before the one that shows in the webpage.

Example:

"connectedTime": "2017-09-13T14:04:59.637Z",

Thanks,
Herlander Pires

This is probably because you're not adjusting for clock skew, but the client is. You can make an authenticated request to https://api.mypurecloud.com/api/v2/date to get the current server time and adjust your calculations accordingly.

Edit: this is now documented here: https://developer.mypurecloud.com/api/rest/tips/index.html#9

Thanks,

Best regards.

Herlander Pires

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