dsouther | 2016-07-07 18:55:21 UTC | #1
In postman I am able to receive an access token that is usable with the python library, but I am not receiving results within Postman. The response section says "Loading..." with no change.
KevinGlinski | 2016-07-08 15:25:07 UTC | #2
There could be a number of things causing this, can you post a screenshot of your postman config (obfuscate the client secret)?
You can follow this tutorial to get a token using the client credentials grant https://developer.mypurecloud.com/api/tutorials/oauth-client-credentials/#python
dsouther | 2016-07-08 20:41:27 UTC | #3
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/acbfb08699d96825635841bde64dea9821b21857.PNG" width="577" height="292">
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/a095133fab13bf21217e7fb33fed805b774a9a82.PNG" width="690" height="393">
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/3f9863cfd27371ecfbbf861631d1933a99beb72c.PNG" width="690" height="128">
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/c6018d2165eb3da49e40596106d387465465edde.PNG" width="690" height="402">
Anything else you want to see?
tim.smith | 2016-07-11 16:27:12 UTC | #4
If you're not getting a response, it's likely that your request URL is incorrect. What is the postman variable environment set to? If you click on the Generate Code link under the save button, you should see this:
<img src="//inin-prod-use1-developerforum.s3.amazonaws.com/original/1X/448a1e7adbba610d0b124fa9a15227bfdde2fffe.png" width="690" height="293">
dsouther | 2016-07-11 16:48:41 UTC | #5
The postman environment is set to Purecloud V2.
POST /api/v2/analytics/conversations/details/query HTTP/1.1 Host: api.mypurecloud.com Authorization: Bearer ------------------------------------------------- Content-Type: application/json Cache-Control: no-cache Postman-Token: ----------------------------------------
{ "interval": "2016-07-05T00:00:00.000Z\/2016-07-06T00:00:00.000Z" }
tim.smith | 2016-07-11 17:12:30 UTC | #6
That looks correct. Given that you can successfully make requests to the Platform API outside of postman, it seems to be an issue with postman itself. You might try turning off interceptor and see if that helps. I've seen bugs and issues people have had before where interceptor was breaking things, though I have it on and postman works without issue.
We don't provide support for Postman here, but you can get help with it from their site: https://github.com/postmanlabs/postman-app-support
KevinGlinski | 2016-07-11 23:33:51 UTC | #7
We are also working on a dev tools app, https://developer.mypurecloud.com/developer-tools/#/api-explorer still a work in progress but should help out in this area. (and we have control over the source in case it doesn't https://github.com/MyPureCloud/developer-tools)
system | 2017-08-28 19:25:12 UTC | #8
This post was migrated from the old Developer Forum.
ref: 124