javascript - 如何在谷歌登录对话框中自动检查谷歌日历范围
问题描述
我正在使用带有https://www.googleapis.com/auth/calendar
范围和react-native-google-sign 的谷歌日历 api 。调用登录后,对话框会询问您是否要允许。在我附加的屏幕截图中,有没有办法自动检查最后一个选项(请参阅编辑共享和永久)?
这是我正在使用的配置:
GoogleSignin.configure({
scopes: ['https://www.googleapis.com/auth/calendar'],
offlineAccess: true, // what API you want to access on behalf of the user, default is email and profile
webClientId:
'', // client ID of type WEB for your server (needed to verify user ID and offline access)
});
我打电话后会显示对话框
GoogleSignin.signIn();
解决方案
推荐阅读
- java - 从`build.gradle`获取值到代码
- java - EntityManagerFactory 已关闭 - 仅在特定机器上
- android - BroadcastReceiver Intent.ACTION_PACKAGE_ADDED/REMOVED Android Oreo
- python - Python 3.6:classmethod 上的 abc.abstracmethod 不检查类级别调用
- ios - 如何创建一个可以被多个 UIVIewController 共享/使用的 UIView?
- python - 如何在python中获得log10值的倒数?
- sql - 基于 Order 列的回溯窗口,并将其替换为 Orderid 和 User id
- javascript - 从nodejs获取json数据到Angular 6
- python - 自动编码器最后一层的 Keras 尺寸不匹配
- python - 熊猫中的连接和移位列适用