To get translations of provided sport, use this POST request:
Required fields for this call are sport_id and token.
The API provides the following message:
<translations_sport timestamp="1613570990894"> <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 timestamp with date and time when 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 which indicates the ISO language Code and name for sport name in that specified language.
0 Comments