如何在 google 电子表格中为 google api 项目打开访问权限?
How to open access in google spreadsheet for a google api project?
我需要帮助。我在 google api 中有一个项目,但我不知道如何在 google 电子表格中打开项目的访问权限。那么我需要打开哪个gmail?
谢谢!
你可以参考这个documentation。
Every request your application sends to the Google Sheets API needs to identify your application to Google. There are two ways to identify your application: using an OAuth 2.0 token (which also authorizes the request) and/or using the application's API key. Here's how to determine which of those options to use:
- If the request requires authorization (such as a request for an individual's private data), then the application must provide an [OAuth 2.0 token with the request. The application may also provide the API key, but it doesn't have to.
- If the request doesn't require authorization (such as a request for public data), then the application must provide either the API key or an OAuth 2.0 token, or both—whatever option is most convenient for you.
这里有一些 examples and quickstart。
我需要帮助。我在 google api 中有一个项目,但我不知道如何在 google 电子表格中打开项目的访问权限。那么我需要打开哪个gmail? 谢谢!
你可以参考这个documentation。
Every request your application sends to the Google Sheets API needs to identify your application to Google. There are two ways to identify your application: using an OAuth 2.0 token (which also authorizes the request) and/or using the application's API key. Here's how to determine which of those options to use:
- If the request requires authorization (such as a request for an individual's private data), then the application must provide an [OAuth 2.0 token with the request. The application may also provide the API key, but it doesn't have to.
- If the request doesn't require authorization (such as a request for public data), then the application must provide either the API key or an OAuth 2.0 token, or both—whatever option is most convenient for you.
这里有一些 examples and quickstart。