Tustin / psn-php

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

Trophy EarnedDateTime and Progress can't be retrieved at the same time #250

Open Ragowit opened 1 year ago

Ragowit commented 1 year ago

For some reason, I can't get these two values at once. And which one I get data from is depending on which one gets called first.

$trophy->earnedDateTime(); // Will get me the date
$trophy->progress(); // Always null

Or

$trophy->progress(); // Will get me the progress
$trophy->earnedDateTime(); // Always null
Ragowit commented 1 year ago

I have found a work-around for the time being:

(clone $trophy)->earnedDateTime(); // Will get me the date
$trophy->progress(); // Will also get me the progress
pradella commented 11 months ago

@Ragowit do you know how I get game progress, like this image:

image

Ragowit commented 11 months ago

@pradella No, I do not. You might try your luck by asking over at https://github.com/andshrew/PlayStation-Trophies