Google picker auth popup is being blocked

后端 未结 4 2066

I have a mobile site which lists jobs, the user applies and uploads their CV (resume) - I want them to be able to choose a file from their Google Drive.

I\'ve create

4条回答
  •  青春惊慌失措
    2021-01-02 07:14

    I have it working now.

    In the example for the picker, https://developers.google.com/picker/docs/, it calls:

     
    

    In this example, https://developers.google.com/api-client-library/javascript/start/start-js, it calls:

    
    

    Using client.js fixes the 'TypeError: gapi.auth is undefined' issue, and thus the login popup works.

    Maybe api.js is an older version of the API?

提交回复
热议问题