google-picker

Select Folder with google Picker

↘锁芯ラ 提交于 2019-11-29 00:38:47
I'm using google the plugin Picker for Google Drive. My idea is select only the folders and get its ID. Currently not let me select them,now only enter into that directory. I am using this code: function MenuCtrl($scope, $location, appId) { var onFilePicked = function (data) { $scope.$apply(function () { if (data.action == 'picked') { var id = data.docs[0].id; $location.path('/edit/' + id); } }); }; $scope.open = function () { var view = new google.picker.View(google.picker.ViewId.FOLDERS); view.setMimeTypes('application/vnd.google-apps.folder'); var picker = new google.picker.PickerBuilder()

Google Drive Picker - Developer Key is Invalid Error

与世无争的帅哥 提交于 2019-11-28 07:27:36
I started to learn Google Drive Picker API and started with my localhost (I have created my client id and browser key for the domain http://localhost/ and my files locations are localhost/ch1.html etc. Here's the script I wrote in the body part of my document: <script type="text/javascript" src="https://apis.google.com/js/api.js?onload=onApiLoad"></script> <script> function onApiLoad(){ gapi.load('auth',{'callback':onAuthApiLoad}); gapi.load('picker'); } function onAuthApiLoad(){ window.gapi.auth.authorize({ 'client_id':'545195528713-tihc7u0hp9ihta5mrm4l0eon16fpjogi.apps.googleusercontent.com'

Select Folder with google Picker

匆匆过客 提交于 2019-11-27 15:26:53
问题 I'm using google the plugin Picker for Google Drive. My idea is select only the folders and get its ID. Currently not let me select them,now only enter into that directory. I am using this code: function MenuCtrl($scope, $location, appId) { var onFilePicked = function (data) { $scope.$apply(function () { if (data.action == 'picked') { var id = data.docs[0].id; $location.path('/edit/' + id); } }); }; $scope.open = function () { var view = new google.picker.View(google.picker.ViewId.FOLDERS);

Google Drive Picker - Developer Key is Invalid Error

好久不见. 提交于 2019-11-27 01:54:32
问题 I started to learn Google Drive Picker API and started with my localhost (I have created my client id and browser key for the domain http://localhost/ and my files locations are localhost/ch1.html etc. Here's the script I wrote in the body part of my document: <script type="text/javascript" src="https://apis.google.com/js/api.js?onload=onApiLoad"></script> <script> function onApiLoad(){ gapi.load('auth',{'callback':onAuthApiLoad}); gapi.load('picker'); } function onAuthApiLoad(){ window.gapi