Note that there are some explanatory texts on larger screens.

plurals
  1. POGet activities of a Google plus user using Rails
    primarykey
    data
    text
    <p>I am trying to read and display activities of a G+ user. Using <strong>Google oauth2</strong> I could able to recieve the access_token of a user after authorization has completed.</p> <p>I use <strong>google_plus</strong> gem to make calls to G+, i could able to recieve user information using below code</p> <p><code>@person = GooglePlus::Person.get("user_id_goes_here", :key => "google_api_key_here")</code></p> <p>but when i try to get the activities using below</p> <p><code>activity = GooglePlus::Activity.get("user_id_goes_here")</code></p> <p>i could able to see the below error,</p> <p><img src="https://i.stack.imgur.com/LlJeN.png" alt="enter image description here"></p> <p>i tried searching the web for a solution, and some suggest that the api call limit exceeded. (10,000 hits/day is default). But i am sure i have used this only with 20-30 calls today.</p> <p>Any suggestions for this issue is appreciated.</p> <p><strong>FYI :</strong> I have just added config code for google_oauth2 in /config/initializers/omniauth.rb file as below <code>provider :google_oauth2,Rails.application.config.client_id , Rails.application.config.client_secret</code></p> <p><strong>Note:</strong> Below is the screenshot when i try to authenticate with Oauth2. I hope this doesnot include Google plus scope, to make it i know i should add {:scope => "REQUIRED_URL_HERE_GOOGLE_PLUS_RELATED"} in omniauth.rb. But not sure what url should i give in there.</p> <p><img src="https://i.stack.imgur.com/W1CIL.png" alt="enter image description here"></p> <p>Thanks, Balan</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload