Download the Google file collector in the chrome extension

I am working on a Chrome extension and I would like to download the Google File Picker . I have included the JS API script in my extension (I am including it directly in the package).

When I try to load the collector:

google.setOnLoadCallback(function() { var picker, view; view = new google.picker.View(google.picker.ViewId.DOCS); view.setMimeTypes("application/vnd.unishared.document"); picker = new google.picker.PickerBuilder().setAppId(...").addView(view).setCallback(function() {}).build(); return picker.setVisible(true); }); google.load('picker', '1'); 

It redirects to a blank page without a fatal error registered in the console. Can this API be downloaded in this context?

+4
source share

Source: https://habr.com/ru/post/1486754/


All Articles