Wang_Jiajun | 2021-11-04 08:56:55 UTC | #1
How can I use [client id & client secret] to generate the access token to access AnalyticsApi . Appreciate if there's any example codes or practice in postman.
Jerome.Saint-Marc | 2021-11-04 09:16:17 UTC | #2
Hello,
The Grant - Client Credentials page explains how to obtain an access token for a Client Credentials Grant flow (at HTTP/API level).
You can also have a look at the Get Number of On-Queue Agents tutorial which leverages a Client Credentials Grant flow and the Analytics API using our SDKs for nodejs/javascript or for python. If your Genesys Cloud org is in mypurecloud.jp, in the nodejs or python tutorial, use apnortheast1 for the region.
You will of course need to create an OAuth client with Grant Type = Client Credentials first.
Regards,
system | 2021-12-05 09:16:51 UTC | #3
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: 12552