lib/routes/google.js
function url(httpRequest, httpResponse) {
        var response = new Response(httpResponse);

        grasshopper.googleAuthUrl()
            .then(function(url) {
                response.writeSuccess(url);
            })
            .fail(function(message) {
                var err = {
                    code : 400,
                    message : message
                };

                response.writeError(err);
            })
            .done();
    }
function url(httpRequest, httpResponse) {
        var response = new Response(httpResponse);

        grasshopper.googleAuthUrl()
            .then(function(url) {
                response.writeSuccess(url);
            })
            .fail(function(message) {
                var err = {
                    code : 400,
                    message : message
                };

                response.writeError(err);
            })
            .done();
    }
function url ( httpRequest , httpResponse ) { var response = new Response ( httpResponse ) ; grasshopper . googleAuthUrl ( ) . then ( function ( url ) { response . writeSuccess ( url ) ; } ) . fail ( function ( message ) { var err = { code : 400 , message : message } ; response . writeError ( err ) ; } ) . done ( ) ; }
Method will return a google auth url.
Method will return a google auth url .