模板:Api desc2

跳转到: 导航, 搜索
第10行: 第10行:
 
<span style="text-transform:lowercase;font-weight:600">{{{needAuth}}}</span><br/>
 
<span style="text-transform:lowercase;font-weight:600">{{{needAuth}}}</span><br/>
 
关于授权机制,参见[[授权机制说明|授权机制声明]]
 
关于授权机制,参见[[授权机制说明|授权机制声明]]
== 是否有请求数限制 ==
+
== 请求数限制 ==
 
<span style="text-transform:lowercase;font-weight:600">{{{rateLimit}}}</span><br/>
 
<span style="text-transform:lowercase;font-weight:600">{{{rateLimit}}}</span><br/>
 
关于请求数限制,参见[[Rate-limiting|接口访问权限说明]]
 
关于请求数限制,参见[[Rate-limiting|接口访问权限说明]]

2010年11月30日 (二) 17:53的版本

目录

{{{uri}}}

{{{desc}}}

URL

http://api.t.sina.com.cn/{{{uri}}}.format

返回格式

{{{format}}}

HTTP请求方式

{{{httpMethod}}}

是否需要登录

{{{needAuth}}}
关于授权机制,参见授权机制声明

请求数限制

{{{rateLimit}}}
关于请求数限制,参见接口访问权限说明

请求参数

  必选 类型及范围 说明
source true string 申请应用时分配的AppKey,调用接口时候代表应用的唯一身份。(采用OAuth授权方式不需要此参数)

{{{params}}}

调用示例

XML
curl -u "username:password" {{{postParam}}} "http://api.t.sina.com.cn/{{{uri}}}.xml?source=appkey{{{getParam}}}"
JSON
curl -u "username:password" {{{postParam}}} "http://api.t.sina.com.cn/{{{uri}}}.json?source=appkey{{{getParam}}}"

返回结果

{{{result}}}

注意事项

{{{useAge}}}

其他

{{{otherInfo}}}