Created
February 28, 2020 04:15
-
-
Save mrladeia/b49e7d201b6a4bd7cf1634ecbaa43fa3 to your computer and use it in GitHub Desktop.
Upload python script example - Chevereto - Imagem.app
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
url = "https://imagem.app/api/1/upload" | |
payload = {'key': 'YOUR_KEY','format': 'json'} | |
files = [ | |
('source', open('imagem.png','rb')) | |
] | |
response = requests.request("POST", url, data = payload, files = files) | |
print(response.text.encode('utf8')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment