English 中文(简体)
google drive api v3 How to listen for the closing event of the login pop-up window
原标题:
componentDidMount () {
const { SCOPES,CLIENT_ID } = this.googleScrent()
async function initializePicker() {
  await gapi.client.load( https://www.googleapis.com/discovery/v1/apis/drive/v3/rest );
}
window.gapi && window.gapi.load( client:picker , initializePicker);
if(window.google) {
  window._tokenClient = google.accounts.oauth2.initTokenClient({
    client_id: CLIENT_ID,
    scope: SCOPES,
    redirect_uri: window.location.origin,
    response_type: "code",
    access_type:  offline ,
    callback:   , // defined later
  })
} else this.setState({noLinkGoogle:true})

}

I want to do some actions by listening for the closing event of the Google login pop-up window, but I did not find any related events in the Google documents. Did I miss any actions? Thank you for your help。

问题回答

暂无回答




相关问题
Live display new added photos from google drive api

Using Google drive Api and a service account I get photos from google drive, all the photos that were originally on the drive are displayed correctly, but if I add a new photo to google drive, the ...

Can t install gdown on kaggle

I am using the following command to link my google drive to kaggle ! conda install -y gdown but I get this error CondaHTTPError: HTTP 000 CONNECTION FAILED for url <https://conda.anaconda.org/...

Is there a G Suite/Google Apps API?

I had several questions regarding the usability of a "G Suite/Google Apps API." I would like to integrate some sort of document/spreadsheet/presentation management directly into an application I am ...

Trouble Running Google Apps Script in shared drive

I am encountering an issue while attempting to run a Google Apps Script attached to a Google Sheet stored on a shared drive which was created using Node.js and the Google Drive API with a service ...

热门标签