Skip to content

ng-gapi-0.0.43

Compare
Choose a tag to compare
@rubenCodeforges rubenCodeforges released this 23 Sep 12:46
· 70 commits to master since this release

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(" ")
};