Legacy Dev Forum Posts

 View Only

Sign Up

Oauth development implicit web

  • 1.  Oauth development implicit web

    Posted 06-05-2025 18:17

    kike_zelenza | 2020-08-06 19:10:52 UTC | #1

    Good afternoon,

    I'm making a development through implicit token on the web, I would like to know if there is some kind of manual to extract data from analysis by api. I'm developing it in javascript.

    Greetings


    tim.smith | 2020-08-06 19:11:26 UTC | #2

    See the Analytics APIs documentation. There are several guides covering different use cases. The Analytics Query Builder is also a useful tool.


    kike_zelenza | 2020-08-07 06:02:31 UTC | #3

    thank you very much, on the other hand I need to export the performance report --> queues, in the part of abandonment metrics of 5 seconds, 10 seconds etc.. I need to get that report by api, would it be possible?

    Thanks


    tim.smith | 2020-08-11 12:20:11 UTC | #4

    You can export the UI reports using POST /api/v2/analytics/reporting/exports. See notes about that here: https://developer.mypurecloud.com/api/rest/v2/analytics/exports.html


    kike_zelenza | 2020-08-20 10:51:24 UTC | #5

    Good afternoon,

    We cannot find the correct api to be able to extract the abandonment time of 5 to 10 seconds, from 10 to 15 ect, can you be a little more specific?

    Regards


    Richard_Chandler | 2020-08-24 14:57:11 UTC | #6

    You need to use the Conversations API to get the metrics shown in the Abandon detail View from the Queues view.

    An example of the POST to /api/v2/analytics/conversations/aggregates/query is below. Views are used to create the thresholds for metrics used.

    {
     "interval": "2020-07-31T23:00:00.000Z/2020-08-24T23:00:00.000Z",
     "groupBy": [
      "queueId"
     ],
     "views": [
      {
       "name": "Abandon0-5",
       "target": "tAbandon",
       "function": "rangeBound",
       "range": {
        "gte": "0",
        "lt": "5000"
       }
      },
      {
       "name": "Abandon5-10",
       "target": "tAbandon",
       "function": "rangeBound",
       "range": {
        "gte": "5001",
        "lt": "10000"
       }
      }
     ],
     "metrics": [
      "tAbandon"
     ]
    }

    kike_zelenza | 2020-08-25 05:59:10 UTC | #7

    Richard_Chandler, post:6, topic:8502
    POST a / api / v2 / analytics / conversations / aggregates / query

    Thank you very much, I have another query when I extract with the api POST a / api / v2 / analytics / conversations / aggregates / query, it exports me conversationId duplicates, this behavior is normal?

    I have checked that it is not a graphical view error, since I extract it first by var_dump().

    A greeting


    kike_zelenza | 2020-08-25 06:01:47 UTC | #8

    example query:

    ``` { "interval": "2020-08-24T22:00:00.000Z/2020-08-25T22:00:00.000Z", "groupBy": [ "queueId", "addressFrom", "addressTo", "ani", "conversationId", "convertedFrom", "convertedTo", "direction", "dnis", "interactionType", "mediaCount", "mediaType", "userId", "wrapUpCode" ], "views": [ { "name": "name1", "target": "tAbandon", "function": "rangeBound", "range": { "gte": 0, "lt": "5000" } }, { "name": "name2", "target": "tAbandon", "function": "rangeBound", "range": { "gte": "5001", "lt": "10000" } } ], "metrics": [ "tAbandon", "nBlindTransferred", "nOffered", "nTransferred", "tAcd", "tAcw", "tAgentResponseTime", "tAnswered", "tContacting", "tHandle", "tHeld", "tHeldComplete", "tNotResponding", "tShortAbandon", "tTalk", "tTalkComplete", "tWait" ] }


    tim.smith | 2020-08-27 17:06:50 UTC | #9

    kike_zelenza, post:7, topic:8502
    when I extract with the api POST a / api / v2 / analytics / conversations / aggregates / query, it exports me conversationId duplicates, this behavior is normal?

    Probably, based on your group by clause. I would expect each conversation to be present in multiple groupings, but not duplications of the exact same groupings for a single conversation.


    kike_zelenza | 2020-08-28 07:55:05 UTC | #10

    But it is normal to duplicate the ani and the conversationID, I don't think that is the usual behavior.

    Regards,


    system | 2020-09-28 07:55:05 UTC | #11

    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: 8502