Hi @Sector3 Before a user joins one of Justrace's servers, I would like to check if he/she has the content required. Is there a way I can call some API or read this date from somewhere please? Thanks!
You can use http://game.raceroom.com/users/Scout_ire/purchases?json - just replace the username with the users name or portal ID. The purchased content should appears as an array under context.c in the JSON returned. context.c.purchased_content[0] // cars context.c.purchased_content[1] // liveries context.c.purchased_content[2] // tracks Looking at the format of how the data is structured, it might be easiest to stringify the JSON and then check to see if a vehicle ID is contained in that string, rather than doing looping through each item checking if there is an ID match. Hope it helps.
I developed a web application to select R3E liveries for my french league, and you can enter your R3E profile name to highlight your owned content. You can check (or reuse) the source code if you want, I use two data sources, the R3E shop web service mentioned above and the R3E spectator overlay that also lists cars that are not anymore available in shop. Code building cars/liveries database. Code building user content database.
Thank you guys, much appreciated I had already tried the purchased content you mentioned but I always get the Owned flag = False unless I login...
I think I have figured it out...json data/structure is a bit confusing. So for McLaren GT3 I have 1 skin and this would be it...