2/common/get province/en
(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…') |
|||
(未显示1个用户的1个中间版本) | |||
第1行: | 第1行: | ||
− | {{ | + | {{api_desc_v2_en| |
uri=common/get_province| | uri=common/get_province| | ||
desc=Return provinces list.| | desc=Return provinces list.| | ||
第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 | + | {{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年2月1日 (三) 14:07的最后版本
common/get_province
Return provinces list.
URL
https://api.weibo.com/2/common/get_province.json
Supported Formats
JSON
HTTP Request Method
GET
Requires Login
false
See the Login and Authorization Mechanism Statement for login and authorization details.
Requests Count Limitation
Level:Normal
Count Limitation:true
See the Interface Access Rights Statement for the request count limitation details.
Request Parameters
Requires | Type and Range | Description | |
---|---|---|---|
source | false | string | This parameter is not needed when using OAuth.The value of this parameter is the AppKey. |
access_token | false | string | This parameter is required when using OAuth.You will get the access_token after oauth authorization. |
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. |
Notes
None
Response
JSON Example
[ { "001011": "北京" }, ... ]
See the Error Code Description for the error information details.
Field Description
None
Others
None
文档更新时间: 2012-02-01