我已经在我的GoodData UI上创建了一个报告。现在我想使用API获取此报告。我花了几个小时来挖掘API文档,但我无法找到一个简单的方法来做到这一点。使用GoodData API提取报告
如果我尝试GDC /执行/生/,则返回
[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
)
你是什么意思“使用API获取报告”?你想从GoodData中导出它吗?所有这些报告都可以使用API导出,或者可以保存报告定义,然后在UI中打开报告。这里的用例是什么? – 2015-02-18 14:30:43
@JiriTobolka我只是想以CSV格式导入我的应用程序中的数据。我在下面的答案中给出的链接是根据我的具体用例。 – Saqib 2015-02-19 06:14:47