Get Matching Result by Token

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

Get the smart matching results based on the token.

API address

GET: /v2.0/infrareds/{infrared_id}/matching-remotes

Request parameter

Parameter nameTypeINRequiredDescription
infrared_idStringuritrueThe device ID.
tokenStringquerytrueThe token of learning the matching.

Return parameter

Parameter nameTypeDescription
resultMatchedRemotesResultVOThe returned result.

Description of result

Parameter nameTypeDescription
has_nextBooleanSpecifies whether to continue polling for results.
progressStringThe matching progress.
remote_indexsListThe list of matched remote control indexes.

Request example

GET: /v2.0/infrareds/vdevo15345926009****/matching-remotes?token=a5z5s6fg6e5d****

Return example

{
    "result": {
        "remote_indexs": [
            119220006,
            112100030,
            439717174,
            111045001
        ],
        "progress": "100%",
        "has_next": false
    },
    "t": 1631194197369,
    "success": true
}

Error code

For more information, see error code.