Tustin / psn-php

A PHP wrapper for the PSN API
https://tustin.dev/psn-php/
MIT License
353 stars 73 forks source link

Trying to implement API in postman #182

Closed jatinAffinidi closed 3 years ago

jatinAffinidi commented 3 years ago

Hi all, I'm trying to develop this API in my postman but I'm confused at multiple stages and also i wasn't able to find any answer regarding to my problem. so I am putting exact same parameter for authorization from client.php to my postman but I'm confused in the grant_type param, in postman there is no option like sso_cookie, so how do i implement this if anyone has solved this help me out or if any one can give implemented postman library it will be great. Thank you

Ragowit commented 3 years ago

In your Body tab, select "x-www-form-urlencoded" and put it in there. "code" should be what you got from the GET result. (This is the POST) image

sso goes into the Headers tab. image

Ragowit commented 3 years ago

I can share the GET as well: image image

In both GET and POST, make sure to disable redirect. (Settings tab) image

jatinAffinidi commented 3 years ago

Thank you @Ragowit, for your help. Everything is working now but on making the GET request I'm getting 302 response. I am getting the code in the response header. Also do you know any process to get npsso token by making api call?

Ragowit commented 3 years ago

No, but it's easily readable here once logged in: https://ca.account.sony.com/api/v1/ssocookie

jatinAffinidi commented 3 years ago

yeah thank you so much @Ragowit