import requests


def send_binary_image_data(image_file_name, image_file_binary, printer_name="printi", auth=None):
	"""Sends a binary image file to the printi API

	:param str image_file_name: Must include the right file type (e.g. cat.png)
	:param file image_file_binary: A file-like object, *opened in binary mode*
	:param printer_name: Name of printi recipient
	:param auth: Not yet implemented
	:return: Success boolean
	"""
	url = "https://api.printi.me/submitimages/" + printer_name
	r = requests.post(url, files={"pigeoned": (image_file_name, image_file_binary)})
	return r.status_code == 200