我试图从 Zuora 中提取一些数据,但 rjson 抛出错误。
library(httr)
library(rjson)
query <- "https://api.zuora.com/rest/v1"
getdata <- GET(url=query, add_headers(apiAccessKeyId="Username", apiSecretAccessKey = "Password", Content-Type = "application/json"))
q <- fromJSON(content(getdata,type="text"))
错误:
No encoding supplied: defaulting to UTF-8.
Error in fromJSON(content(getdata, type = "text")) :
unexpected character '<'
任何帮助是极大的赞赏。