AdrianJSClark / aydsko-iracingdata

A .NET access library for querying the iRacing "Data" API.
MIT License
29 stars 8 forks source link

Add Time Attack Member Season Results Endpoint #145

Closed AdrianJSClark closed 1 year ago

AdrianJSClark commented 1 year ago

Implement support for the /data/time_attack/member_season_results endpoint.

AdrianJSClark commented 1 year ago

Need to work out where the required ta_comp_season_id values can be sourced from before retrieving an example result.

AdrianJSClark commented 1 year ago

(from a comment by Nicholas Bailey)

The list of active TA series can be retrieved by hitting:

https://dqfp1ltauszrc.cloudfront.net/public/time-attack/schedules/time_attack_schedule_index.json

And then taking the ta_schedule_filename value from that file and hitting:

https://dqfp1ltauszrc.cloudfront.net/public/time-attack/schedules/VALUE_FROM_PRIOR_FILE_HERE.json

The results of that second call will have the currently active TAs listed with a comp_season_id that you can then use in the call to /data/time_attack/member_season_results