我遇到了GoogleAPI快速入门的问题。我无法验证令牌,因为它显示令牌格式无效。最奇怪的是,几个月前我可以在另一个项目上运行它,但现在我什么也做不了。new Exception('This application must be run on the command line.'); * Returns an authorized API();
$client->setApplicationName('Google
因此,我使用data (基于sinatra的框架)创建了一个仪表板,我需要从AnalyticsAPI中获取数据,并将其显示在仪表板中。/api_client'service_account_email# Get the GoogleAPI client
client = Google::APIClient.new