Configuration
Ondra edited this page Aug 24, 2012
·
5 revisions
First create project at google console.
Services setting has priority. If not set up system use global.
# global
GoogleApi.configure do
client_id "1"
# services
SERVICE do
client_id "2"
end
end
# ----- OR -----
GoogleApi.config.client_id = "4"
GoogleApi.config.ga.client_id = "5"
name | example | note |
---|---|---|
Global | ||
client_id | 123456.apps.googleusercontent.com | required for oauth 2 |
client_secret | 123456123456123456 | |
redirect_uri | http://localhost/oauth2callback | |
client_developer_email | 123456@developer.gserviceaccount.com | required for login by cert |
client_cert_file | /home/user/app/123456-privatekey.p12 | |
key_secret | notasecret | |
Google analytics | ||
cache | default: GoogleApi::Cache.new | more information Cache |