Skip to content

Instantly share code, notes, and snippets.

@Karthik-B-06
Created March 15, 2019 15:44
Show Gist options
  • Save Karthik-B-06/d2afb55bef22afb214d5770a7dc24f90 to your computer and use it in GitHub Desktop.
Save Karthik-B-06/d2afb55bef22afb214d5770a7dc24f90 to your computer and use it in GitHub Desktop.
async driveIconClicked() {
console.log("Clicked");
await gapi.load("auth2", () => {
console.log("Auth2 Loaded");
gapi.auth2.authorize(
{
client_id: this.clientId,
scope: this.scope,
immediate: false
},
this.handleAuthResult
);
});
gapi.load("picker", () => {
console.log("Picker Loaded");
this.pickerApiLoaded = true;
this.createPicker();
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment