title: Integrating Google Plus with Rails
body: <p>I already have the login (OAuth) piece working with my app, what I am trying to do now is pull down the authenticated users' activity list (status feed, for example). </p>
  
  <p>The user has the option to pull this list down after the fact of them being authenticated and here is my code, thus far:</p>
  
  <pre><code># User Model
    def gplus
      auth = authorizations.find_by_provider("gplus")
      client = Google::APIClient.new(application_name: "AppName", application_version: '1.0', authorization: nil)
  
      plus = client.discovered_api('plus', 'v1')
  
      result = client.execute(
        key: API["gplus"][Rails.env]["secret"],
        api_method: plus.people.get,
        parameters: { 'collection' =&gt; 'public', 'userId' =&gt; 'me'  }
      )
  
      return result.data
    end
  </code></pre>
  
  <p>Here is the problem I keep running into (from rails console)</p>
  
  <pre><code>    #&lt;Google::APIClient::Schema::Plus::V1::Person:0x3fe649ed04bc 
  DATA:{"error"=&gt;{"errors"=&gt;[{"domain"=&gt;"usageLimits", "reason"=&gt;"keyInvalid", "message"=&gt;"Bad Request"}], "code"=&gt;400, "message"=&gt;"Bad Request"}}&gt;
  </code></pre>
  
  <p>I am using the <a href="https://github.com/google/google-api-ruby-client" rel="nofollow">https://github.com/google/google-api-ruby-client</a>... any reason why this won't work?</p>