Versions Compared

Key

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

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:

Code Block
languagexml
<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>

...

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)Here you can get available Translations of provided entity by providing the relative id and token

Page Tree
rootTranslations
startDepth1