![]() ![]() The user needs to approve the scope of access your application is requesting. ![]() When your application requests access to user data, the request must include one or more scopes. For example, an API might have read-only and read-write scopes. Scope: Each API defines one or more scopes that declare a set of operations permitted. All of this is accomplished with OAuth 2.0 and libraries written for it. Therefore, your application must be authenticated, the user must grant access for your application, and the user must be authenticated in order to grant that access. Before you can call them, the user that has access to the private data must grant your application access. These API calls access private user data. If someone obtains your key, they could use it to consume your quota or incur charges against your API Console project. Every simple access call your application makes must include this key. This is needed to measure project usage for accounting purposes.ĪPI key: To authenticate your application, use an API key for your API Console project. Your application must authenticate itself as an application belonging to your Google API Console project. These API calls do not access any private user data. See the API’s method documentation to determine the appropriate access type. Some API methods that can use either behave differently, depending on whether you use simple or authorized access. Many API methods require authorized access, but some can use either. ![]() All API calls must use either simple or authorized access (defined below). It is important to understand the basics of how API authentication and authorization are handled. This document summarizes the protocols used by Google APIs and provides links to more information. Also, for quota and billing purposes, all API calls involve accounting. For example, accessing a public Google+ post would not require user authorization, but accessing a user’s private calendar would. When an API accesses a user’s private data, your application must also be authorized by the user to access the data. For all API calls, your application needs to be authenticated. This document is an overview of how authentication, authorization, and accounting are accomplished. Google-api-python-client Authentication Overview ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |