0

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
    )
4

2 に答える 2

0

最終的に、私はこのコードをたどりましたhttps://gist.github.com/gnilrets/b9d2ce9890d8aaa07042

GoodData API ドキュメント全体を読むよりもはるかに優れています。

于 2015-02-16T12:11:59.627 に答える