get https://open.maze.guru/api/v1/create-upload-token
Get signature credentials before uploading seed image
Return value
parameter | description |
---|---|
data | signed url |
After getting the signed url, use the Alibaba Cloud SDK to upload the file. do not modify the signature link, otherwise the upload will fail. the signature link is valid for 5 minutes.
Upload files using "put" request, example:
with open(file, 'rb') as f:
requests.put(sign_url, f)