我正在使用Google驱动器API,它为我提供了“导出链接”,这些链接似乎是为了下载文档而重定向的。在Ruby中打开并从Google云端硬盘读取文件
结果提供了这一点:
{"text/csv":"https://docs.google.com/spreadsheets/export?id=1w6oq05R8piP4N4A-xxxxxxxx-rI&exportFormat=csv",
"application/pdf":"https://docs.google.com/spreadsheets/export?id=1w6oq05R8piP4N4A-xxxxxxxx-rI&exportFormat=pdf",
"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"https://docs.google.com/spreadsheets/export?id=1w6oq05R8piP4N4A-xxxxxxxx-rI&exportFormat=xlsx"}
我使用Yomu但是当我尝试读取这些文件之一,我得到一个结果,指出“的内容已移至”,所以各种各样的重定向。
如何打开这些URL中的一个以便Yomu可以阅读这些URL?或者您是否知道使用Google Drive API实现所需数据的其他方法?