API Functions

List Departments

Fetches a list of departments.

This function returns a list of departments. Each department has a long name (its full name) and a short name (generally the acronym or abbreviation by which it is known).

Function URI

http://data.tellthemwhatyouthink.org/api/dispatch.php?function=getdepts

Arguments

getdepts has no arguments.

Example output

      <?xml version="1.0" encoding="UTF-8"?>
      <deptlist>
         <count>25</count>
         
         <departments>
            <department>
               <shortname>BIA</shortname>
               <longname>Border and Immigration Agency</longname>
            </department>
            <department>
               <shortname>Charities</shortname>
               <longname>Charities Commission</longname>
            </department>

            <!-- // snip // -->

            <department>
               <shortname>IPO</shortname>
               <longname>UK Intellectual Property Office</longname>
            </department>
            <department>
               <shortname>WelshGov</shortname>
               <longname>Welsh Assembly Government</longname>
            </department>
         </departments>
      </deptlist>