Get the error 'Daily Limit for Unauthenticated Use Exceeded. Continued use requires signup.' When adding 'https://www.googleapis.com/auth/drive' to scope. If I take this out of the scope it works for all other functions related to the other scopes. I need this in the scope to copy a file.
public handleClientLoad() {
gapi.load('client:auth2', function () {
gapi.client.init({
discoveryDocs: ['https://sheets.googleapis.com/$discovery/rest?version=v4',
'https://www.googleapis.com/discovery/v1/apis/drive/v3/rest'],
clientId: 'MyclientID*.apps.googleusercontent.com',
scope: ` https://www.googleapis.com/auth/drive https://www.googleapis.com/auth/drive.metadata.readonly https://www.googleapis.com/auth/spreadsheets `
}).then(() => {
gapi.client.drive.files.copy({
'fileId': 'My File ID',
'resource': {
'parents': [
'MY Parent File'
],
'name': 'My File Name'
}
})
});
});
}