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.
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