跳转到: 导航, 搜索
(Created page with '{{api_desc_v2| uri=common/get_province| desc=Return provinces list.| httpMethod=GET| needAuth=false| level={{Api_L1_en}}| rateLimit=true| params= {{api_args|country|true|string|C…')
 
第8行: 第8行:
 
params=
 
params=
 
{{api_args|country|true|string|Country code.}}
 
{{api_args|country|true|string|Country code.}}
{{api_args|capital|false|string|The first letter of the provinces,a-z.Return all of the provinces if the paremeter is not provided.Default is not provided. }}
+
{{api_args|capital|false|string|The first letter of the provinces,a-z.Return all of the provinces if the parameter is not provided.Default is not provided. }}
 
{{api_args|language|false|string|The returned language version.zh-cn:Simplified Chinese; zh-tw:Traditional Chinese; english:English;Default is zh-cn. }}|
 
{{api_args|language|false|string|The returned language version.zh-cn:Simplified Chinese; zh-tw:Traditional Chinese; english:English;Default is zh-cn. }}|
 
result=
 
result=

2012年1月29日 (日) 15:04的版本

common/get_province

Return provinces list.

URL

https://api.weibo.com/2/common/get_province.json

支持格式

JSON

HTTP请求方式

GET

是否需要登录

false
关于登录授权,参见 如何登录授权

访问授权限制

访问级别:Normal
频次限制:true
关于频次限制,参见 接口访问权限说明

请求参数

  必选 类型及范围 说明
access_token true string 采用OAuth授权方式为必填参数,OAuth授权后获得。
country true string Country code.
capital false string The first letter of the provinces,a-z.Return all of the provinces if the parameter is not provided.Default is not provided.
language false string The returned language version.zh-cn:Simplified Chinese; zh-tw:Traditional Chinese; english:English;Default is zh-cn.

注意事项

None

调用样例及调试工具

API测试工具

返回结果

JSON示例

[
    {
        "001011": "北京"
    },
    ...
]

关于错误返回值与错误代码,参见 错误代码说明

返回字段说明

None

其他

None

相关问题

{{{relat_qa}}}


帮助中心 查看更多问题或提问


Language: [[{{{2/uri}}}|中文]]



api评价