Webportal v2

embedded apps

API Reference - media.memoryStation

Required Privacy: Data & Location
Operation:

This API allows to change the value of a radio preset.

Input Parameter
Param name Description Type Unit/Values Example Required
memoryNumber

Number of the preset to change, from 0 to 14.

int

0 to 14

12 true
sid

Retrieve SID in media.stationsList.

int

n/a

134 true
Output Data
No outputted data
Code Example
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
webportal.set(
    /* api name */
    "media.memoryStation",
    /* parameters */
     { 
      "memoryNumber": 12,
      "sid": 134
        }
  )
  /* callback for `REPLY` messages */
  .then((message) => {
    if (message.status === 200) {
      /* handle `REPLY` success */
    }
    else { /* handle `REPLY` error */ }
  })
1
2
3
4
5
6
7
8
9
{
  "id": "7372c16f-5f2f-42c9-84a7-5490e35f1be0", 
  "type": "SET", 
  "api": "media.memoryStation",
  "params":  { 
    "memoryNumber": 12,
    "sid": 134
  }
}
1
2
3
4
5
6
7
8
9
// --- format of the `REPLY` message ---

{
  "id": "7372c16f-5f2f-42c9-84a7-5490e35f1be0",
  "type": "REPLY",
  "api": "media.memoryStation",
  "status": 200,
  "statusText": "OK"
}

false