Access a Protected Google Apps Script Web Service via a Native Client (.Net) using OAuth

纵饮孤独 提交于 2019-12-02 20:11:59

问题


My .Net Client Application (Winform) allows users to use a Browser Control to Authenticate on Google. I am able to retrieve the access_token in the response (I follow the instructions here). Once I get this access_token, how can I use it to 'GET' (or POST) to a protected Google Apps Script. For instance, if I have a web service URL https://script.google.com/macros/s/XYXYXYXYXYX, that is set to run as the Authenticated User. Is there a way that I can download the URL using the access_token (either via some special HTTP Header or a .Net Client Oauth Library) acting as the user who authenticated ? The instructions here only show how to access API's protected by google (not Google Apps Scripts). To be clear, I am not looking to access any Google API's in the Apps Script. Just some simple XML dynamic XML or JSON documents that are generated by Google Apps Script. Thanks.


回答1:


Apps Script does not support incoming OAuth.



来源:https://stackoverflow.com/questions/14034043/access-a-protected-google-apps-script-web-service-via-a-native-client-net-usi

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!