gpt4 book ai didi

ios - 谷歌驱动器 API : login programmatically

转载 作者:可可西里 更新时间:2023-11-01 04:02:04 26 4
gpt4 key购买 nike

我正在开发将文件上传到 Google 云端硬盘所需的应用程序。我从以下链接开始学习 API。 https://developers.google.com/drive/ios/quickstart

目前,我必须第一次登录才能上传文件。但是在我的应用程序中,每次都会使用相同的帐户上传文件。那么,有什么方法可以绕过 GTMOAuth2ViewControllerTouch(登录屏幕)。

请帮帮我。非常感谢您的重播。

最佳答案

目前大多数 Google API 都需要 OAuth 2 token ,到目前为止,它只能通过用户控制的登录流程获得,这是 gtm-oauth2 提供的。一些较旧的 Google API 确实支持 ClientLogin 协议(protocol),其中用户名和密码由应用程序直接提供,但较新的 API 不提供。

Remember that hardcoding any account authorization(especially an account password) into an application's binary is a security risk and is poor practice.

关于ios - 谷歌驱动器 API : login programmatically,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23268608/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com