Tustin / psn-php

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

How can npCommunicationId map to titleId? #215

Closed Asteroidxx closed 2 years ago

Asteroidxx commented 2 years 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 2 years 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 2 years 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!