我需要点击下面的api。当我尝试使用 fiddler 时,我遇到了身份验证错误。所以,我知道我需要在请求中传递访问令牌
https://cloudidentity.googleapis.com/v1beta1/{parent=devices/*/deviceUsers}:lookup
我需要为 Windows 桌面应用程序获取访问令牌。
当我在没有访问令牌的情况下点击请求时出错:-
"error": {
"code": 401,
"message": "Request is missing required authentication credential. Expected OAuth 2 access token, login cookie or other valid authentication credential. See https://developers.google.com/identity/sign-in/web/devconsole-project.",
"status": "UNAUTHENTICATED"
}
}