我的Google oAuth2令牌是否正确?

M S*_*kel 5 google-api oauth-2.0

我正在编写一个Web服务器来支持oAuth2 for Google API,我正在遵循这个文档.在我尝试使用Access Token制作Google API时,一切似乎都运行正常.来自文档的示例调用:

https://www.googleapis.com/oauth2/v1/userinfo?access_token=1/fFBGRNJru1FQd44AzqT3Zg
Run Code Online (Sandbox Code Playgroud)

当我使用访问令牌尝试它时,我得到401无效令牌错误.

通过文献查看,所有示例都以格式1/fFBGR ......显示访问令牌.我的访问令牌的形式为ya29.AHES67z .......并且更长(请参阅下面的包含谷歌响应的片段).

oauth2 request:{
"access_token" : "ya29.AHES67zeEn-RDg9CA5gGKMLKuG4uVB7W4O4WjNr-NBfY6Dtad4vbIZ",
"token_type" : "Bearer",
"expires_in" : 3600
}
Run Code Online (Sandbox Code Playgroud)

所以看来我的令牌不正确.我必须对其进行编码/解码吗?

HK1*_*HK1 13

我最近一直在玩VBA的OAuth2.0.

Authorization Code Begins With: 4/Omoy    (30 Characters Long)  
Access_Token Begins With:       ya29.AHES (60 Characters Long)    
Refresh_Token Begins With:      1/Ry68    (45 Characters Long)  
Run Code Online (Sandbox Code Playgroud)

我没有必要进行任何解码或编码来使用这些值.这些都是有效的功能价值.