Hey what is the best way to get the match date from a Post Carnage call? Seems that there is no reference to it.
Thanks
Hey what is the best way to get the match date from a Post Carnage call? Seems that there is no reference to it.
Thanks
> 2533274813694625;1:
> Hey what is the best way to get the match date from a Post Carnage call? Seems that there is no reference to it.
>
> Thanks
It’s not on the carnage report.
It’s available on the ‘Stats -> Matches for Player’ endpoint (Results[0].MatchCompletedDate.ISO8601Date).
You’ll have to use both sets of data. Request a player’s match history, note the date, then request a carnage report.
> 2753093343646559;2:
> > 2533274813694625;1:
> > Hey what is the best way to get the match date from a Post Carnage call? Seems that there is no reference to it.
> >
> > Thanks
>
>
> It’s not on the carnage report.
>
> It’s available on the ‘Stats -> Matches for Player’ endpoint (Results[0].MatchCompletedDate.ISO8601Date).
>
> You’ll have to use both sets of data. Request a player’s match history, note the date, then request a carnage report.
Yeah I do it this way on my site but there a situation when I have the id for the match and want to record that into the db but it needs the match date. Would be too must hassle to return 20 player games and keep checking for the match id just to get the date. Wish there was an easier way to grab the match date if all you have is the match id
How are you getting the Match Date? When its entered into the DB do the date at the same time. If its a user input, get them to put the date in too.
If you plan on doing the first one from now but when to update the older entries, I guess you’ll have to just run a script that manually finds them all.
At some point you’re gonna have to get the match id from the matches endpoint, so I suppose grab the date and store it alongside of the id. Bottom line is that you’re gonna have to rethink parts of your implementation.
This is just a way of adding games to my db that didnt make the criteria, but are exceptions to it. I have the game id so I can get the post carnage report, I just needed the date also. As of now I am doing it manually as I input the id manually also