如何通过谷歌驱动的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服务器应用程序的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:
https://developers.google.com/accounts/docs/OAuth2WebServer#refresh