You may inject problem reports into FixMyStreet programatically using this simple interface. Upon receipt, an email will be sent to the address given, with a link the user must click in order to check the details of their report, add any other information they wish, and then submit to the council.
This interface returns a plain text response; either SUCCESS if the report has been successfully received, or if not, a list of errors, one per line each starting with ERROR:.
You may submit the following information by POST to this URL (i.e. http://www.fixmystreet.com/import ):
- service
- Required. Name of application/service using this interface.
- id
- Unique ID of a user/device, for possible future use.
(e.g. used by Flickr import to know which accounts to look at) - subject
- Required. Subject of problem report.
- detail
- Main body and details of problem report.
- name
- Required. Name of problem reporter.
- Required. Email address of problem reporter.
- phone
- Telephone number of problem reporter.
- easting / northing
- lat / lon
- Location of problem report. You can either supply eastings/northings, or WGS84 latitude/longitude.
- photo
- Photo of problem (JPEG only).