# google-client-api
**Repository Path**: mirrors_Jam3/google-client-api
## Basic Information
- **Project Name**: google-client-api
- **Description**: This module returns a promise which will return a Google Client API Object
- **Primary Language**: Unknown
- **License**: MIT
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2020-11-23
- **Last Updated**: 2026-03-22
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
#google-client-api
##module.exports(onComplete) ⏏
This module is a function which will return a
[Google Client API](https://developers.google.com/api-client-library/javascript/dev/dev_jscript) object assynchronously.
This function returns a promise. (if you're into promises) Which will return the gapi Object.
If you're not into promises then you can simply call this function and pass in a callback object.
**Params**
- onComplete `function` - an optional callback which will return the Google Client API Object.
**Returns**: `Promise` - This function also returns a promise if you're into promises which will
return the Google Client API Object.
##Example
Using with Promise:
```javascript
require( 'google-client-api' )().then( function( gapi ) {
// Do something with the gapi object
});
```
Using with callback:
```javascript
require( 'google-client-api' )( function( gapi ) {
// Do something with the gapi object
});
```