我已经在我的GoodData UI上创建了一个报告。现在,我想使用API获取这个报告。我花了几个小时挖掘API文档,但我无法找到一种简单的方法来做到这一点。
如果我尝试gdc/execute/raw/,,它会返回
[error] => Array
(
[parameters] => Array
(
[0] => execute
)
[requestId] => 53fPgKcFdkjf8PZ5:4n6x9lp9vk3ydbvs
[component] => GDC
[errorClass] => GDC::Exception::NotFound
[message] => resource %s not found
)如果我尝试gdc/xtab2/executor3,它会返回
[error] => Array
(
[parameters] => Array
(
[0] => report_req
[1] => STRUCTURE INVALID - name of structure:'ReportReq'(tag:report_req), /report_req/ExecutionObject: Object does not match any alternative. Alternatives tried : [STRUCTURE INVALID - name of structure:'ReportReq' ...]
)
[requestId] => a0yRpNUpCPRsbPS0:6nagmwaw61h5g2bn
[component] => Apache::REST
[errorClass] => GDC::Exception::User
[message] => Checking '%s', result %s
)发布于 2015-02-16 12:11:59
最后,我遵循了这段代码,https://gist.github.com/gnilrets/b9d2ce9890d8aaa07042
比阅读整个GoodData API文档要好得多。
发布于 2015-02-12 08:55:22
您的请求分别获得404和400个状态。
当您尝试使用‘gdc/ /gdc/app/projects/{your_project_id}/execute/raw/ /raw/’时,到达我们这边的调用是:"request="POST /gdc/execute/raw/ HTTP/1.1",而不是"POST NotFound HTTP/1.1“,这就是您得到'NotFound‘错误的原因。关于“gdc/xtab2 2/executor3 3”,显然调用的主体中有错误。
请在这里张贴您的电话,他们的身体和你是如何作出他们,或打开支持票与这些细节在https://support.gooddata.com/home,以便我们可以进一步调查。
https://stackoverflow.com/questions/28454748
复制相似问题