Get City List

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

Get a list of the cities in the specified province based on the province ID.

API address

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

Request parameter

Parameter name Type IN Required Description
infrared_id String uri true The device ID.
province_id Long uri true The ID of a specified province.

Return parameter

Parameter name Type Description
result List

Description of result

Parameter name Type Description
province_id Long The ID of a specified province.
city_id Long The ID of a specified city.
city_name String The name of a specified city.

Request example

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

Return example

{ "result": [ { "city_name": "xxx City", "province_id": 120000, "city_id": 120100 } ], "t": 1630917833122, "success": true }

Error code

For more information, see error code.