Hello all,
I know to do it directly on the web interface, but I would like to automatize it by using API.
I understand I will have:
- Register an OAuth app in intervals.icu.
- Athlete wanting to follow my plan have to give me the access by using my OAuth intervals.icu sign-in form on my website.
- All the OAuth flow to get technically the token.
- With the token I can call the correct endpoints to apply the training plan to this athlete.
I read the Swagger API doc, but it’s not very clear for me what endpoints I should use for that.
I get my training plans and their respective ids with the folders endpoints?
https://intervals.icu/api/v1/athlete/{{MY_ID}}/folders
How to apply it then to an athlete with a starting date?
What endpoints should I use for that?
Thanks for your help