Skip to content

customProgram get range

Hadrien Daures edited this page Jul 16, 2018 · 5 revisions

URL: POST: /customProgram-get-range

Request content:
{
    TOKEN: "the token",
    SPORTCENTERID: "the sport center id",
    START: 12, //start from the 12th custom program
    END: 10 //get 10 custom programs from the START (12->22 here)
    FILTERS: { 
                  FAVORITES: true/false
                  NAME: "the name"
                  NOTE: 10 // 10/10
                  CREATOR: "the creator name"
                  NBSTEPS: 15 // the number of steps
                  DURATION: 17 // the program duration
             } // ALL FILTERS ARE OPTIONAL
}

Response content:
{
    STATUS: "the status code",
    CUSTOMPROGRAMS: [{CUSTOMPROGRAMID: "the id", NAME: "the name", FAVORITE: true/false}, ...]
}

Clone this wiki locally