from butler import Client

# Get API Key from https://docs.butlerlabs.ai/reference/uploading-documents-to-the-rest-api#get-your-api-key
api_key = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiJhdXRoMHw2M2U5MWRhMWE2NGNhMWMyNWM1ZjI1ZWIiLCJlbWFpbCI6Im1hZGhhdi5rYXJoYWRlQGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJpYXQiOjE2NzYyMjIwMTU2NzF9.D9J60jt2dIMurkGjNCMQLbHFkw91ShEKvRc3ifb1uDo'
#
# Get Queue ID from https://docs.butlerlabs.ai/reference/uploading-documents-to-the-rest-api#go-to-the-model-details-page
queue_id = 'f7e28724-efc5-4e49-9def-e2c7428ef206'
#
# Response is a strongly typed object
response = Client(api_key).extract_document(queue_id, 'mk_dl.jpg')
# Convert to a dictionary for printing
print(response.to_dict())
