imagePath = "./myimage.png"
img = {
'photo': (
'img.png', open(
imagePath, 'rb'
)
)
}
photo_upload_response = requests.post(upload_server['upload_url'], files=img)
photo_upload_result = json.loads(photo_upload_response.text)
print(photo_upload_result)