Tustin / psn-php

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

How can npCommunicationId map to titleId? #215

Closed Asteroidxx closed 1 year ago

Asteroidxx commented 1 year ago

I had get npCommunicationId from request 'api/trophy/v1/users/{accountId}/trophyTitles' and get titleId from request 'api/gamelist/v2/users/{accountId}/titles', but I found they are different. How can I map them? Please!

Ragowit commented 1 year ago

Don't know if you can. The other way around is possible if the current user have a match.

https://github.com/Tustin/psn-php/blob/54444ce0cd8833355801ab95f97e4b4dbab2a027/src/Model/User.php#L73-L94

Asteroidxx commented 1 year ago

Don't know if you can. The other way around is possible if the current user have a match.

https://github.com/Tustin/psn-php/blob/54444ce0cd8833355801ab95f97e4b4dbab2a027/src/Model/User.php#L73-L94 It's useful,really appreciate!