Since Yesterday morning I'm stuck with a google drive API request.
As explained here : https://developers.google.com/drive/api/v3/push
I'm trying to subscribe to notifications sending this request :
Url : https://www.googleapis.com/drive/v3/changes/watch
Header :
Content-type: application/json
Authorization: Bearer my_auth_token
{
"id":"An ID generated",
"type":"web_hook",
"address":"my callback address",
}
The response is a code 400 with this body :
{
"error": {
"errors": [
{
"domain": "global",
"reason": "required",
"message": "Required parameter: pageToken",
"locationType": "parameter",
"location": "pageToken"
}
],
"code": 400,
"message": "Required parameter: pageToken"
}
}
This parameter isn't required according for this subscription request but for this one (same url..) : https://developers.google.com/drive/api/v3/reference/changes/watch
Am I missing / misunderstanding something or is there a problem with the documentation ?
Thank you