Direct messages/destroy
(→请求参数) |
(→Response) |
||
第25行: | 第25行: | ||
<?xml version="1.0" encoding="UTF-8"?> | <?xml version="1.0" encoding="UTF-8"?> | ||
<direct_message> | <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>http://portrait.sinaimg.cn/11892/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>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></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></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