cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
934
Views
0
Helpful
0
Replies

How to use "Site Map Service/Get image of the specified site map" API in Prime Infrastructure 3.7

choywy
Level 1
Level 1

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

###

0 Replies 0