来自ID开放平台
common/get_provinces
查询指定省份的城市列表
URL
http://api.10000.com/common/get_provinces
HTTP请求方式
GET
请求参数
必选 | 类型及范围 | 说明 | |
---|---|---|---|
client_id | true | string | 申请应用时分配的AppKey。 |
access_token | true | string | 采用OAuth授权方式为必填参数,OAuth授权后获得。 |
province | true | integer | 省份ID |
返回数据
返回值字段 | 字段类型 | 字段说明 |
---|---|---|
id | integer | 城市ID |
region | string | 城市名称 |
code1 | integer | 城市编码 |
[ { "id": "3173", "region": "玉树", "code1": "18876160" }, { "id": "3180", "region": "海西", "code1": "18876416" }, { "id": "3187", "region": "果洛", "code1": "18875904" }, ...... ]