Here i am using Google apps script ,I want to use Google picker API to fetch my driver files and folders.
https://console.developers.google.com used to create credentials
But i don't know what will be the "JavaScript redirect URL " for creating the client id .Since i am executing this script from the script editor(Google drive -> new > google sheet -> tools ->script editor ).
Please help to resolve this problem...
"http://localhost:8000". But if you want to get the code on the page, when you select Application type, please select "Other". For "Other", redirect_uri is"urn:ietf:wg:oauth:2.0:oob". When you access to oauth URL using the redirect_uri, you can see the code on the page. Access token got from Google OAuth2 is same for all "Application type"."urn:ietf:wg:oauth:2.0:oob"as redirect_uri. you can see here. And if you selected "Other", you can get client ID at that time.