Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

« Previous Version 2 Next »

In order to get list of outrights for provided sport id, POST request is:

Base URL /translation_category

Required field for this call is the sport_id

With the above details the API provides the following message:

<sport_outrights timestamp="1635496900640">
  <sport id="1" name="Soccer"/>
  <categories>
    <category id="130" name="Northern Ireland">
      <fixtures_outright>
        <fixture id="127190" name="Premiership League - Winner"/>
      </fixtures_outright>
    </category>
    <category id="67" name="Greece">
      <fixtures_outright>
       <fixture id="124748" name="Super League - Winner"/>
      </fixtures_outright>
    </category>
    <category id="131" name="Wales">
      <fixtures_outright>
       <fixture id="126614" name="Wales Premier League - Winner"/>
      </fixtures_outright>
    </category>
    <category id="4" name="International">
      <fixtures_outright>
        <fixture id="91461" name="UEFA Nations League - Winner"/>
        <fixture id="105326" name="WC Qualification UEFA Group A - Winner"/>
        <fixture id="105328" name="WC Qualification UEFA Group B - Winner"/>
        <fixture id="105330" name="WC Qualification UEFA Group C - Winner"/>
        <fixture id="105334" name="WC Qualification UEFA Group E - Winner"/>
        <fixture id="105336" name="WC Qualification UEFA Group F - Winner"/>
        <fixture id="105338" name="WC Qualification UEFA Group G - Winner"/>
        <fixture id="105340" name="WC Qualification UEFA Group H - Winner"/>
        <fixture id="105342" name="WC Qualification UEFA Group I - Winner"/>
        <fixture id="105344" name="WC Qualification UEFA Group J - Winner"/>
        <fixture id="105532" name="WC Qualification UEFA Group D - Winner"/>
        <fixture id="105574" name="WC Qualification UEFA - To Qualify from Group A - Portugal"/>
        <fixture id="105576" name="WC Qualification UEFA - To Qualify from Group A - Serbia"/>
        <fixture id="105578" name="WC Qualification UEFA - To Qualify from Group A - Ireland"/>
        <fixture id="105580" name="WC Qualification UEFA - To Qualify from Group A - Luxembourg"/>
        <fixture id="105582" name="WC Qualification UEFA - To Qualify from Group A - Azerbaijan"/>
        <fixture id="105584" name="WC Qualification UEFA - To Qualify from Group B - Spain"/>
        <fixture id="105586" name="WC Qualification UEFA - To Qualify from Group B - Sweden"/>
        <fixture id="105588" name="WC Qualification UEFA - To Qualify from Group B - Greece"/>
        <fixture id="105590" name="WC Qualification UEFA - To Qualify from Group B - Georgia"/>
        <fixture id="105592" name="WC Qualification UEFA - To Qualify from Group B - Kosovo"/>
        <fixture id="105594" name="WC Qualification UEFA - To Qualify from Group C - Italy"/>
        <fixture id="105596" name="WC Qualification UEFA - To Qualify from Group C - Switzerland"/>
        <fixture id="105598" name="WC Qualification UEFA - To Qualify from Group C - Northern Ireland"/>
        <fixture id="105600" name="WC Qualification UEFA - To Qualify from Group C - Bulgaria"/>
        <fixture id="105602" name="WC Qualification UEFA - To Qualify from Group C - Lithuania"/>
        <fixture id="105604" name="WC Qualification UEFA - To Qualify from Group D - France"/>
        <fixture id="105606" name="WC Qualification UEFA - To Qualify from Group D - Ukraine"/>
        <fixture id="105608" name="WC Qualification UEFA - To Qualify from Group D - Finland"/>
        <fixture id="105610" name="WC Qualification UEFA - To Qualify from Group D - Bosnia and Herzegovina"/>
        <fixture id="105612" name="WC Qualification UEFA - To Qualify from Group D - Kazakhstan"/>
        <fixture id="105614" name="WC Qualification UEFA - To Qualify from Group E - Belgium"/>
      </fixtures_outright>
    </category>
  </categories>
</sport_outrights>

 

Tag sport_outrights has only one attribute which is timestamp with date and time when message was created.

Under that tag there are tags named sport and categories. Tag named sport has ID of sport and its name. Categories that contains tags category with attributes id and name. Under each category is placed fixtures_outright tag, then all outrights are listed as fixture tag with attributes id and name.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.