http://open.weibo.com/wiki/index.php?title=Statuses/reply/en&feed=atom&action=history
Statuses/reply/en - 版本历史
2024-03-30T00:34:25Z
本wiki的该页面的版本历史
MediaWiki 1.18.2
http://open.weibo.com/wiki/index.php?title=Statuses/reply/en&diff=3579&oldid=prev
2011年1月20日 (四) 08:33 Mingxi
2011-01-20T08:33:30Z
<p></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr valign='top'>
<td colspan='2' style="background-color: white; color:black;">←上一版本</td>
<td colspan='2' style="background-color: white; color:black;">2011年1月20日 (四) 08:33的版本</td>
</tr><tr><td colspan="2" class="diff-lineno">第1行:</td>
<td colspan="2" class="diff-lineno">第1行:</td></tr>
<tr><td class='diff-marker'>−</td><td style="background: #ffa; color:black; font-size: smaller;"><div>{{<del class="diffchange diffchange-inline">api_desc2</del>|</div></td><td class='diff-marker'>+</td><td style="background: #cfc; color:black; font-size: smaller;"><div>{{<ins class="diffchange diffchange-inline">api_desc2_en</ins>|</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>uri=statuses/reply|</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>uri=statuses/reply|</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>desc=Replys a comment. Request must be handed in POST method.|</div></td><td class='diff-marker'> </td><td style="background: #eee; color:black; font-size: smaller;"><div>desc=Replys a comment. Request must be handed in POST method.|</div></td></tr>
</table>
Mingxi
http://open.weibo.com/wiki/index.php?title=Statuses/reply/en&diff=3577&oldid=prev
Mingxi: 创建新页面为 '{{api_desc2| uri=statuses/reply| desc=Replys a comment. Request must be handed in POST method.| format=XML/JSON| httpMethod=POST| needAuth=true| rateLimit=true| params={{api_arg…'
2011-01-20T08:33:20Z
<p>创建新页面为 '{{api_desc2| uri=statuses/reply| desc=Replys a comment. Request must be handed in POST method.| format=XML/JSON| httpMethod=POST| needAuth=true| rateLimit=true| params={{api_arg…'</p>
<p><b>最新页面</b></p><div>{{api_desc2|<br />
uri=statuses/reply|<br />
desc=Replys a comment. Request must be handed in POST method.|<br />
format=XML/JSON|<br />
httpMethod=POST|<br />
needAuth=true|<br />
rateLimit=true|<br />
params={{api_args|cid|true|int64|The comment ID to be replyed}}<br />
{{api_args|comment|true|string|Comment content. It have to be encoded by the URLEncode within 140 Chinese characters.}}<br />
{{api_args|id|true|int64|Weibo ID to be replied}}|<br />
getParam=|<br />
postParam=-d "cid=4949855625&id=4046214423&comment=wahaha"|<br />
result=<br />
===XML Example===<br />
<pre><br />
<?xml version="1.0" encoding="UTF-8"?><br />
<comment><br />
<created_at>Fri Dec 03 10:39:36 +0800 2010</created_at><br />
<id>4977147033</id><br />
<text>回复@zhangwei217245:wakawaka</text><br />
<source><br />
<a href="http://open.t.sina.com.cn">微博开放平台接口</a><br />
</source><br />
<user><br />
<id>1658122963</id><br />
<screen_name>zhangwei217245</screen_name><br />
<name>zhangwei217245</name><br />
<province>11</province><br />
<city>5</city><br />
<location>北京 朝阳区</location><br />
<description>ABCDE</description><br />
<url/><br />
<profile_image_url>http://tp4.sinaimg.cn/1658122963/50/1282754213</profile_image_url><br />
<domain>zhangwei217245</domain><br />
<gender>m</gender><br />
<followers_count>22</followers_count><br />
<friends_count>43</friends_count><br />
<statuses_count>115</statuses_count><br />
<favourites_count>3</favourites_count><br />
<created_at>Tue Nov 03 00:00:00 +0800 2009</created_at><br />
<following>false</following><br />
<verified>false</verified><br />
<allow_all_act_msg>false</allow_all_act_msg><br />
<geo_enabled>true</geo_enabled><br />
<status><br />
<created_at>Thu Dec 02 17:23:52 +0800 2010</created_at><br />
<id>4023418959</id><br />
<text>哎呀妈呀,终于找到组织了。</text><br />
<source><br />
<a href="http://t.sina.com.cn">新浪微博</a><br />
</source><br />
<favorited>false</favorited><br />
<truncated>false</truncated><br />
<geo/><br />
<in_reply_to_status_id/><br />
<in_reply_to_user_id/><br />
<in_reply_to_screen_name/><br />
<retweeted_status><br />
<created_at>Thu Dec 02 17:23:03 +0800 2010</created_at><br />
<id>4023402439</id><br />
<text>再看看在哪AGAIN</text><br />
<source><br />
<a href="">微博开放平台接口</a><br />
</source><br />
<favorited>false</favorited><br />
<truncated>false</truncated><br />
<geo xmlns:georss="http://www.georss.org/georss"><br />
<georss:point>39.984833 116.310005</georss:point><br />
</geo><br />
<in_reply_to_status_id/><br />
<in_reply_to_user_id/><br />
<in_reply_to_screen_name/><br />
<user><br />
<id>1658122963</id><br />
<screen_name>zhangwei217245</screen_name><br />
<name>zhangwei217245</name><br />
<province>11</province><br />
<city>5</city><br />
<location>北京 朝阳区</location><br />
<description>ABCDE</description><br />
<url/><br />
<profile_image_url>http://tp4.sinaimg.cn/1658122963/50/1282754213</profile_image_url><br />
<domain>zhangwei217245</domain><br />
<gender>m</gender><br />
<followers_count>22</followers_count><br />
<friends_count>43</friends_count><br />
<statuses_count>113</statuses_count><br />
<favourites_count>3</favourites_count><br />
<created_at>Tue Nov 03 00:00:00 +0800 2009</created_at><br />
<following>false</following><br />
<verified>false</verified><br />
<allow_all_act_msg>false</allow_all_act_msg><br />
<geo_enabled>true</geo_enabled><br />
</user><br />
</retweeted_status><br />
<annotations/><br />
</status><br />
</user><br />
<status><br />
<created_at>Thu Dec 02 17:14:39 +0800 2010</created_at><br />
<id>4023227965</id><br />
<text>哇哈哈。随便输了个经纬度,就跑到海里去发微博了</text><br />
<source><br />
<a href="http://t.sina.com.cn">新浪微博</a><br />
</source><br />
<favorited>false</favorited><br />
<truncated>false</truncated><br />
<geo/><br />
<in_reply_to_status_id/><br />
<in_reply_to_user_id/><br />
<in_reply_to_screen_name/><br />
<user><br />
<id>1658122963</id><br />
<screen_name>zhangwei217245</screen_name><br />
<name>zhangwei217245</name><br />
<province>11</province><br />
<city>5</city><br />
<location>北京 朝阳区</location><br />
<description>ABCDE</description><br />
<url/><br />
<profile_image_url>http://tp4.sinaimg.cn/1658122963/50/1282754213</profile_image_url><br />
<domain>zhangwei217245</domain><br />
<gender>m</gender><br />
<followers_count>22</followers_count><br />
<friends_count>43</friends_count><br />
<statuses_count>108</statuses_count><br />
<favourites_count>3</favourites_count><br />
<created_at>Tue Nov 03 00:00:00 +0800 2009</created_at><br />
<following>false</following><br />
<verified>false</verified><br />
<allow_all_act_msg>false</allow_all_act_msg><br />
<geo_enabled>true</geo_enabled><br />
</user><br />
<retweeted_status><br />
<created_at>Thu Dec 02 17:06:40 +0800 2010</created_at><br />
<id>4023064087</id><br />
<text>abc</text><br />
<source><br />
<a href="">微博开放平台接口</a><br />
</source><br />
<favorited>false</favorited><br />
<truncated>false</truncated><br />
<geo xmlns:georss="http://www.georss.org/georss"><br />
<georss:point>39.8765 119.5678</georss:point><br />
</geo><br />
<in_reply_to_status_id/><br />
<in_reply_to_user_id/><br />
<in_reply_to_screen_name/><br />
<thumbnail_pic>http://ww2.sinaimg.cn/thumbnail/6b85067djw6dbydsnam1xj.jpg</thumbnail_pic><br />
<bmiddle_pic>http://ww2.sinaimg.cn/bmiddle/6b85067djw6dbydsnam1xj.jpg</bmiddle_pic><br />
<original_pic>http://ww2.sinaimg.cn/large/6b85067djw6dbydsnam1xj.jpg</original_pic><br />
<user><br />
<id>1803880061</id><br />
<screen_name>LoopB</screen_name><br />
<name>LoopB</name><br />
<province>11</province><br />
<city>8</city><br />
<location>北京 海淀区</location><br />
<description/><br />
<url/><br />
<profile_image_url>http://tp2.sinaimg.cn/1803880061/50/0/0</profile_image_url><br />
<domain/><br />
<gender>f</gender><br />
<followers_count>1</followers_count><br />
<friends_count>1</friends_count><br />
<statuses_count>14</statuses_count><br />
<favourites_count>4</favourites_count><br />
<created_at>Fri Aug 27 00:00:00 +0800 2010</created_at><br />
<following>false</following><br />
<verified>false</verified><br />
<allow_all_act_msg>false</allow_all_act_msg><br />
<geo_enabled>true</geo_enabled><br />
</user><br />
</retweeted_status><br />
<annotations/><br />
</status><br />
<reply_comment><br />
<created_at>Thu Dec 02 17:25:25 +0800 2010</created_at><br />
<id>4949855625</id><br />
<text>小新小新。。。我是小浪~~~</text><br />
<user><br />
<id>1658122963</id><br />
<screen_name>zhangwei217245</screen_name><br />
<name>zhangwei217245</name><br />
<province>11</province><br />
<city>5</city><br />
<location>北京 朝阳区</location><br />
<description>ABCDE</description><br />
<url/><br />
<profile_image_url>http://tp4.sinaimg.cn/1658122963/50/1282754213</profile_image_url><br />
<domain>zhangwei217245</domain><br />
<gender>m</gender><br />
<followers_count>22</followers_count><br />
<friends_count>43</friends_count><br />
<statuses_count>115</statuses_count><br />
<favourites_count>3</favourites_count><br />
<created_at>Tue Nov 03 00:00:00 +0800 2009</created_at><br />
<following>false</following><br />
<verified>false</verified><br />
<allow_all_act_msg>false</allow_all_act_msg><br />
<geo_enabled>true</geo_enabled><br />
</user><br />
</reply_comment><br />
</comment><br />
</pre><br />
===JSON Example===<br />
<pre><br />
{<br />
"id" : 4977097789,<br />
"text" : "回复@zhangwei217245:walala",<br />
"created_at" : "Fri Dec 03 10:37:39 +0800 2010",<br />
"source" : "<a href=\"http://open.t.sina.com.cn\" rel=\"nofollow\">微博开放平台接口</a>",<br />
"reply_comment" : <br />
{<br />
"id" : 4949855625,<br />
"text" : "小新小新。。。我是小浪~~~",<br />
"created_at" : "Thu Dec 02 17:25:25 +0800 2010",<br />
"user" : <br />
{<br />
"name" : "zhangwei217245",<br />
"domain" : "zhangwei217245",<br />
"geo_enabled" : true,<br />
"followers_count" : 22,<br />
"statuses_count" : 115,<br />
"favourites_count" : 3,<br />
"city" : "5",<br />
"description" : "ABCDE",<br />
"verified" : false,<br />
"id" : 1658122963,<br />
"gender" : "m",<br />
"friends_count" : 43,<br />
"screen_name" : "zhangwei217245",<br />
"allow_all_act_msg" : false,<br />
"following" : false,<br />
"url" : "",<br />
"profile_image_url" : "http://tp4.sinaimg.cn/1658122963/50/1282754213",<br />
"created_at" : "Tue Nov 03 00:00:00 +0800 2009",<br />
"province" : "11",<br />
"location" : "北京 朝阳区"<br />
}<br />
},<br />
"user" : <br />
{<br />
"name" : "zhangwei217245",<br />
"domain" : "zhangwei217245",<br />
"geo_enabled" : true,<br />
"followers_count" : 22,<br />
"statuses_count" : 115,<br />
"favourites_count" : 3,<br />
"city" : "5",<br />
"description" : "ABCDE",<br />
"verified" : false,<br />
"status" : <br />
{<br />
"created_at" : "Thu Dec 02 17:23:52 +0800 2010",<br />
"text" : "哎呀妈呀,终于找到组织了。",<br />
"truncated" : false,<br />
"retweeted_status" : <br />
{<br />
"created_at" : "Thu Dec 02 17:23:03 +0800 2010",<br />
"text" : "再看看在哪AGAIN",<br />
"truncated" : false,<br />
"in_reply_to_status_id" : "",<br />
"in_reply_to_screen_name" : "",<br />
"geo" : <br />
{<br />
"type" : "Point",<br />
"coordinates" : <br />
[<br />
39.984833,<br />
116.310005<br />
]<br />
},<br />
"user" : <br />
{<br />
"name" : "zhangwei217245",<br />
"domain" : "zhangwei217245",<br />
"geo_enabled" : true,<br />
"followers_count" : 22,<br />
"statuses_count" : 113,<br />
"favourites_count" : 3,<br />
"city" : "5",<br />
"description" : "ABCDE",<br />
"verified" : false,<br />
"id" : 1658122963,<br />
"gender" : "m",<br />
"friends_count" : 43,<br />
"screen_name" : "zhangwei217245",<br />
"allow_all_act_msg" : false,<br />
"following" : false,<br />
"url" : "",<br />
"profile_image_url" : "http://tp4.sinaimg.cn/1658122963/50/1282754213",<br />
"created_at" : "Tue Nov 03 00:00:00 +0800 2009",<br />
"province" : "11",<br />
"location" : "北京 朝阳区"<br />
},<br />
"favorited" : false,<br />
"in_reply_to_user_id" : "",<br />
"id" : 4023402439,<br />
"source" : "<a href=\"\" rel=\"nofollow\">微博开放平台接口</a>"<br />
},<br />
"in_reply_to_status_id" : "",<br />
"annotations" : <br />
[<br />
<br />
],<br />
"in_reply_to_screen_name" : "",<br />
"geo" : null,<br />
"favorited" : false,<br />
"in_reply_to_user_id" : "",<br />
"id" : 4023418959,<br />
"source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"<br />
},<br />
"id" : 1658122963,<br />
"gender" : "m",<br />
"friends_count" : 43,<br />
"screen_name" : "zhangwei217245",<br />
"allow_all_act_msg" : false,<br />
"following" : false,<br />
"url" : "",<br />
"profile_image_url" : "http://tp4.sinaimg.cn/1658122963/50/1282754213",<br />
"created_at" : "Tue Nov 03 00:00:00 +0800 2009",<br />
"province" : "11",<br />
"location" : "北京 朝阳区"<br />
},<br />
"status" : <br />
{<br />
"created_at" : "Thu Dec 02 17:14:39 +0800 2010",<br />
"text" : "哇哈哈。随便输了个经纬度,就跑到海里去发微博了",<br />
"truncated" : false,<br />
"retweeted_status" : <br />
{<br />
"created_at" : "Thu Dec 02 17:06:40 +0800 2010",<br />
"text" : "abc",<br />
"bmiddle_pic" : "http://ww2.sinaimg.cn/bmiddle/6b85067djw6dbydsnam1xj.jpg",<br />
"original_pic" : "http://ww2.sinaimg.cn/large/6b85067djw6dbydsnam1xj.jpg",<br />
"truncated" : false,<br />
"in_reply_to_status_id" : "",<br />
"in_reply_to_screen_name" : "",<br />
"geo" : <br />
{<br />
"type" : "Point",<br />
"coordinates" : <br />
[<br />
39.8765,<br />
119.5678<br />
]<br />
},<br />
"user" : <br />
{<br />
"name" : "LoopB",<br />
"domain" : "",<br />
"geo_enabled" : true,<br />
"followers_count" : 1,<br />
"statuses_count" : 14,<br />
"favourites_count" : 4,<br />
"city" : "8",<br />
"description" : "",<br />
"verified" : false,<br />
"id" : 1803880061,<br />
"gender" : "f",<br />
"friends_count" : 1,<br />
"screen_name" : "LoopB",<br />
"allow_all_act_msg" : false,<br />
"following" : false,<br />
"url" : "",<br />
"profile_image_url" : "http://tp2.sinaimg.cn/1803880061/50/0/0",<br />
"created_at" : "Fri Aug 27 00:00:00 +0800 2010",<br />
"province" : "11",<br />
"location" : "北京 海淀区"<br />
},<br />
"favorited" : false,<br />
"thumbnail_pic" : "http://ww2.sinaimg.cn/thumbnail/6b85067djw6dbydsnam1xj.jpg",<br />
"in_reply_to_user_id" : "",<br />
"id" : 4023064087,<br />
"source" : "<a href=\"\" rel=\"nofollow\">微博开放平台接口</a>"<br />
},<br />
"in_reply_to_status_id" : "",<br />
"annotations" : <br />
[<br />
<br />
],<br />
"in_reply_to_screen_name" : "",<br />
"geo" : null,<br />
"user" : <br />
{<br />
"name" : "zhangwei217245",<br />
"domain" : "zhangwei217245",<br />
"geo_enabled" : true,<br />
"followers_count" : 22,<br />
"statuses_count" : 108,<br />
"favourites_count" : 3,<br />
"city" : "5",<br />
"description" : "ABCDE",<br />
"verified" : false,<br />
"id" : 1658122963,<br />
"gender" : "m",<br />
"friends_count" : 43,<br />
"screen_name" : "zhangwei217245",<br />
"allow_all_act_msg" : false,<br />
"following" : false,<br />
"url" : "",<br />
"profile_image_url" : "http://tp4.sinaimg.cn/1658122963/50/1282754213",<br />
"created_at" : "Tue Nov 03 00:00:00 +0800 2009",<br />
"province" : "11",<br />
"location" : "北京 朝阳区"<br />
},<br />
"favorited" : false,<br />
"in_reply_to_user_id" : "",<br />
"id" : 4023227965,<br />
"source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"<br />
}<br />
}<br />
</pre>|<br />
useAge=<br />
* In order to prevent from repeately submit, it returns 400 error if the content is same as last one posted by user.<br />
* If id or cid are not exist, it returns 400 error.<br />
* If cid is not provided or is illegal, but id parameter is correct, it means this is a comment of a weibo. For the detail of format of comment returned, see [[statuses/comment/en|statuses/comment]]|<br />
otherInfo=<br />
===PHP Example===<br />
Please download PHP SDK with OAUTH supported from [[SDK/en | Weibo SDK Development Kit Dowload Site]] <br> <br />
.<br />
Sample Code: <br />
<pre><br />
//Statuses/reply<br />
$c = new WeiboClient( WB_AKEY , <br />
WB_SKEY , <br />
$_SESSION['last_key']['oauth_token'] , <br />
$_SESSION['last_key']['oauth_token_secret'] );<br />
//to be filled in<br />
$sid='sid';<br />
$comment='comment';<br />
$cid='cid';<br />
$msg=$c->reply($sid, $comment,$cid);<br />
echo($msg['text'];<br />
</pre><br />
}}</div>
Mingxi