5 comments

  1. vishwnath · September 2, 2016

    awesome i spent 1 day to find out how to send body in execute method. But you did a great job i got success in it. Thanks a lot.

    Like

  2. Ney · February 13, 2017

    I keep getting this error: “Authorization failed. Server message: { “error” : “invalid_request”, “error_description” : “Required parameter is missing: grant_type” }”

    Like

    • Yogesh Khater · February 14, 2017

      Seems like you aren’t passing grant_type in parameters while getting access token. Could you comment your parameters ?

      Like

      • Ney · February 14, 2017

        These are my parameters at the moment. Before i did not have that grant_type parameter as it wasn’t specified to include it, after some googling I found this parameter & value and included it, but I get the same error.

        client.authorization = Signet::OAuth2::Client.new(
        :token_credential_uri => ‘https://accounts.google.com/o/oauth2/token’,
        :audience => ‘https://accounts.google.com/o/oauth2/token’,
        :scope => ‘https://www.googleapis.com/auth/calendar’,
        :issuer => ENV[‘GOOGLE_CLIENT_EMAIL’],
        :person => ENV[‘GOOGLE_CALENDAR_EMAIL’],
        :grant_type => ‘authorization_code’,
        :signing_key => key
        )

        Like

      • Yogesh Khater · February 14, 2017

        Try passing jwt-bearer as grant_type as I mentioned above.

        Like

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s