Get Province List

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

Get a list of provinces based on the device ID.

API address

GET: /v2.0/infrareds/{infrared_id}/provinces

Request parameter

Parameter name Type IN Required Description
infrared_id String uri true The device ID.

Return parameter

Parameter name Type Description
result List

Description of result

Parameter name Type Description
province_id Long The ID of a specified province.
province_name String The name of a specified province.

Request example

GET: /v2.0/infrareds/vdevo15345926009****/provinces

Return example

{ "result": [ { "province_name": "Tianjin City", "province_id": 120000 } ], "t": 1630917616194, "success": true }

Error code

For more information, see error code.