psn-php
psn-php copied to clipboard
Search for a specific game of a user by npCommunicationId() instead of the name
Hello, I would like to know if the API has the possibility to search for a specific game of a user since the given method of the API by name is not exact when searching for a game and may return several:
$user = $Client->users()->find('4352824381498132139');
foreach ($user->trophyTitles()->withName('RESIDENT EVIL') as $game) {
echo($game->name()."<br>");
echo($game->iconUrl()."<br>");
}
I want it to return only the game Resident Evil, and not all that contain Resident Evil in their name, any ideas or solutions?
@Ragowit any idea about this?
Thank you very much.