Genesys CTI User Forum

Genesys CTI User Forum => Genesys-related Development => Topic started by: bence.meszaros on May 23, 2018, 09:50:05 AM

Title: HTCC StatisticsAPI basics / objectId
Post by: bence.meszaros 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?
Title: Re: HTCC StatisticsAPI basics / objectId
Post by: cwmunn 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.
Title: Re: HTCC StatisticsAPI basics / objectId
Post by: cavagnaro on June 21, 2018, 05:14:32 PM
Database Object ID?
Title: Re: HTCC StatisticsAPI basics / objectId
Post by: cwmunn on June 21, 2018, 07:08:00 PM
The id of the user in HTCC. It assigns one separate from the DBID in CME.