Page History
Sv translation | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/api/reports/views/:id/table/jsonThis method returns table in JSON format. Resource Information
Request Parameters
Code Block |
Response Structure
JSON response contains elements with following definition: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Name | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
rowsCount | Total number of rows including headers and data | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
name | Table view name | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
header | Array containing header elements | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
body | Array containing data elements |
subsetValueId | If defined, response will return value for selected member of the subset. In case, this parameter is combined with expand = true, all child of the selected member will be loaded. |
| ||
expand | Will expand all available drill-downs. Available values: true / false |
|
Response Structure
Code Block |
---|
{
"rowsCount" : ...,
"name" : ...,
"header" : [ ],
"body" : [ ]
} |
JSON response contains elements with following definition:
Name | Description |
---|---|
rowsCount | Total number of rows including headers and data |
name | Table view name |
header | Array containing header elements |
body | Array containing data elements |
Sample request/response
Using curl
:
Code Block |
---|
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/views/1234/table/json
|
The JSON format response:
Code Block |
---|
{
"rowsCount" : 5,
"name" : "My Table Name",
"header" : [ |
Sample request/response
Using curl
:
Code Block |
---|
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/views/1234/table/json
|
The JSON format response:
Code Block |
---|
{ "rowsCount" : 5, "name" : "My Table Name", "header" : [ [ { "value" : "", "type" : "header" } ], [ { "value" : "", "type" : "header" } ] ], "body" : [ [ { "value" : "Value", "type" : "header" }, ] {], "body" : [ "style" : " color:rgb(77, 77, 77) !important ; background-color:rgb(237, 237, 237); [ { "value" : "Value", "valuetype" : "1,033,054,533,155header" }, ], [{ { "style" : " color:rgb(77, 77, 77) !important "value" : "Value Footnotes; background-color:rgb(237, 237, 237); ", "typevalue" : "header" 1,033,054,533,155" }, ], { [ { "style" : " color:rgb(77, 77, 77) !important ; background-color:rgb(237, 237, 237); "value" : "Value Footnotes", "valuetype" : "1header" }, ], { [ "style" {: "value" : "B" color:rgb(77, 77, 77) !important ; background-color:rgb(237, 237, 237); ", "typevalue" : "header1" }, ], {[ { "style" : " color:rgb(77, 77, 77) !important ; background-color:rgb(237, 237, 237); "value" : "B", "valuetype" : "5header" }, ] ] } |
Next steps
List siblings |
---|
{
"style" : " color:rgb(77, 77, 77) !important ; background-color:rgb(237, 237, 237); ",
"value" : "5"
}
]
]
} |
Next steps
List siblings |
---|
Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/api/reports/views/:id/table/jsonこのメソッドは、JSON形式で表を返します。 リソース情報
リクエストパラメーター
レスポンス構造 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Sv translation | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
/api/reports/views/:id/table/jsonこの方法は、JSONフォーマットでテーブルを返却します。 リソース情報
リクエストパラメータ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
パラメーター | 詳細 | 例 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| テーブルのID。このIDは | 123 |
|
名 | 説明 | ||||||
---|---|---|---|---|---|---|---|
drilldown | ドリルダウンが属性コードと次のような構造で定義されました
|
Code Block |
---|
{
"drilldown": {
"L_COUNTRY_OR_AREA": { "op": "EQ", "value": "Slovakia"},
"L_TYPE": { "op": "IN", "values": [ "Type 1", "Type 2", "Type 3" ]},
"L_DATE":{"op":"NOT_NULL"}
}
} |
Code Block |
---|
{ "rowsCount" : ..., "name" : ..., "header" : [ ], "body" : [ ] } |
JSONレスポンスは、次の定義を持つ要素が含まれます。JSONレスポンスは、次の定義を持つ要素が含まれています:
名 | 説明 |
---|---|
rowsCount | ヘッダーとデータを含む総数行ヘッダーとデータを含む行の総数 |
name | テーブルビュー名表ビュー名 |
header | ヘッダ要素を含む配列ヘッダー要素を含む配列 |
body | データ要素を含む配列 |
サンプルリクエスト/レスポンス
Curl使用:
Code Block |
---|
curl -H "Authorization: OAuth realm=\"https://service.belladati.com/\", oauth_consumer_key=\"myConsumer\", oauth_token=\"mh7an9dkrg59\", oauth_timestamp=\"135131231\", oauth_nonce=\"randomString\"" https://service.belladati.com/api/reports/views/1234/table/json |
JSONフォーマットの応答JSON形式のレスポンス:
Code Block |
---|
{ "rowsCount" : 5, "name" : "My Table Name", "header" : [ [ { "value" : "", "type" : "header" } ], [ { "value" : "", "type" : "header" } ] ], "body" : [ [ { "value" : "Value", "type" : "header" }, { "style" : " color:rgb(77, 77, 77) !important ; background-color:rgb(237, 237, 237); ", "value" : "1,033,054,533,155" } ], [ { "value" : "Value Footnotes", "type" : "header" }, { "style" : " color:rgb(77, 77, 77) !important ; background-color:rgb(237, 237, 237); ", "value" : "1" } ], [ { "value" : "B", "type" : "header" }, { "style" : " color:rgb(77, 77, 77) !important ; background-color:rgb(237, 237, 237); ", "value" : "5" } ] ] } |
次に
List siblings |
---|