|
Climaps API
version 1
|
Static Public Member Functions | |
| static | getOwnHiddenMeasurements () |
| static | getOwnProfile () |
| static | getOwnSettings () |
| static | setOwnMeasurementHidden () |
| static | setOwnMeasurementVisible () |
| static | setOwnProfile () |
| static | setOwnSettings () |
This class lets your control various account information, such as the settings.
|
static |
Get the list of measurements hidden to the user.
An object such as:
| Property | Type | Description |
|---|---|---|
| stationId | int | Station Id |
| measurements | array | An array of hidden measurements |
The measurements are objects such as:
| Property | Type | Description |
|---|---|---|
| measurementId | int | Measurement Id |
| slot | int | Id of the slot the sensor is installed on |
|
static |
Get the profile of the current user.
An object such as:
| Property | Type | Description |
|---|---|---|
| string | The e-mail address the account is associated with | |
| name | string | Full name |
| phone | string | Phone number |
| fax | string | Fax number |
| address | string | Postal address |
|
static |
Get the settings of the current user.
An object such as:
| Property | Type | Description |
|---|---|---|
| language | string | The language (e.g., fr, en, de) |
| advancedMode | boolean | Whether the account is in advanced or in limited mode |
| announcements | boolean | Whether the user is subscribed to Climaps announcements |
| sortStationsBy | string | Criterion for sorting stations (e.g., id, name) |
|
static |
Make a measurement hidden to the user.
| int | stationId | Station Id |
| int | measurementId | Measurement Id |
| int | slot | Id of the slot the sensor is installed on |
An object such as:
| Property | Type | Description |
|---|---|---|
| success | boolean | Whether hidden status could be saved |
| error | string | An error message in case of failure |
|
static |
Make a measurement visible to the user.
| int | stationId | Station Id |
| int | measurementId | Measurement Id |
| int | slot | Id of the slot the sensor is installed on |
An object such as:
| Property | Type | Description |
|---|---|---|
| success | boolean | Whether hidden status could be saved |
| error | string | An error message in case of failure |
|
static |
Change the profile of the current user.
| string | fax | The fax number |
| string | phone | The phone number |
| string | name | The user's name |
| string | address | Postal address |
An object such as:
| Property | Type | Description |
|---|---|---|
| success | boolean | Whether profile information could be saved |
| error | string | An error message in case of failure |
|
static |
Change the settings of the current user.
| string | language | Language code: de, en, fr, it, or zh |
| string | advancedMode | Optional Whether the account is in advanced mode: true (default), or false |
| string | announcements | Optional Whether to receive announcements: true (default), or false |
| string | sortStationsBy | Optional Criterion for sorting stations: id, or name (default) |
An object such as:
| Property | Type | Description |
|---|---|---|
| success | boolean | Whether profile information could be saved |
| error | string | An error message in case of failure |
1.8.8