Blogger API : Log in with Blogger

Nurul Ratifainah <[email protected]>
Newsgroups gmane.comp.web.blogger.api
Message-ID <[email protected]>
Hello,
 
I would like to integrate my application with Blogger.


I have tried like this:

$("#blogger-connect").on('click', function(e){
        var additionalParams = {
            'callback': function signinCallback(authResult) {
               
                if (authResult['status']['signed_in']) {
                    gapi.client.load('blogger', 'v3', function() {
                        var request = gapi.client.blogger.users.get({
                                      'userId': 'me'
                                 });
                        request.execute(function(response) {
                            console.debug(response);
                        });
                    });
                } 
            }
        };
        gapi.auth.signIn(additionalParams); 
        return false;
    });


The problem is if I pass "me" as user ID, I got "We're sorry, but the value 
for field resource_id was not valid." error message. But when I changed it 
to blogger ID, I was successful to got user's profile data.

Does anyone know how to fix this? Is it possible to make Login with 
Blogger(like login with Facebook, Google+, etc) and get user's profile 
data? 

Thanks.


 
  


-- 
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.