Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "oauth2": {
- "client_id": "999999.apps.googleusercontent.com",
- "scopes": [
- "https://www.googleapis.com/auth/drive.appdata"
- ]
- },
- $.getScript("https://apis.google.com/js/client.js", function () {
- gapi.load('client', function () {
- console.log("gapi.client is loaded")
- gapi.client.load('drive', 'v3', function () {
- console.log("gapi.client.drive is loaded");
- chrome.identity.getAuthToken({'interactive': true}, function (token) {
- gapi.client.setToken({access_token: token});
- console.log("token :", token);
- gapi.client.drive.files.list().then(function (list) {
- console.log(list)
- })
- });
- });
- });
- });
- gapi.client is loaded
- gapi.client.drive is loaded
- token : [TOKEN]
- "code": 403,
- "message": "The granted scopes do not give access to all of the requested spaces."
Add Comment
Please, Sign In to add comment