api

Atlas API

API Endpoint: XSP Export
Export-API för Tjänsteleverantörer
Endpoint URL http://www.stadsnatsportalen.se/admin/edit/citynetadressess/plain/xspexport
This API does not require granted privileges, and is open to any user API key This API does not require granted privileges, and is open to any user API key
  • Method: getfile

  • Information


    This will create a file for download for the requesting XSP. This can take several minutes, especially if there is a XSP-specific translations. The result is an URL for downloading the file, request it seperately.
  • Parameters
    1 hash string green abcd Your login hash from api_login()
    2 format string green tab tab/csv for file format
    Example Query:
    http://www.stadsnatsportalen.se/admin/edit/citynetadressess/plain/xspexport?method=getfile&hash=abcd&format=tab
  • success response


       <getfile>
          <@attributes>
             <generator>Atlas AXA</generator>
             <version>1.5</version>
          </@attributes>
          <getfile>
             <response>
                <location>http://www.stadsnatsfabriken.se/admin/edit/citynetadressess/plain/download.php?filename=export_36931_201201251141.txt</location>
             </response>
             <status>success</status>
          </getfile>
       </getfile>
  • Method: getxml

  • Information

  • Parameters
    1 hash string green abcd Your login hash from api_login()
    2 page int green 1 Page of results
    Example Query:
    http://www.stadsnatsportalen.se/admin/edit/citynetadressess/plain/xspexport?method=getxml&hash=abcd&page=1
  • success response


       <getxml>
          <@attributes>
             <generator>Atlas AXA</generator>
             <version>1.5</version>
          </@attributes>
          <getxml>
             <response>
                <addresses>
                   <address>
                      <citynet>Eskilstuna Stadsnät</citynet>
                      <streetname>Måttjohanssons väg</streetname>
                      <streetnumber>46</streetnumber>
                      <zip>63346</zip>
                      <city>Eskilstuna</city>
                      <type>Företag</type>
                      <cpe>Finns ej</cpe>
                      <media>TP</media>
                      <date>2009-01-21</date>
                   </address>
                </addresses>
                <pages>2148</pages>
                <page>1</page>
                <perpage>40</perpage>
             </response>
             <status>success</status>
          </getxml>
       </getxml>
#inlineditbutton