google-api-nodejs-client
google-api-nodejs-client copied to clipboard
Unable to stop channel
Currently attempting to stop a channel that is already created. However, unable to do so.
This is the following code:
oauth.setCredentials({ refresh_token });
const drive = google.drive({ version: "v3", auth: oauth });
const requestBody = {
id: `${watchId}`,
resourceId: `${gdriveFolderId}`
}
drive.channels.stop({ requestBody })
However, whenever I attempt to stop the channel, it keeps returning me an error stating that channel does not exist. I have also tried it using the REST API but got the same error. Thanks for stopping by to ask us a question! Am I missing anything? Like for example, does my request body need to be exactly the same as the request body used to create the watcher?
Hope someone can help. Thank you!