Author Topic: HTCC StatisticsAPI basics / objectId  (Read 2385 times)

Offline bence.meszaros

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
HTCC StatisticsAPI basics / objectId
« on: May 23, 2018, 09:50:05 AM »
Hello There,

I am trying to invoke  [url=https://docs.genesys.com/Documentation/HTCC/8.5.1/API/StatisticsAPI]https://docs.genesys.com/Documentation/HTCC/8.5.1/API/StatisticsAPI[/url] REST API but I have no idea what objectId is.

"You can use the following request retrieve the most recent statistic values for a specific object ID:
GET api/v1/stats/{objectId}
For example:
GET api/v1/stats/e653a99ae8a74dd5bfb5c7be57bd8c65"

I suspect /api/v1/stats/ should return all object ids but maybe I am wrong.
Currently I get this json back:
{
    "statusCode": 0,
    "totalCount": 0,
    "statistics": {}
}

Could anyone help how to go on please?

Offline cwmunn

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: HTCC StatisticsAPI basics / objectId
« Reply #1 on: June 21, 2018, 04:35:16 PM »
You may have found out elsewhere already but an example of objectId would be the id of a user you want statistics for.

Offline cavagnaro

  • Administrator
  • Hero Member
  • *****
  • Posts: 7639
  • Karma: 56330
Re: HTCC StatisticsAPI basics / objectId
« Reply #2 on: June 21, 2018, 05:14:32 PM »
Database Object ID?

Offline cwmunn

  • Newbie
  • *
  • Posts: 6
  • Karma: 0
Re: HTCC StatisticsAPI basics / objectId
« Reply #3 on: June 21, 2018, 07:08:00 PM »
The id of the user in HTCC. It assigns one separate from the DBID in CME.