ng-gapi

ng-gapi a Google api module for Angular 6+

Downloads
6.9K
Stars
127
Committers
10

Bot releases are hidden (Show)

ng-gapi - IVY SUPPPORT !!!! Latest Release

Published by rubenCodeforges about 4 years ago

Yes you have waited for it for too long , please give it a shot

ng-gapi - Angular 9 support

Published by rubenCodeforges over 4 years ago

Updated dependencies to work with Angular 9 and Ivy.

Breaking changes:

  • Dropped support of rxjs compat lib
ng-gapi - On Load fix

Published by rubenCodeforges over 5 years ago

ng-gapi - Lint fixes and deprecation

Published by rubenCodeforges over 5 years ago

Fixed some lint errors and droped support for Observable.create now using new Observable()

Breaking change:

GoogleApiService.onLoad() now returns boolean as expected and not void

ng-gapi - Drop support for old RxJs

Published by rubenCodeforges about 6 years ago

Old RxJs is not more supported.

use .pipe() see this article https://blog.hackages.io/rxjs-5-5-piping-all-the-things-9d469d1b3f44

ng-gapi - RxJs 6 compatibility

Published by rubenCodeforges over 6 years ago

rxjs compat added

ng-gapi - ng-gapi-0.0.50 - Bugfixes

Published by rubenCodeforges over 6 years ago

Did some bugfixes according to issues.

Changed the lib url

Added some examples in Readme

Updated npm version

ng-gapi - ng-gapi-0.0.45 - Minor bugfixes

Published by rubenCodeforges almost 7 years ago

  • Changing auth to be fulfilled through a promise to handle race condition on redirect logins.
  • Updated libs ( rxjs and others ) and fixed bad imports should now work with Angular5
ng-gapi - ng-gapi-0.0.44 - repo name chnaged

Published by rubenCodeforges about 7 years ago

The repository name has changed to ng-gapi
The links in the repo got updated to reflect that change

ng-gapi - ng-gapi-0.0.43

Published by rubenCodeforges about 7 years ago

Breaking change

this onLoad method doesnt accepts now a callback , instead it is a Observable

Was:

this.googleApi.onLoad(this.loadGapiAuth());

Now

this.googleApi.onLoad().subscribe(() => {
            this.loadGapiAuth();
        });

The config interface has also changed.
New name is NgGapiClientConfig and it extends the gapi ClientConfig
Now you need to change in your config the clientId to client_id

let gapiClientConfig: NgGapiClientConfig = {
    client_id: "CLIENT_ID",
    discoveryDocs: ["https://analyticsreporting.googleapis.com/$discovery/rest?version=v4"],
    scope: [
        "https://www.googleapis.com/auth/analytics.readonly",
        "https://www.googleapis.com/auth/analytics"
    ].join(" ")
};
ng-gapi - ng-gapi-0.0.42-1

Published by rubenCodeforges about 7 years ago

Added all configs for the client


interface ClientConfig {
    clientId: string;
    discoveryDocs: string[];
    scope: string;
    ux_mode?: string;
    fetch_basic_profile?: boolean;
    cookie_policy?: string;
    hosted_domain?: string;
    redirect_uri?: string;
}

For details about the types see the official docs https://developers.google.com/api-client-library/javascript/reference/referencedocs#gapiauth2clientconfig

ng-gapi - ng-gapi-0.0.42

Published by rubenCodeforges over 7 years ago

  • Fixed missing provider issue #9
ng-gapi - ng-gapi-0.0.41 Stabilized

Published by rubenCodeforges over 7 years ago

This release requires latest Angular 4+ and TypeScript 2.3+ versions

  • fixed issue #4
  • npm compilation issue fixed
ng-gapi - ng-gapi 0.0.39

Published by rubenCodeforges over 7 years ago

  • AOT Bugfix
ng-gapi - ng-gapi 0.0.38

Published by rubenCodeforges over 7 years ago

Fixed a bug that caused compilation errors when used as npm package
Updated readme with new configuration object

ng-gapi - Ng-gapi Stable release

Published by rubenCodeforges over 7 years ago

  • Stabilized library to work in Angular 2+ environment.
  • Added detailed README
  • npm publishing added

TODO:

  • add google api resource services
  • test coverage