Open
Description
Some methods in google-drive-api.js
/noteStorageAPI.js
use Google Drive API v3, but some use v2.
For example, function getTextFileContents
in noteStorageAPI.js
uses Google Drive API v3:
https://github.com/DarthVanger/NeuralNotes/blob/master/src/storage/noteStorageAPI.js#L329
const request = gapi.client.request({
path: '/drive/v3/files/' + requestParams.fileId,
While function updateFileName
in google-drive-api.js
uses Google Drive API v2
https://github.com/DarthVanger/NeuralNotes/blob/master/src/api/google-drive-api.js#L119
let request = gapi.client.request({
'path': '/drive/v2/files/' + fileId,
Go through all the methods and switch from Google Drive API v2 to v3 everywhere.
See the article about v2 vs v3 differences: https://developers.google.com/drive/api/v2/v3versusv2
Metadata
Metadata
Assignees
Labels
No labels