Closed Sakreetos closed 1 year ago
I don't know what $me
is, have you used $client->users()->find('your id number')
on it?
Also, what version of psn-php are you using?
Thank you. I was using the wrong approach.
Here is the working solution
foreach ($client->users()->search('xxxxx') as $user) {
$games = $user->trophyTitles();
foreach ($games as $game) {
if ($game->hasTrophies()) {
$trophyGroups = $game->trophyGroups();
foreach ($trophyGroups as $trophyGroup) {
foreach ($trophyGroup->trophies() as $trophy) {
$test1 = $trophy->earned();
}
}
}
}
}
Hello. I am able to get trophies lists for every user title but there is no "earned" info.
Here is what I am doing: