v15 -> v16
Upload Media
- v15
- v16
file = open(media_file, "rb")
api_instance.upload_media(
account_id=account_id,
media_id=media_id,
body=bytearray(file.read()),
_content_type=content_type,
cache_control=cache_control
)
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
)