andshrew / PlayStation-Trophies

Sony has an API for retrieving details of the trophies an account has earned, but there is no public documentation for using it. This is an attempt at documenting the API by capturing the requests made by the https://my.playstation.com web site.
MIT License
104 stars 4 forks source link

Unable to retrieve API token #7

Closed ivevasiljevic closed 3 years ago

ivevasiljevic commented 3 years ago

Greetings,

I am trying to get my API token to test some of the endpoints, but I am unable to do it. I followed all the steps from this link https://andshrew.github.io/PlayStation-Trophies/#/APIv2?id=obtaining-an-authentication-token

But powershell is giving me the following error:

Error: Check npsso Cannot index into a null array. At line:22 char:1

Error: Unable to obtain Authentication Token

andshrew commented 3 years ago

Hi @ivevasiljevic

Can you check what version of Powershell you are using by typing $PSVersionTable.

I've only tested it with version 7, but it does not work with version 5 (the version included with Windows 10).

You can download version 7 here: https://github.com/PowerShell/PowerShell#get-powershell

ivevasiljevic commented 3 years ago

Yep, it works with the updated version. Thanks!