I am trying to get the file using google drive api, by default the file is not shareable i want to make it shareable.
Here is my code:-
The issue I was having was I did not enable the Google Drive API in my Google developer console and I did not load the 'client' library in order for gapi.client.request() to work properly with Google Picker.
Below is a working example for a user to click a "share" button, authorize permission to their Google Drive, select multiple images or videos from the Picker modal, and return the file hyperlinks with 'anyone with the hyperlink can view' permissions.
Prerequisites:
The javascript code:
Then the button to call everything in the HTML: