2 thoughts on “Tutorial: Using Google Service Accounts With A Rails Application

  1. I get this permission error when I try to *insert* an event (listing events works fine):

    $ ruby india.rb
    /Users/ami/.rvm/gems/ruby-2.2.1/gems/google-api-client-0.8.6/lib/google/api_client.rb:662:in `block (2 levels) in execute!’: Forbidden (Google::APIClient::ClientError)
    from /Users/ami/.rvm/gems/ruby-2.2.1/gems/retriable-1.4.1/lib/retriable/retry.rb:27:in `perform’
    from /Users/ami/.rvm/gems/ruby-2.2.1/gems/retriable-1.4.1/lib/retriable.rb:15:in `retriable’
    from /Users/ami/.rvm/gems/ruby-2.2.1/gems/google-api-client-0.8.6/lib/google/api_client.rb:645:in `block in execute!’
    from /Users/ami/.rvm/gems/ruby-2.2.1/gems/retriable-1.4.1/lib/retriable/retry.rb:27:in `perform’
    from /Users/ami/.rvm/gems/ruby-2.2.1/gems/retriable-1.4.1/lib/retriable.rb:15:in `retriable’
    from /Users/ami/.rvm/gems/ruby-2.2.1/gems/google-api-client-0.8.6/lib/google/api_client.rb:636:in `execute!’
    from india.rb:63:in `’

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 )

Facebook photo

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

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.