Couchdrop supports data ingestion via webhooks.
Example 1: Upload via CURL
curl -v -F content=@CHRIS.txt
-H "Authorization: Bearer <token>"
https://my.couchdrop.io/webhook/0479ae21-a677-49bb-9937-d5841b3b9ed1
Example 2: Upload with Python using a stream
import requests
binary_file_path = "/Users/donald/testing/trophy.jpg"
webhook_id = "<webhook_id>"
token = "<token>"
with open(binary_file_path, 'rb') as f:
data = f.read()
res = requests.post(
url='https://my.couchdrop.io/webhook/' + webhook_id, data=data,
headers={
'filename': 'trophy_webhook.jpg',
'Content-Type': 'application/octet-stream',
'Authorization': 'Bearer ' + token
})