需要访问令牌才能从 Windows 应用程序访问 google api

时间:2021-03-24 10:18:13

标签: c# google-api desktop-application

我需要点击下面的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"
  }
}

 

0 个答案:

没有答案
相关问题