Google drive api 无法订阅Google驱动器推送通知
基于: 我不知道从何处获取当前用户的身份验证令牌 我有服务帐户凭据,也是OAuth令牌。我尝试了Google drive api 无法订阅Google驱动器推送通知,google-drive-api,Google Drive Api,基于: 我不知道从何处获取当前用户的身份验证令牌 我有服务帐户凭据,也是OAuth令牌。我尝试了访问\u令牌,刷新\u令牌。。。我不明白这是什么记号 curl --location --request POST 'https://www.googleapis.com/drive/v3/changes/watch' \ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer 1//064ToBH1
访问\u令牌
,刷新\u令牌
。。。我不明白这是什么记号
curl --location --request POST 'https://www.googleapis.com/drive/v3/changes/watch' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer 1//064ToBH1n***' \
--data-raw '{
"id":"***",
"type": "web_hook",
"address": "https://***.cloudfunctions.net/verify"
}'
返回:
{
"error": {
"errors": [
{
"domain": "global",
"reason": "authError",
"message": "Invalid Credentials",
"locationType": "header",
"location": "Authorization"
}
],
"code": 401,
"message": "Invalid Credentials"
}
}
感谢您的帮助。授权标头应包含有效的访问令牌。授权标头应包含有效的访问令牌。