angular-google-plus icon indicating copy to clipboard operation
angular-google-plus copied to clipboard

Get extra fields like placesLived or birthday

Open ShakurOo opened this issue 9 years ago • 1 comments

According to the documentation (here), how i can find the following informations : placesLived and birthday ? Because when I set the scope : https://www.googleapis.com/auth/plus.me

GooglePlusProvider.setScopes('profile email https://www.googleapis.com/auth/plus.me');

The response data of getUser() returns me basic informations without extra ...

ShakurOo avatar Jul 25 '16 10:07 ShakurOo

I added this method in the module :

f.prototype.getProfile = function() {
    var a = b.defer();
    gapi.client.load("oauth2", "v2", function() {
        gapi.client.oauth2.userinfo.get().execute(function(resp) {
            gapi.client.load("plus", "v1", function() {
                gapi.client.plus.people.get({'userId':resp.id}).execute(function(b) {
                    a.resolve(b);
                    c.$apply();
                });
            });
        });
    });
    return a.promise;
};  

I don't know why the author don't integrate this feature... weird.

ShakurOo avatar Jul 25 '16 10:07 ShakurOo