2 Responses to Tutorial: Using Google Service Accounts with a Rails application

  1. Ami says:

    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 `’

  2. Check if your service account have permission to edit the calendar.

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s