Anil_Kumar | 2017-01-21 12:17:19 UTC | #1
I wanted to get the data from pure cloud where i am using implicit grant. In that i have to login to pure cloud and then it will generate the Bearer Token then i am able to call the different Api. In that i do not want to do login manually,it it should be automatically without coming the purecloud login page. So please guide me in brief.
KevinGlinski | 2017-01-21 22:28:51 UTC | #2
what you want is probably the Client credentials grant
Anil_Kumar | 2017-01-22 04:59:27 UTC | #3
I want to retrieve the data using Analytics,User,Routing API's to get the call report.Is it possible to get the values from those API with only client credentials? I had used client credentials but in the response I get the error as "Not Authorized". I request you to kindly suggest me which authentication to be used without login prompt to get data from above mentioned API's.
KevinGlinski | 2017-01-23 14:15:57 UTC | #4
a 403 means the client credentials weren't given a role that allows them to access those endpoints
Anil_Kumar | 2017-01-24 04:42:55 UTC | #5
Can you please provide the information on what all roles has to be assigned to the client credentials to get the values from Analytics,User,Routing API.
tim.smith | 2017-01-24 15:28:13 UTC | #6
We're working on getting the permissions documented on the dev center. In the meantime, there are two ways you can determine what permissions you'll need:
- 403 responses should generally contain the permission that you're missing in the error message.
- Look at the permissions documented in the API's swagger doc. The
x-inin-requires-permissions attribute on a resource describes the permissions it requires. Below is one example (some elements removed for brevity):
{
"/api/v2/analytics/evaluations/aggregates/query": {
"post": {
"tags": [],
"summary": "Query for evaluation aggregates",
"description": "",
"operationId": "postAnalyticsEvaluationsAggregatesQuery",
"produces": [],
"parameters": [],
"responses": {},
"security": [],
"x-inin-requires-permissions": {
"type": "ANY",
"permissions": [
"analytics:evaluationAggregate:view"
]
},
"x-inin-method-name": "postEvaluationsAggregatesQuery"
}
}
}
system | 2017-08-28 19:31:01 UTC | #7
This post was migrated from the old Developer Forum.
ref: 823