如何使用Drive API v2将本地CSV文件上传到Google云端硬盘,以便上传的文件采用原生Google电子表格格式.最好是在Python中,但原始的HTTP请求就足够了.
我尝试了什么:
请求正文内容类型:'application/vnd.google-apps.spreadsheet',media_body content-type:'text/csv'. - > 401 Bad Request
请求正文内容类型:'application/vnd.google-apps.spreadsheet',media_body content-type:'application/vnd.google-apps.spreadsheet'. - > 400 Bad Request
...(其他几个例如留下一个属性和类似的,通常有400或驱动器不认识它作为本机电子表格)