Direct messages/destroy

跳转到: 导航, 搜索
(请求参数)
(Response)
第25行: 第25行:
 
  <?xml version="1.0" encoding="UTF-8"?>
 
  <?xml version="1.0" encoding="UTF-8"?>
 
  <direct_message>
 
  <direct_message>
  <id>88619848</id>
+
    <created_at>Fri Dec 25 12:52:19 +0800 2009</created_at>
  <sender_id>11075</sender_id>
+
    <id>1447</id>
  <text>hi,最近好呢?</text>
+
    <text>教育的核心内容不是让孩子做不喜欢的事,而是以“喜欢的游戏”来培养幼儿的能力,这种教育方法绝不是“光玩不培养能力”.</text>
  <recipient_id>10503</recipient_id>
+
    <sender_id>11892</sender_id>
  <created_at>Wed Nov 18 20:30:04 +0000 2009</created_at>
+
    <recipient_id>11075</recipient_id>
  <sender_screen_name>zhulei</sender_screen_name>
+
    <sender_screen_name>user11892</sender_screen_name>
  <recipient_screen_name>timyang</recipient_screen_name>
+
    <recipient_screen_name>user11075</recipient_screen_name>
  <sender>
+
    <sender>
    <id>11075</id>
+
      <id>11892</id>
    <screen_name>zhulei</screen_name>
+
      <screen_name>user11892</screen_name>
    <name>Zhu Lei</name>
+
      <name>user11892</name>
    <location>广州</location>
+
      <province>广东</province>
    <description> </description>
+
      <city>广州</city>
    <profile_image_url>http://tt8.sinaimg.cn/11075/50/1256307436</profile_image_url>
+
      <location>广东 广州</location>
    <followers_count>0</followers_count>
+
      <description>blog: timyang.net</description>
    <friends_count>0</friends_count>
+
      <profile_image_url>http://portrait.sinaimg.cn/11892/50#.jpg</profile_image_url>
    <statuses_count>0</statuses_count>
+
      <domain></domain>
    <favourites_count>0</favourites_count>
+
      <gender></gender>
  </sender>
+
      <email></email>
  <recipient>
+
      <qq></qq>
  <id>10503</id>
+
      <msn></msn>
    <screen_name>timyang</screen_name>
+
      <followers_count>0</followers_count>
    <name>Tim Yang</name>
+
      <friends_count>0</friends_count>
    <location>广州</location>
+
      <statuses_count>0</statuses_count>
    <description>blog: timyang.net</description>
+
      <favourites_count>0</favourites_count>
    <profile_image_url>http://tt8.sinaimg.cn/10503/50/1256306049</profile_image_url>
+
      <created_at>Thu Jan 01 08:00:00 +0800 1970</created_at>
    <followers_count>0</followers_count>
+
      <following>false</following>
    <friends_count>0</friends_count>
+
      <verified>false</verified>
    <statuses_count>0</statuses_count>
+
      <geo_enabled>false</geo_enabled>
    <favourites_count>0</favourites_count>
+
    </sender>
  </recipient>
+
    <recipient>
</direct_message>
+
      <id>11075</id>
 +
      <screen_name>user11075</screen_name>
 +
      <name>user11075</name>
 +
      <province>广东</province>
 +
      <city>广州</city>
 +
      <location>广东 广州</location>
 +
      <description>blog: timyang.net</description>
 +
      <profile_image_url>http://portrait.sinaimg.cn/11075/50#.jpg</profile_image_url>
 +
      <domain></domain>
 +
      <gender></gender>
 +
      <email></email>
 +
      <qq></qq>
 +
      <msn></msn>
 +
      <followers_count>0</followers_count>
 +
      <friends_count>0</friends_count>
 +
      <statuses_count>0</statuses_count>
 +
      <favourites_count>0</favourites_count>
 +
      <created_at>Thu Jan 01 08:00:00 +0800 1970</created_at>
 +
      <following>false</following>
 +
      <verified>false</verified>
 +
      <geo_enabled>false</geo_enabled>
 +
    </recipient>
 +
  </direct_message>
  
 
===使用示例===
 
===使用示例===

2009年12月28日 (一) 14:04的版本

目录

删除私信

按ID删除私信。操作用户必须为私信的接收人。

URL

http://api.t.sina.com.cn/direct_messages/destroy/id.format

格式

xml, json

HTTP请求方式

POST, DELETE

是否需要身份验证

true

请求数限制

false

请求参数

  • id. 必填参数,要删除的私信主键ID.

o Example: http://api.t.sina.com.cn/direct_messages/destroy/12345.json

Response

XML示例:

<?xml version="1.0" encoding="UTF-8"?>
<direct_message>
   <created_at>Fri Dec 25 12:52:19 +0800 2009</created_at>
   <id>1447</id>
   <text>教育的核心内容不是让孩子做不喜欢的事,而是以“喜欢的游戏”来培养幼儿的能力,这种教育方法绝不是“光玩不培养能力”.</text>
   <sender_id>11892</sender_id>
   <recipient_id>11075</recipient_id>
   <sender_screen_name>user11892</sender_screen_name>
   <recipient_screen_name>user11075</recipient_screen_name>
   <sender>
     <id>11892</id>
     <screen_name>user11892</screen_name>
     <name>user11892</name>
     <province>广东</province>
     <city>广州</city>
     <location>广东 广州</location>
     <description>blog: timyang.net</description>
     <profile_image_url>50#.jpg</profile_image_url>
     <domain></domain>
     <gender></gender>
     <email></email>
     <qq></qq>
     <msn></msn>
     <followers_count>0</followers_count>
     <friends_count>0</friends_count>
     <statuses_count>0</statuses_count>
     <favourites_count>0</favourites_count>
     <created_at>Thu Jan 01 08:00:00 +0800 1970</created_at>
     <following>false</following>
     <verified>false</verified>
     <geo_enabled>false</geo_enabled>
   </sender>
   <recipient>
     <id>11075</id>
     <screen_name>user11075</screen_name>
     <name>user11075</name>
     <province>广东</province>
     <city>广州</city>
     <location>广东 广州</location>
     <description>blog: timyang.net</description>
     <profile_image_url>50#.jpg</profile_image_url>
     <domain></domain>
     <gender></gender>
     <email></email>
     <qq></qq>
     <msn></msn>
     <followers_count>0</followers_count>
     <friends_count>0</friends_count>
     <statuses_count>0</statuses_count>
     <favourites_count>0</favourites_count>
     <created_at>Thu Jan 01 08:00:00 +0800 1970</created_at>
     <following>false</following>
     <verified>false</verified>
     <geo_enabled>false</geo_enabled>
   </recipient>
 </direct_message>

使用示例

cURL:

curl -u user:password --http-request DELETE http://api.t.sina.com.cn/direct_messages/destroy/88619848.xml