Admin
API för att hantera adresser och anmälningar i Anslutamotorn
FormatXML AuthLogin OriginAnslutamotorn ConsumerStadsnät
search_application
Request
GET /admin/edit/connect/plain/api
Attributes
- mandatory
Data format: string
Example: name
What to search, possible values are "address", "building", "streetname", and "name" - mandatory
Data format: string
Example: Johan Bylund
The term to search for - mandatory
Data format: integer
Example: 1234
The ID for the API user in Atlas - optional
Data format: string
Example: json
What format should the response be in, valid values are 'xml' and 'json'
Example request
GET /admin/edit/connect/plain/api?method=search_application&field=name&search=Johan+Bylund&api_user=1234
Response success: 200
HTTP/1.1 200
Content-Type: application/xml<connect> <response> <matches> <post_101841> <id>101841</id> <name>Johan Bylund</name> <oid>8921</oid> <streetname>Storgatan</streetname> <streetnumber>31</streetnumber> <streetletter>B</streetletter> <premise>1023</premise> <phone>08-12 34 56</phone> <cell>070-123 45 67</cell> <email>johan@stadsnatet.se</email> <status>interest</status> <date>2014-09-03</date> <building>Storis 15:169</building> <comment>Jag vill ha!</comment> <origin>admin</origin> <substatus>waiting</substatus> </post_101841> </matches> </response> <status>success</status> </connect>