You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

/api/reports/reportId

This method performs loading of report details specified by the id parameter.

Request structure

URL

https://service.belladati.com/api/reports/id

Method

GET, POST

URL parameters

  • id : ID of the report you want to load. This ID is a part of the /api/reports response.

Header parameters

  • oauth_consumer_key: The Consumer Key.
  • oauth_timestamp : The current timestamp.
  • oauth_nonce : A nonce is a random string, uniquely generated for each request.
  • oauth_token : The authorized Request Token received in Step 1 and authorized in Step 2.

Sample request/response

Using the curl:

curl --header "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/reportId

The JSON format response:

{
  "id" : 7741,
  "views" : [
    {
      "id" : 24530,
      "name" : "Overview of selected runs",
      "type" : "table"
    },
    {
      "id" : 24531,
      "name" : "Duration in months",
      "type" : "chart"
    },
    {
      "id" : 24532,
      "name" : "Distances in months",
      "type" : "chart"
    },
    {
      "id" : 24533,
      "name" : "Distances of selected runs",
      "type" : "chart"

    },
    {
      "id" : 24534,
      "name" : "Calories in months",
      "type" : "chart"
    },
    {
      "id" : 24535,
      "name" : "Differences between months",
      "type" : "chart"
    }
  ],
  "name" : "Run analysis",
  "owner" : "Lubomír Micko",
  "dataSet" : {
    "drilldownAttributes" : [
      {
        "name" : "description",
        "code" : "L_DESCRIPTION"
      },
      {
        "name" : "equipmentType",
        "code" : "L_EQUIPMENTTYPE"
      },
      {
        "name" : "name",
        "code" : "L_NAME"
      }
    ]
  },
  "lastChange" : "Tue, 22 May 2012 17:16:31 GMT"
}

Next steps

  • No labels