我一直在尝试使用 连接到 Adwords 帐户RAdwords
,但出现以下错误doAuth()
:
rjson::fromJSON(RCurl::postForm(" https://accounts.google.com/o/oauth2/token ", : STRING_ELT() 只能应用于“字符向量”,而不是“原始”) 中的错误
我有正确的凭据和开发人员的令牌,但我仍然无法解决问题。我使用的是Windows 7。回溯如下:
> traceback()
4: .Call("fromJSON", json_str, unexpected.escape, simplify, PACKAGE = "rjson")
3: rjson::fromJSON(RCurl::postForm("https://accounts.google.com/o/oauth2/token",
.opts = opts, code = credlist$c.token, client_id = credlist$c.id,
client_secret = credlist$c.secret, redirect_uri = "urn:ietf:wg:oauth:2.0:oob",
grant_type = "authorization_code", style = "POST"))
2: loadToken(credentials)
1: doAuth()
查看并尝试了其他类似问题的所有选项,例如:使用建议),我也安装了这个版本的RAdwords
.
install_github('jburkhardt/RAdwords', ref = "refresh_token_raw_data")