google/google-api-javascript-client

Need Access Token for Google picker Api

SaraGhonim opened this issue · 1 comments

Hi everyone
I'm working on a very simple web page that doesn't have a sign in Button or a server
I just need to select files from google drive and send URLs to a CMS
I'm using google picker to get URLs of selected files but I have a problem with the access token when I open Picker every time it requests to sign in
the docs show that I should use: gapi.client.setToken(tokenObject) but doesn't show where should this token come from
any help?

@SaraGhonim you can obtain an access token after your user grants the permission to your application using the token model.