Difference between revisions of "API:languages.xml"

From TvDBwiki
Jump to: navigation, search
(New page: The languages.xml file holds a list of all of the languages available on this website. '''NOTE:''' Previous interfaces primarily used the language id for lookups. This new API uses the 2...)
 
 
Line 1: Line 1:
The languages.xml file holds a list of all of the languages available on this website.  '''NOTE:''' Previous interfaces primarily used the language id for lookups.  This new API uses the 2 character abbreviation.  This file will rarely change, so you may consider hard-coding these values into your program and updating them only with new releases.
+
The languages.xml file holds a list of all of the languages available on this website.  '''NOTE:''' Previous interfaces primarily used the language id for lookups.  This new API uses the 2 character abbreviation.  This file will rarely change, so you may consider hard-coding these values into your program and updating them only with new releases. In addition to the two letter abbreviations the word "all" can be used as a language option within the API to get information in all languages.
  
 
== Example Results ==
 
== Example Results ==

Latest revision as of 13:47, 8 September 2014

The languages.xml file holds a list of all of the languages available on this website. NOTE: Previous interfaces primarily used the language id for lookups. This new API uses the 2 character abbreviation. This file will rarely change, so you may consider hard-coding these values into your program and updating them only with new releases. In addition to the two letter abbreviations the word "all" can be used as a language option within the API to get information in all languages.

[edit] Example Results

<?xml version="1.0" encoding="UTF-8" ?>
<Languages>
 <Language>
   <name>Español</name>
   <abbreviation>es</abbreviation>
   <id>16</id>
 </Language>
 <Language>
   <name>Français</name>
   <abbreviation>fr</abbreviation>
   <id>17</id>
 </Language>
 <Language>
   <name>Hebrew</name>
   <abbreviation>he</abbreviation>
   <id>24</id>
 </Language>
 <Language>
   <name>English</name>
   <abbreviation>en</abbreviation>
   <id>7</id>
 </Language>
</Languages>
Personal tools