如何通过谷歌驱动的API使用刷新令牌生成访问令牌? [英] How to generate access token using refresh token through google drive API?
问题描述
我已经完成授权步骤,并获得访问令牌和刷新令牌。
I have completed steps of authorization and obtained access token and refresh token.
我应该用旁边,我已经通过谷歌驱动API存储刷新令牌生成访问令牌怎么办?
What should I do next to generate access token using refresh token that I have stored through google drive API?
我将无法使用任何SDK,因为我在Force.com上工作,所以请建议的方式直接通过API实现它。
I won't be able to use any sdk since I am working on Force.com so please suggest the way to implement it directly through the API.
推荐答案
如果您想要实现自己的OAuth 2.0用户流量的Web服务器应用程序的<一个被记录href=\"https://developers.google.com/accounts/docs/OAuth2WebServer\">https://developers.google.com/accounts/docs/OAuth2WebServer,尤其是您应该检查部分关于使用刷新标记:
If you want to implement that yourself, the OAuth 2.0 flow for Web Server Applications is documented at https://developers.google.com/accounts/docs/OAuth2WebServer, in particular you should check the section about using a refresh token:
<一个href=\"https://developers.google.com/accounts/docs/OAuth2WebServer#refresh\">https://developers.google.com/accounts/docs/OAuth2WebServer#refresh
这篇关于如何通过谷歌驱动的API使用刷新令牌生成访问令牌?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!