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 »

To get translations of provided sport, use this POST request:

http://ksrv05.oddsandmore.com:8991/translations_sport

Required fields for this call are sport_id and token.

The API provides the following message:

<translations_sport generated_at="2021-02-02T09:05:12+0000">
  <sport id="1">
    <text lang="de" name="Fußball"/>
    <text lang="en" name="Soccer"/>
    <text lang="es" name="Fútbol"/>
    <text lang="fr" name="Football"/>
    <text lang="it" name="Calcio"/>
    <text lang="pt" name="Futebol"/>
  </sport>
</translations_sport>

Tag translations_sport has only one attribute which is generated_at with date and time that message was created.

Under that tag there is a tag named sport that has ID of sport.

Then there are data for all languages placed into child text tags. Tags text have attribute lang for short name of the language and name for sport name in that language(translation)


To get translations of provided category, use this POST request:

http://ksrv05.oddsandmore.com:8991/translations_category

Required fields for this call are category_id and token.

The API provides the following message:

<translations_category generated_at="2021-02-02T09:05:38+0000">
  <category id="1">
    <text lang="de" name="England"/>
    <text lang="en" name="England"/>
    <text lang="es" name="Inglaterra"/>
    <text lang="fr" name="Angleterre"/>
    <text lang="it" name="Inghilterra"/>
    <text lang="pt" name="Inglaterra"/>
  </category>
</translations_category>

Tag translations_category has only one attribute which is generated_at with date and time that message was created.

Under that tag there is a tag named category that has ID of sport.

Then there are data for all languages placed into child text tags. Tags text have attribute lang for short name of the language and name for sport name in that language(translation)

  • 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.