User Tools

Site Tools


version_3:get_env_categories

Requesting event categories

An event category is a group of different kind of context information. This can be ACTIVITY, BIO or ENVIRONMENT. The categories aren't supposed to be changed. Categories can be used as a filter for requesting context models.

Authentication required

Yes, please take a look at Authentication. To keep it simple, only the data parameter is mentioned on this page, but keep in mind that the other parameters are also necessary.

Response

JSON

Method

GET

Resource URL

Parameters

The JSON object data is not necessary here since there is no need to transfer any parameters.

Example

Request

data={
}
or do not transfer data at all.

Response

{
   "APIVersion":3,
   "result":1,
   "categories":[
      "ACTIVITY",
      "BIO",
      "ENVIRONMENT"
   ]
}

In case of an error, a different response is sent. Please take a look at Error Responses.

version_3/get_env_categories.txt · Last modified: 01.05.2016 21:57 (external edit)