Provides the Google API javascript client 'gapi' as appropriate for hosted websites, or if in a Chrome packaged app implement a minimal set of functionality that is Content Security Policy compliant and uses the chrome identity api.
This library is likely not suitable for use without additional modifications.
To be expanded upon, but essentially:
- Add 'identity' permission to manifest.
- Reference this script instead of the apis.google.com online version.
- Call gapi methods as usual.