I have tested all 4 wrappers for JavaScript
Library name | Is archived | Last commit | Can log in | Can return trophies | Can read messages | First encountered error |
---|---|---|---|---|---|---|
PSNjs | ✔ | 2015 | ✖ | ? | ? | {"error_code":4151,"error":"unauthorized_client","error_description":"Client does not have grant type: [\"implicit\",\"authorization_code\"]","docs":"http://central-auth.p1-np-eib.prod.navcloud.sonynei.net/docs/#api/centralauthservice/v1/oauth/authorize/get"} |
gumer-psn | ✔ | 2021 | ✖ | ? | ? | {"error":"invalid_request","error_description":"Mandatory parameter 'code' is missing","docs":"https://auth.api.sonyentertainmentnetwork.com/docs/","error_code":4098} |
psn-api | ✖ | 2021 | ✔ | ✖ | ✖ | {"error":{"referenceId":"4941a051-7bb4-11ec-aa64-971307734cc4","code":2240513,"message":"Bad Request (path: sort)"}} |
pxs-psn-api | ✖ | 2020 | ✖ | ? | ? | unauthorized_client |
None of them work and the only one that may work in future is psn-api but it was specifically made for trofies. No python or php compilers to javascript available in our world yet.
My conclusion: it's impossible to make something working with PSN API unless you are really crazy mad man who decided to develop its own wrapper. In this case, please share it to the world or work on psn-api or PSNjs because they are the most promising libraries out there.