Legacy Dev Forum Posts

 View Only

Sign Up

  • 1.  Get CallBack Time

    Posted 06-05-2025 18:01

    Herlander_Pires | 2017-09-13 14:50:05 UTC | #1

    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: <img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/33f14f54f2d8c0d7c0fc1c020e769b4ab7243ef0.png" width="240" height="200">

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

    Thanks, Herlander Pires


    tim.smith | 2017-09-14 21:10:55 UTC | #2

    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


    Herlander_Pires | 2017-09-14 08:46:11 UTC | #3

    Thanks,

    Best regards.

    Herlander Pires


    system | 2017-10-15 08:46:57 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 1791