Direct messages/destroy
目录 |
删除私信
按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> <id>88619848</id> <sender_id>11075</sender_id> <text>hi,最近好呢?</text> <recipient_id>10503</recipient_id> <created_at>Wed Nov 18 20:30:04 +0000 2009</created_at> <sender_screen_name>zhulei</sender_screen_name> <recipient_screen_name>timyang</recipient_screen_name> <sender> <id>11075</id> <screen_name>zhulei</screen_name> <name>Zhu Lei</name> <location>广州</location> <description> </description> <profile_image_url>http://tt8.sinaimg.cn/11075/50/1256307436</profile_image_url> <followers_count>0</followers_count> <friends_count>0</friends_count> <statuses_count>0</statuses_count> <favourites_count>0</favourites_count> </sender> <recipient> <id>10503</id> <screen_name>timyang</screen_name> <name>Tim Yang</name> <location>广州</location> <description>blog: timyang.net</description> <profile_image_url>http://tt8.sinaimg.cn/10503/50/1256306049</profile_image_url> <followers_count>0</followers_count> <friends_count>0</friends_count> <statuses_count>0</statuses_count> <favourites_count>0</favourites_count> </recipient> </direct_message>
使用示例
cURL:
curl -u user:password --http-request DELETE http://api.t.sina.com.cn/direct_messages/destroy/88619848.xml