i try this script:
GooglePlus.api_key = Rails.application.secrets.google_plus['app_api_key']
person = GooglePlus::Person.get(u_id, :key => Rails.application.secrets.google_plus['app_api_key'])
unless person.blank?
cursor = person.list_activities
cursor.each do |post|
p = Post.where(:id_ref => post.attributes['id']).first
if p.blank?
Google.import post, user
else
Google.update post, user, p
end
end
end
end
and i receive this message:
RestClient::InternalServerError: 500 Internal Server Error
i have some User connected with google + and after 2minutes i receive this error and not contue to import post.
Hy i have an question:
i try this script: GooglePlus.api_key = Rails.application.secrets.google_plus['app_api_key'] person = GooglePlus::Person.get(u_id, :key => Rails.application.secrets.google_plus['app_api_key'])
end end end end
and i receive this message:
RestClient::InternalServerError: 500 Internal Server Error
i have some User connected with google + and after 2minutes i receive this error and not contue to import post.