Выберите области действия API Google Slides

This document contains Google Slides API-specific authorization and authentication information. Before reading this document, be sure to read the Google Workspace's general authentication and authorization information at Learn about authentication and authorization .

Настройте OAuth 2.0 для авторизации.

Настройте экран согласия OAuth и выберите области действия , чтобы определить, какая информация отображается пользователям и рецензентам приложения, а также зарегистрируйте свое приложение, чтобы вы могли опубликовать его позже.

Области действия API слайдов

To define the level of access granted to your app, you need to identify and declare authorization scopes . An authorization scope is an OAuth 2.0 URI string that contains the Google Workspace app name, what kind of data it accesses, and the level of access. Scopes are your app's requests to work with Google Workspace data, including users' Google Account data.

When your app is installed, a user is asked to validate the scopes used by the app. Generally, you should choose the most narrowly focused scope possible and avoid requesting scopes that your app doesn't require. Users more readily grant access to limited, clearly described scopes.

По возможности мы рекомендуем использовать неконфиденциальные области доступа, поскольку это предоставляет доступ к отдельным файлам и сужает доступ к конкретным функциям, необходимым приложению.

API Slides поддерживает следующие области видимости:

Код области действия Описание Использование
https://www.googleapis.com/auth/presentations Просматривайте, редактируйте, создавайте и удаляйте все свои презентации Google Slides. Чувствительный
https://www.googleapis.com/auth/presentations.readonly Просмотрите все свои презентации Google Slides. Чувствительный
https://www.googleapis.com/auth/spreadsheets Просматривайте, редактируйте, создавайте и удаляйте все свои электронные таблицы Google Sheets. Чувствительный
https://www.googleapis.com/auth/spreadsheets.readonly Просмотрите все свои электронные таблицы Google Sheets. Чувствительный
https://www.googleapis.com/auth/drive.file Просматривайте, редактируйте, создавайте и удаляйте только те файлы Google Диска, которые вы используете с этим приложением. Рекомендуется
Нечувствительный
https://www.googleapis.com/auth/drive Просматривайте, редактируйте, создавайте и удаляйте все свои файлы в Google Диске. Ограниченный
https://www.googleapis.com/auth/drive.readonly Просматривайте и скачивайте все свои файлы из Google Диска. Ограниченный

В столбце «Использование» таблицы указана степень чувствительности каждого диапазона в соответствии со следующими определениями:

  • Non-sensitive : These scopes provide the smallest scope of authorization access and only requires basic app verification. For information on this requirement, see Submitting your app for verification .

  • Sensitive : These scopes provide access to specific Google User Data that's authorized by the user for your app. It requires you to go through additional app verification. For information on this requirement, see Sensitive and Restricted Scope Requirements .

  • Restricted : These scopes provide wide access to Google User Data and require you to go through a restricted scope verification process. For information on this requirement, see Google API Services User Data Policy and Additional Requirements for Specific API Scopes . If you store restricted scope data on servers (or transmit), then you must go through a security assessment.

Если вашему приложению требуется доступ к другим API Google, вы также можете добавить соответствующие области действия. Дополнительную информацию об областях действия API Google см. в разделе «Использование OAuth 2.0 для доступа к API Google» .

Для получения дополнительной информации о конкретных областях действия OAuth 2.0 см. раздел «Области действия OAuth 2.0 для API Google» .