0

当我尝试从我的网络媒体帐户中获取 Google Analytics(分析)数据时出现此错误。

我正在使用 garb gem 并尝试使用 OAuth2::Client 通过访问令牌获取数据。我正在按照这里提到的步骤https://gist.github.com/samuelsimoes/5161426

(rdb:1) Garb::Management::Profile.all
*** OAuth2::Error Exception: <?xml version="1.0" encoding="UTF-8"?>
<errors xmlns="http://schemas.google.com/g/2005"><error><domain>GData</domain>  
<code>insufficientPermissions</code><internalReason>Insufficient Permission
</internalReason></error></errors>

我已经从 google api 控制台创建了一个应用程序,并使用它的 client_id 和客户端密码来创建 OAuth2::Client.new

4

0 回答 0