Skip to content

Instantly share code, notes, and snippets.

@mrladeia
Created February 28, 2020 04:15
Show Gist options
  • Save mrladeia/b49e7d201b6a4bd7cf1634ecbaa43fa3 to your computer and use it in GitHub Desktop.
Save mrladeia/b49e7d201b6a4bd7cf1634ecbaa43fa3 to your computer and use it in GitHub Desktop.
Upload python script example - Chevereto - Imagem.app
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