Hi,
I notice that starting from PI3.7 it has a new API "Site Map Service". I interested in saving all those floor map using this "Get image of the specified site map" API.
I know how to parse a JSON output but this API return an image jpeg file!! How does the python code looks like to save a jpeg file? Any kind soul can paste a sample code? thanks..
This is the API docs....
###
Sample Payloads
Sample payloads are for information only. They are automatically generated and the values included may not be representative of actual valid data values.
https://x.x.x.x/webacs/api/v4/op/maps/123123/image
Returns a result of MIME Type:
image/jpeg
Also sets 'Content-Disposition' to save as:
image.jpeg
###