Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- gapi.load('client', () => {
- gapi.client.load('storage', 'v1', authResult =>{
- gapi.auth.authorize({
- client_id: CLIENT_ID,
- scope: SCOPES,
- immediate: false
- },authResult=>{
- if (authResult && !authResult.error) {
- var request = gapi.client.storage.buckets.list({
- 'project': PROJECT_ID
- });
- request.execute(function(resp) {
- console.log(resp)
- });
- } else {
- alert("Un-Authorised")
- }
- });
- });
- });
Add Comment
Please, Sign In to add comment