【发布时间】:2015-08-28 07:36:45
【问题描述】:
我为电子表格创建了自定义 Google App 脚本,我需要向该脚本发送 GET 请求。我想从终端通过 cURL 执行此操作,但我反对授权问题。我读了这些文章:
还有更多,但我没有找到简单的解决方案。
curl -H "Authorization: Oauth client_secret" https://www.googleapis.com/drive/v2/files //error about invalid creadentials
curl https://www.googleapis.com/drive/v2/files?access_token=secret // error about required login
curl -H "Authorization: Bearer secret" https://www.googleapis.com/drive/v2/files // but how I can get Bearer? what is brearer?
有人可以帮帮我吗?谢谢!
【问题讨论】:
标签: curl oauth google-apps-script authorization google-authentication