我正在使用“令牌:获取”方法来向我展示令牌并能够使用它,它要求我将已有的“客户端ID”以及“用户密钥”作为参数使用放置我的电子邮件。当我运行它时,它显示了以下错误。
{
"error": {
"errors": [
{
"domain": "global",
"reason": "forbidden",
"message": "Not Authorized to access this resource/api"
}
],
"code": 403,
"message": "Not Authorized to access this resource/api"
}
}
curl \
'https://www.googleapis.com/admin/directory/v1/users/asesores-e%40asesoresmadero.com/tokens/790307732899-30ck161rdtt9b5alsaefrbm94mhi6m8o.apps.googleusercontent.com?key=[YOUR_API_KEY]' \
--header 'Authorization: Bearer [YOUR_ACCESS_TOKEN]' \
--header 'Accept: application/json' \
--compressed