我使用gem'omniauth-google-oauth2'并希望从谷歌分析获得信息,我的omniauth文件有:
provider :google_oauth2, ENV['google_key'], ENV['google_secret'], {scope: 'https://www.googleapis.com/auth/analytics, https://www.googleapis.com/auth/analytics', access_type: 'offline', select_account: true}
但我有错误:
{"errors"=>[{"domain"=>"global", "reason"=>"insufficientPermissions", "message"=>"Insufficient Permission"}], "code"=>403, "message"=>"Insufficient Permission"}: { "error": { "errors": [ { "domain": "global", "reason": "insufficientPermissions", "message": "Insufficient Permission" } ], "code": 403, "message": "Insufficient Permission" } }
我在开发者控制台中启用了Google Analytics。谁能帮帮我?