rubenCodeforges / ng-gapi

ng-gapi a Google api module for Angular 6+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can I access google drive api using ng-gapi ?

Alec-Aldrine-Lakra opened this issue · comments

Yes you can , just use ng-gapi to generate a token and simply use the google drive api https://developers.google.com/drive/api/v3/about-sdk

I am able to generate the token after authenticating but then I also want to generate the refresh token . How do I get refresh token ?

const instance  = gapi.auth2.getAuthInstance()
authInstance.grantOfflineAccess() // returns promise with code - the token

https://developers.google.com/identity/sign-in/web/reference#googleauthgrantofflineaccessoptions

Inactivity