Get Learning Codes

Last Updated on : 2023-06-20 14:54:05download

Get the learning codes that are saved by the specified remote control based on the remote control ID.

API address

GET: /v2.0/infrareds/{infrared_id}/remotes/{remote_id}/learning-codes

Request parameter

Parameter nameTypeINRequiredDescription
infrared_idStringuritrueThe device ID.
remote_idStringuritrueThe ID of the specified remote control.

Return parameter

Parameter nameTypeDescription
resultListThe returned result.

Description of result

Parameter nameTypeDescription
idLongThe key ID.
remote_idStringThe ID of the specified remote control.
keyStringThe key.
key_nameStringThe name of the specified key.
codeStringThe code of the specified key.
learn_idLongThe ID of the specified learning code.

Request example

GET: /v2.0/infrareds/vdevo15345926009****/remotes/d5s65ca55/learning-codes

Return example

{
    "result": [
        {
            "learn_id": "13****",
            "code": "c42230112602f401260226022602260226022602260226022602260226027206260226022602720626027206260272062602720626027206260272065802f401260272062602260226027206260226022602260226024006260226022602260226022602260272062602260226027206260272062602260258024006260272062602720626024c9af6226608260220bf",
            "remote_id": "6c62e73271bc728ec****",
            "key_name": "test",
            "id": "257****",
            "key": "test"
        }
    ],
    "t": 1631094584640,
    "success": true
}

Error code

For more information, see error code.