Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Metoden krever en sesongid.

Kun sesonger med kamper:

Som standard leverer metoden kun de turneringene som er satt opp med kamper. Dette er i utgangspunktet det som er interessant. Men det kan være tilfeller hvor man trenger hele hiarkiet. Hvor man kan få med regioner, serieinndelinger, og aldersbestemt. Man kan derfor legge til parameteren hierarchy=true og man vil få listet ut alle turneringer som finnes og kategoriseringen.

Eksempel fra turneringsadmin:

...

JSON Reqeustparamtere

Parameteren er valgfri, og vil kun gi turneringer/serier som har denne klassen.

Code Block
TournamentClasses = ID
hierarchy=true

Tips: Kjør en full spørring først, også vil du få alle aktive klasser som kan brukes senere.

...

Code Block
languagejson
{
    "tournamentsInSeason": [
        {
            "tournamentId": 366650410990,
            "tournamentNo": "9102100452",
            "fromDate": "20162022-0704-01T0011T00:00:00",
            "toDate": "20172022-0610-30T0002T00:00:00",
            "isArchival": false,
            "isDeleted": false,
            "orgIdOwner": 372424,
            "parentTournamentId": 366649410943,
            "seasonId": 200765200979,
            "seasonName": "HåndballsesongenInnebandysesongen 20162022/20172023",
            "tournamentName": "NMIBR RM SeniorH2022 KvinnerMenn",
            "tournamentShortName": "NMIBR RM SeniorH2022 KvinnerMenn",
            "tournamentClasses": [
                {
                    "tournamentId": 366650410990,
                    "classId": 2222228322222829,
                    "className": "KvinnerInnebandy Menn srSenior",
                    "fromAge": 18,
                    "toAge": 35100,
                    "allowedFromAge": 1615,
                    "allowedToAge": 99100,
                    "gender": "Female"
                }
            ]
        },
All",
       {             "tournamentIdliveArenaStorage": 366651,
            "tournamentNo": "910110","None"
             "fromDate": "2016-07-01T00:00:00",  }
          "toDate": "2017-06-30T00:00:00",
            "isArchival": false ],
            "isDeleteddivision": falsenull,
            "orgIdOwnerlogoUrl": 372null,
            "parentTournamentIdisTablePublished": 366649true,
            "seasonIdisResultPublished": 200765true,
            "seasonNameareMatchesPublished": "Håndballsesongen 2016/2017"true,
            "tournamentNameareStatisticsPublished": "NM Senior Menn"true,
            "tournamentShortNameareTeamsPublished": "NM Senior Menn"false,
            "tournamentClassesliveArena": [
                {
                    "tournamentId": 366651,
   false,
                "classIdliveClient": 22222285,
      true,
             "classNamewithdrawalsVisible": "Menn sr",
     false,
              "fromAgeteamEntry": 18,
       false,
            "toAgetournamentType": 35,
                    "allowedFromAge": 16,
                    "allowedToAge": 99,
                    "gender": "Male"
                }
            ]"Serie"
        },
        {
            "tournamentId": 367513410991,
            "tournamentNo": "2414120453",
            "fromDate": "20162022-0704-01T0011T00:00:00",
            "toDate": "20172022-0610-30T0003T00:00:00",
            "isArchival": false,
            "isDeleted": false,
            "orgIdOwner": 455919424,
            "parentTournamentId": 367512410943,
            "seasonId": 200765200979,
            "seasonName": "HåndballsesongenInnebandysesongen 20162022/20172023",
            "tournamentName": "RegionIBR SørRM CupH2022 J12GJ15",
            "tournamentShortName": "RegionIBR SørRM CupH2022 J12GJ15",
            "tournamentClasses": [
                {
                    "tournamentId": 367513410991,
                    "classId": 2222230122222849,
                    "className": "JenterInnebandy Gutter 1215",
                    "fromAge": 1215,
                    "toAge": 1216,
                    "allowedFromAge": 1113,
                    "allowedToAge": 1216,
                    "gender": "FemaleAll",
                }    "liveArenaStorage": "None"
       ]         },
        .....         .....{
        .....         {      "tournamentId": 410991,
      "tournamentId": 366651,             "tournamentNoclassId": "910110",
    22222865,
       "fromDate": "2016-07-01T00:00:00",             "toDateclassName": "2017-06-30T00:00:00Innebandy Jenter 15",
            "isArchival": false,        "fromAge": 15,
      "isDeleted": false,             "orgIdOwnertoAge": 37216,

           "parentTournamentId": 366649,             "seasonIdallowedFromAge": 20076513,
            "seasonName": "Håndballsesongen 2016/2017",      "allowedToAge": 16,
     "tournamentName": "NM Senior Menn",             "tournamentShortNamegender": "NM Senior MennFemale",
            "tournamentClasses": [       "liveArenaStorage": "None"
        {        }
            "tournamentId": 366651],
            "division": null,
      "classId": 22222285,        "logoUrl": null,
            "classNameisTablePublished": "Menn sr"true,
            "isResultPublished": true,
      "fromAge": 17,        "areMatchesPublished": true,
            "toAgeareStatisticsPublished": 17true,
            "areTeamsPublished": false,
      "allowedFromAge": 15,        "liveArena": false,
            "allowedToAgeliveClient": 17,
      true,
             "genderwithdrawalsVisible": "Male"false,
            "teamEntry": false,
  }             ]"tournamentType": "Serie"
        },
    ],     "seasonId": 200765,...
      "seasonName": "Håndballsesongen 2016/2017", ...
    "seasonDateFrom": "2016-05-01T00:00:00",
    "seasonDateTo": "2017-06-30T00:00:00",
    "activityId": 210 ]
}   

Verdt å vite:

Denne metoden er nokså datatung.
I enkelte sesonger er det store mengder turneringer med kamper. Det tar tid å laste ned. Opp mot 2-3 mb er ikke unormalt.

...