Comments (7)
it seems I should use something like that
gapi.load('client:auth2', this.initClient.bind(this));
to achive client
from ng-gapi.
@vitto-moz you can use the GoogleAuthService
in ng-gapi, for auth , see this example https://github.com/rubenCodeforges/ng-gapi#googleauthservice
from ng-gapi.
Thank you! I realized that I should use
gapi.load('client:auth2', this.initClient.bind(this));
then you can achieve gapi.client.init in initClient method
from ng-gapi.
@vitto-moz looks like its what AuthService is doing , see this https://github.com/rubenCodeforges/ng-gapi/blob/master/src/GoogleAuthService.ts#L19
from ng-gapi.
maybe the reason it was not working for me, because there API key absent as a needed prop of config - so I could not achieve properties of gapi I need
from ng-gapi.
Do we have a place to set API key?
from ng-gapi.
@vitto-moz https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiclientsetapikeyapikey
from ng-gapi.
Related Issues (20)
- Disable Google Cookies HOT 2
- GoogleApiModule is not compatibile with Ivy HOT 8
- Cannot find module 'ng-gapi' / Cannot find namespace 'gapi' in Angular 9 HOT 5
- Default install scenario doesn't work with Angular 10: Doesn't find types in ng-gapi but in ng-gapi/lib/src HOT 1
- Does this support Google Drive API integration? HOT 5
- cross-site resource warning HOT 1
- Error while sending email in Angular 8 HOT 1
- Consent Screen / Verification HOT 8
- Feat: Angular 13 Update | Enable Ivy HOT 1
- ng-gapi with Google Drive API - Am I doing this right? HOT 5
- CORS issue on making api request with the token. HOT 6
- Increase Expiry time HOT 3
- Gapi using custom service
- undefined disocveryDocs HOT 17
- Can I access google drive api using ng-gapi ? HOT 4
- Angular 9 : NullInjectorError: No provider for GoogleAuthService! HOT 4
- Using getAuth in a route guard prevents ngZone from working correctly. HOT 7
- Need to get G-Suite contact HOT 3
- Ivy compatability HOT 45
- npm version 0.0.90 is empty HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng-gapi.