Skip to main content

v15 -> v16

Upload Media

file = open(media_file, "rb")

api_instance.upload_media(
account_id=account_id,
media_id=media_id,
body=bytes(file.read()),
_content_type=content_type,
cache_control=cache_control
)