Statuses/destroy

跳转到: 导航, 搜索
第1行: 第1行:
 
{{api_desc2|
 
{{api_desc2|
uri=statuses/destroy/:id|
+
uri=direct_messages/destroy/:id|
desc=根据ID删除微博消息。注意:只能删除自己发布的微博消息。 |
+
desc=根据ID删除登录用户收到的私信。|
 
format=XML/JSON|
 
format=XML/JSON|
 
httpMethod=POST/DELETE|
 
httpMethod=POST/DELETE|
 
needAuth=true|
 
needAuth=true|
 
rateLimit=true|
 
rateLimit=true|
params={{api_args|:id|true|int64|要删除的微博消息ID}}|
+
params={{api_args|:id|true|int64|要删除的私信ID。}}|
 
getParam=|
 
getParam=|
postParam=--http-request DELETE|
+
postParam=-X DELETE|
 
result=
 
result=
 
===XML示例===
 
===XML示例===
 
<pre>
 
<pre>
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
<status>
+
<direct_message>
   <created_at>Thu Dec 02 15:09:11 +0800 2010</created_at>
+
   <created_at>Mon Dec 06 11:35:37 +0800 2010</created_at>
   <id>4020772979</id>
+
   <id>722778763</id>
   <text>fTW9YwY</text>
+
   <text>qwe</text>
   <source>
+
   <sender_id>1854740027</sender_id>
    <a href="">微博开放平台接口</a>
+
   <recipient_id>1854835127</recipient_id>
   </source>
+
   <sender_screen_name>siegetest</sender_screen_name>
  <favorited>false</favorited>
+
   <recipient_screen_name>siegetest2</recipient_screen_name>
   <truncated>false</truncated>
+
   <sender>
   <geo/>
+
     <id>1854740027</id>
  <in_reply_to_status_id/>
+
     <screen_name>siegetest</screen_name>
  <in_reply_to_user_id/>
+
     <name>siegetest</name>
  <in_reply_to_screen_name/>
+
   <user>
+
     <id>1803876591</id>
+
     <screen_name>loopa</screen_name>
+
     <name>loopa</name>
+
 
     <province>11</province>
 
     <province>11</province>
 
     <city>8</city>
 
     <city>8</city>
 
     <location>北京 海淀区</location>
 
     <location>北京 海淀区</location>
     <description>AnRHJLCc9Ac0fCY</description>
+
     <description>ABCDE</description>
 
     <url/>
 
     <url/>
     <profile_image_url>http://tp4.sinaimg.cn/1803876591/50/0/1</profile_image_url>
+
     <profile_image_url>http://tp4.sinaimg.cn/1854740027/50/1291272213/1</profile_image_url>
 
     <domain/>
 
     <domain/>
 
     <gender>m</gender>
 
     <gender>m</gender>
     <followers_count>28</followers_count>
+
     <followers_count>2</followers_count>
     <friends_count>2</friends_count>
+
     <friends_count>20</friends_count>
     <statuses_count>13714</statuses_count>
+
     <statuses_count>18</statuses_count>
     <favourites_count>1</favourites_count>
+
     <favourites_count>0</favourites_count>
     <created_at>Wed Dec 01 00:00:00 +0800 2010</created_at>
+
     <created_at>Thu Nov 11 00:00:00 +0800 2010</created_at>
 
     <following>false</following>
 
     <following>false</following>
 
     <verified>false</verified>
 
     <verified>false</verified>
 
     <allow_all_act_msg>false</allow_all_act_msg>
 
     <allow_all_act_msg>false</allow_all_act_msg>
 
     <geo_enabled>true</geo_enabled>
 
     <geo_enabled>true</geo_enabled>
   </user>
+
   </sender>
</status>
+
  <recipient>
 +
    <id>1854835127</id>
 +
    <screen_name>siegetest2</screen_name>
 +
    <name>siegetest2</name>
 +
    <province>11</province>
 +
    <city>8</city>
 +
    <location>北京 海淀区</location>
 +
    <description/>
 +
    <url/>
 +
    <profile_image_url>http://tp4.sinaimg.cn/1854835127/50/0/1</profile_image_url>
 +
    <domain/>
 +
    <gender>m</gender>
 +
    <followers_count>0</followers_count>
 +
    <friends_count>20</friends_count>
 +
    <statuses_count>2</statuses_count>
 +
    <favourites_count>0</favourites_count>
 +
    <created_at>Thu Nov 11 00:00:00 +0800 2010</created_at>
 +
    <following>false</following>
 +
    <verified>false</verified>
 +
    <allow_all_act_msg>false</allow_all_act_msg>
 +
    <geo_enabled>true</geo_enabled>
 +
  </recipient>
 +
</direct_message>
 
</pre>
 
</pre>
 
===JSON示例===
 
===JSON示例===
 
<pre>
 
<pre>
 
{
 
{
     "created_at" : "Thu Dec 02 14:22:35 +0800 2010",
+
     "sender_screen_name" : "zhangwei217245",
     "text" : "CT7rM6v",
+
     "recipient_screen_name" : "微博开放平台",
     "truncated" : false,
+
     "text" : "Wow~~~Congratulations!",
    "in_reply_to_status_id" : "",
+
     "recipient" :  
    "in_reply_to_screen_name" : "",
+
    "geo" : null,
+
     "user" :  
+
 
     {
 
     {
         "name" : "loopa",
+
         "name" : "微博开放平台",
         "domain" : "",
+
         "domain" : "openapi",
 
         "geo_enabled" : true,
 
         "geo_enabled" : true,
         "followers_count" : 28,
+
         "followers_count" : 13366,
         "statuses_count" : 13715,
+
         "statuses_count" : 158,
         "favourites_count" : 1,
+
         "favourites_count" : 0,
 
         "city" : "8",
 
         "city" : "8",
         "description" : "4mcJW0EhJiU1GwN",
+
         "description" : "新浪微博开放平台市场推广官方账号,如有技术问题,请@微博API或者发私信给微博API",
 +
        "verified" : true,
 +
        "status" :
 +
        {
 +
            "created_at" : "Mon Nov 29 16:08:43 +0800 2010",
 +
            "text" : "各位开发者,我们的论坛上线啦~http://sinaurl.cn/h4FWc7 欢迎大家的参与~另外,关于技术相关的问题,可以在论坛上提出,也可以@微博API 这个官方技术支持账号哦~感谢大家对开放平台的支持~[呵呵]",
 +
            "truncated" : false,
 +
            "in_reply_to_status_id" : "",
 +
            "in_reply_to_screen_name" : "",
 +
            "geo" : null,
 +
            "favorited" : false,
 +
            "in_reply_to_user_id" : "",
 +
            "id" : 3958728723,
 +
            "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
 +
        },
 +
        "id" : 11051,
 +
        "gender" : "m",
 +
        "friends_count" : 5,
 +
        "screen_name" : "微博开放平台",
 +
        "allow_all_act_msg" : true,
 +
        "following" : false,
 +
        "url" : "http://open.t.sina.com.cn/",
 +
        "profile_image_url" : "http://tp4.sinaimg.cn/11051/50/1280283165/1",
 +
        "created_at" : "Wed Jan 20 00:00:00 +0800 2010",
 +
        "province" : "11",
 +
        "location" : "北京 海淀区"
 +
    },
 +
    "sender" :
 +
    {
 +
        "name" : "zhangwei217245",
 +
        "domain" : "zhangwei217245",
 +
        "geo_enabled" : true,
 +
        "followers_count" : 24,
 +
        "statuses_count" : 118,
 +
        "favourites_count" : 3,
 +
        "city" : "5",
 +
        "description" : "ABCDE",
 
         "verified" : false,
 
         "verified" : false,
         "id" : 1803876591,
+
        "status" :
 +
        {
 +
            "created_at" : "Sat Dec 04 23:35:20 +0800 2010",
 +
            "text" : "动物丛书的由来。。。http://sinaurl.cn/hbVjvr",
 +
            "truncated" : false,
 +
            "in_reply_to_status_id" : "",
 +
            "annotations" :
 +
            [
 +
 
 +
            ],
 +
            "in_reply_to_screen_name" : "",
 +
            "geo" : null,
 +
            "favorited" : false,
 +
            "in_reply_to_user_id" : "",
 +
            "id" : 4087921127,
 +
            "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
 +
        },
 +
         "id" : 1658122963,
 
         "gender" : "m",
 
         "gender" : "m",
         "friends_count" : 2,
+
         "friends_count" : 44,
         "screen_name" : "loopa",
+
         "screen_name" : "zhangwei217245",
 
         "allow_all_act_msg" : false,
 
         "allow_all_act_msg" : false,
 
         "following" : false,
 
         "following" : false,
 
         "url" : "",
 
         "url" : "",
         "profile_image_url" : "http://tp4.sinaimg.cn/1803876591/50/0/1",
+
         "profile_image_url" : "http://tp4.sinaimg.cn/1658122963/50/1282754213",
         "created_at" : "Wed Dec 01 00:00:00 +0800 2010",
+
         "created_at" : "Tue Nov 03 00:00:00 +0800 2009",
 
         "province" : "11",
 
         "province" : "11",
         "location" : "北京 海淀区"
+
         "location" : "北京 朝阳区"
 
     },
 
     },
     "favorited" : false,
+
     "sender_id" : 1658122963,
     "in_reply_to_user_id" : "",
+
     "recipient_id" : 11051,
     "id" : 4019894325,
+
     "id" : 722715041,
     "source" : "<a href=\"\" rel=\"nofollow\">微博开放平台接口</a>"
+
     "created_at" : "Mon Dec 06 11:21:31 +0800 2010"
 
}
 
}
</pre>|
+
</pre>
useAge=如果参数错误,将返回400错误|
+
{{param_DM}}
 +
{{param_user}}|
 +
useAge=
 +
* 如果提供的私信ID不存在,则返回400错误,提示40010:Error: Direct Message does not exist!
 +
* 如果提供的私信ID不属于当前登录用户,返回400错误,提示:40021:Error: not your own direct message!|
 
otherInfo=
 
otherInfo=
 
===Java示例===
 
===Java示例===
 
请从 [[SDK | 微博SDK开发包下载]] 下载Java SDK<br>
 
请从 [[SDK | 微博SDK开发包下载]] 下载Java SDK<br>
代码示意如下:
+
代码示例如下:
 
  package weibo4j.examples;
 
  package weibo4j.examples;
 
   
 
   
 
  import java.util.List;
 
  import java.util.List;
import weibo4j.Status;
 
import weibo4j.Weibo;
 
 
   
 
   
  public class DeleteStatus {
+
  import weibo4j.DirectMessage;
 +
import weibo4j.Weibo;
 +
import weibo4j.WeiboException;
 
   
 
   
 +
/**
 +
* @author hezhou
 +
*
 +
*/
 +
public class DestroyDirectMessage {
 
  /**
 
  /**
  * 删除一条微博信息
+
  * 删除一条私信
 
  * @param args
 
  * @param args
 
  */
 
  */
 
  public static void main(String[] args) {
 
  public static void main(String[] args) {
 
  System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
 
  System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
    System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
+
    System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
        try {
+
try {
        Weibo weibo = getWeibo(true,args);
+
Weibo weibo = getWeibo(true,args);
        //先发表一篇微博
+
weibo.destroyDirectMessage(Integer.parseInt(args[2]));
        Status status = weibo.updateStatus("测试测试");
+
List<DirectMessage> list = weibo.getDirectMessages();
        System.out.println(status.getId() + " : "+ status.getText()+"  "+status.getCreatedAt());
+
for(DirectMessage msg : list) {
        //删除刚发表的微博
+
System.out.println(msg.toString());
        status = weibo.destroyStatus(status.getId());
+
}
        List<Status> list = weibo.getUserTimeline(args[2]);//args[2]:用户id
+
  } catch (WeiboException e) {
        for(Status st : list) {//遍历当前微博信息
+
        System.out.println(st.getId() + " : "+ st.getText()+"  "+st.getCreatedAt());
+
        }
+
  } catch (Exception e) {
+
 
  e.printStackTrace();
 
  e.printStackTrace();
 
  }
 
  }
 
  }
 
  }
+
  private static Weibo getWeibo(boolean isOauth,String ... args) {
+
  private static Weibo getWeibo(boolean isOauth,String[] args) {
 
  Weibo weibo = new Weibo();
 
  Weibo weibo = new Weibo();
 
  if(isOauth) {//oauth验证方式 args[0]:访问的token;args[1]:访问的密匙
 
  if(isOauth) {//oauth验证方式 args[0]:访问的token;args[1]:访问的密匙
  weibo.setToken(args[0], args[1]);
+
weibo.setToken(args[0], args[1]);
 
  }else {//用户登录方式
 
  }else {//用户登录方式
 
     weibo.setUserId(args[0]);//用户名/ID
 
     weibo.setUserId(args[0]);//用户名/ID
第139行: 第211行:
 
代码示例如下:
 
代码示例如下:
 
<pre>
 
<pre>
//Statuses/destroy
+
//Direct messages/destroy
 +
//删除一条私信
 
$c = new WeiboClient( WB_AKEY ,  
 
$c = new WeiboClient( WB_AKEY ,  
 
                       WB_SKEY ,  
 
                       WB_SKEY ,  
 
                       $_SESSION['last_key']['oauth_token'] ,  
 
                       $_SESSION['last_key']['oauth_token'] ,  
 
                       $_SESSION['last_key']['oauth_token_secret']  );
 
                       $_SESSION['last_key']['oauth_token_secret']  );
//先发表一篇微博
+
//要删除的私信主键ID
$msg = $c->update("测试发表微博");
+
$did = "Direct_Message_ID";
if ($msg === false || $msg === null){
+
$msg = $c->delete_dm( $did );
echo "Error occured";
+
return false;
+
}
+
if (isset($msg['error_code']) && isset($msg['error'])){
+
echo ('Error_code: '.$msg['error_code'].';  Error: '.$msg['error'] );
+
return false;
+
}
+
echo($msg['id']." : ".$msg['text']." ".$msg["created_at"]);
+
//删除刚发表的微博
+
$c->destroy($msg['id']);
+
if ($msg === false || $msg === null){
+
echo "Error occured";
+
return false;
+
}
+
if (isset($msg['error_code']) && isset($msg['error'])){
+
echo ('Error_code: '.$msg['error_code'].';  Error: '.$msg['error'] );
+
return false;
+
}
+
//user id
+
$uid = "User ID";
+
$msg = $c->user_timeline($uid);
+
 
if ($msg === false || $msg === null){
 
if ($msg === false || $msg === null){
 
echo "Error occured";
 
echo "Error occured";
第175行: 第227行:
 
echo ('Error_code: '.$msg['error_code'].';  Error: '.$msg['error'] );
 
echo ('Error_code: '.$msg['error_code'].';  Error: '.$msg['error'] );
 
return false;
 
return false;
}
 
//遍历当前微博信息
 
foreach($msg as $data){
 
echo($data['id']." : ".$data['text']." ".$data["created_at"]);
 
 
}
 
}
 +
echo('Deleted Message Info '.$msg['id'].' : '.$msg['text']);
 
</pre>
 
</pre>
 
}}
 
}}

2010年12月6日 (一) 11:50的版本

目录

direct_messages/destroy/:id

根据ID删除登录用户收到的私信。

URL

http://api.t.sina.com.cn/direct_messages/destroy/:id.(json%7Cxml)

支持格式

XML/JSON

HTTP请求方式

POST/DELETE

是否需要登录

true
关于授权机制,参见授权机制声明

请求数限制

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

请求参数

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

注意事项

  • 如果提供的私信ID不存在,则返回400错误,提示40010:Error: Direct Message does not exist!
  • 如果提供的私信ID不属于当前登录用户,返回400错误,提示:40021:Error: not your own direct message!

返回结果

XML示例

<?xml version="1.0" encoding="UTF-8"?>
<direct_message>
  <created_at>Mon Dec 06 11:35:37 +0800 2010</created_at>
  <id>722778763</id>
  <text>qwe</text>
  <sender_id>1854740027</sender_id>
  <recipient_id>1854835127</recipient_id>
  <sender_screen_name>siegetest</sender_screen_name>
  <recipient_screen_name>siegetest2</recipient_screen_name>
  <sender>
    <id>1854740027</id>
    <screen_name>siegetest</screen_name>
    <name>siegetest</name>
    <province>11</province>
    <city>8</city>
    <location>北京 海淀区</location>
    <description>ABCDE</description>
    <url/>
    <profile_image_url>http://tp4.sinaimg.cn/1854740027/50/1291272213/1</profile_image_url>
    <domain/>
    <gender>m</gender>
    <followers_count>2</followers_count>
    <friends_count>20</friends_count>
    <statuses_count>18</statuses_count>
    <favourites_count>0</favourites_count>
    <created_at>Thu Nov 11 00:00:00 +0800 2010</created_at>
    <following>false</following>
    <verified>false</verified>
    <allow_all_act_msg>false</allow_all_act_msg>
    <geo_enabled>true</geo_enabled>
  </sender>
  <recipient>
    <id>1854835127</id>
    <screen_name>siegetest2</screen_name>
    <name>siegetest2</name>
    <province>11</province>
    <city>8</city>
    <location>北京 海淀区</location>
    <description/>
    <url/>
    <profile_image_url>http://tp4.sinaimg.cn/1854835127/50/0/1</profile_image_url>
    <domain/>
    <gender>m</gender>
    <followers_count>0</followers_count>
    <friends_count>20</friends_count>
    <statuses_count>2</statuses_count>
    <favourites_count>0</favourites_count>
    <created_at>Thu Nov 11 00:00:00 +0800 2010</created_at>
    <following>false</following>
    <verified>false</verified>
    <allow_all_act_msg>false</allow_all_act_msg>
    <geo_enabled>true</geo_enabled>
  </recipient>
</direct_message>

JSON示例

{
    "sender_screen_name" : "zhangwei217245",
    "recipient_screen_name" : "微博开放平台",
    "text" : "Wow~~~Congratulations!",
    "recipient" : 
    {
        "name" : "微博开放平台",
        "domain" : "openapi",
        "geo_enabled" : true,
        "followers_count" : 13366,
        "statuses_count" : 158,
        "favourites_count" : 0,
        "city" : "8",
        "description" : "新浪微博开放平台市场推广官方账号,如有技术问题,请@微博API或者发私信给微博API",
        "verified" : true,
        "status" : 
        {
            "created_at" : "Mon Nov 29 16:08:43 +0800 2010",
            "text" : "各位开发者,我们的论坛上线啦~http://sinaurl.cn/h4FWc7 欢迎大家的参与~另外,关于技术相关的问题,可以在论坛上提出,也可以@微博API 这个官方技术支持账号哦~感谢大家对开放平台的支持~[呵呵]",
            "truncated" : false,
            "in_reply_to_status_id" : "",
            "in_reply_to_screen_name" : "",
            "geo" : null,
            "favorited" : false,
            "in_reply_to_user_id" : "",
            "id" : 3958728723,
            "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
        },
        "id" : 11051,
        "gender" : "m",
        "friends_count" : 5,
        "screen_name" : "微博开放平台",
        "allow_all_act_msg" : true,
        "following" : false,
        "url" : "http://open.t.sina.com.cn/",
        "profile_image_url" : "http://tp4.sinaimg.cn/11051/50/1280283165/1",
        "created_at" : "Wed Jan 20 00:00:00 +0800 2010",
        "province" : "11",
        "location" : "北京 海淀区"
    },
    "sender" : 
    {
        "name" : "zhangwei217245",
        "domain" : "zhangwei217245",
        "geo_enabled" : true,
        "followers_count" : 24,
        "statuses_count" : 118,
        "favourites_count" : 3,
        "city" : "5",
        "description" : "ABCDE",
        "verified" : false,
        "status" : 
        {
            "created_at" : "Sat Dec 04 23:35:20 +0800 2010",
            "text" : "动物丛书的由来。。。http://sinaurl.cn/hbVjvr",
            "truncated" : false,
            "in_reply_to_status_id" : "",
            "annotations" : 
            [

            ],
            "in_reply_to_screen_name" : "",
            "geo" : null,
            "favorited" : false,
            "in_reply_to_user_id" : "",
            "id" : 4087921127,
            "source" : "<a href=\"http://t.sina.com.cn\" rel=\"nofollow\">新浪微博</a>"
        },
        "id" : 1658122963,
        "gender" : "m",
        "friends_count" : 44,
        "screen_name" : "zhangwei217245",
        "allow_all_act_msg" : false,
        "following" : false,
        "url" : "",
        "profile_image_url" : "http://tp4.sinaimg.cn/1658122963/50/1282754213",
        "created_at" : "Tue Nov 03 00:00:00 +0800 2009",
        "province" : "11",
        "location" : "北京 朝阳区"
    },
    "sender_id" : 1658122963,
    "recipient_id" : 11051,
    "id" : 722715041,
    "created_at" : "Mon Dec 06 11:21:31 +0800 2010"
}

字段说明 - direct_message

  • id: 私信ID
  • text: 私信内容
  • sender_id:发送人UID
  • recipient_id: 接受人UID
  • created_at: 发送时间
  • sender_screen_name: 发送人昵称
  • recipient_screen_name:接受人昵称
  • sender: 发送人信息,参考user说明
  • recipient: 接受人信息,参考user说明

字段说明 - user

  • id: 用户UID
  • screen_name: 微博昵称
  • name: 友好显示名称,同微博昵称
  • province: 省份编码(参考省份编码表)
  • city: 城市编码(参考城市编码表)
  • location:地址
  • description: 个人描述
  • url: 用户博客地址
  • profile_image_url: 自定义图像
  • domain: 用户个性化URL
  • gender: 性别,m--男,f--女,n--未知
  • followers_count: 粉丝数
  • friends_count: 关注数
  • statuses_count: 微博数
  • favourites_count: 收藏数
  • created_at: 创建时间
  • following: 是否已关注(此特性暂不支持)
  • verified: 加V标示,是否微博认证用户

其他

Java示例

请从 微博SDK开发包下载 下载Java SDK
代码示例如下:

package weibo4j.examples;

import java.util.List;

import weibo4j.DirectMessage;
import weibo4j.Weibo;
import weibo4j.WeiboException;

/**
* @author hezhou
*
*/
public class DestroyDirectMessage {
	/**
	 * 删除一条私信
	 * @param args
	 */
	public static void main(String[] args) {
		System.setProperty("weibo4j.oauth.consumerKey", Weibo.CONSUMER_KEY);
   	System.setProperty("weibo4j.oauth.consumerSecret", Weibo.CONSUMER_SECRET);
		try {
			Weibo weibo = getWeibo(true,args);
			weibo.destroyDirectMessage(Integer.parseInt(args[2]));
			List<DirectMessage> list = weibo.getDirectMessages();
			for(DirectMessage msg : list) {
				System.out.println(msg.toString());
			}
		} catch (WeiboException e) {
			e.printStackTrace();
		}
	}
	
	private static Weibo getWeibo(boolean isOauth,String[] args) {
		Weibo weibo = new Weibo();
		if(isOauth) {//oauth验证方式 args[0]:访问的token;args[1]:访问的密匙
			weibo.setToken(args[0], args[1]);
		}else {//用户登录方式
   		weibo.setUserId(args[0]);//用户名/ID
   		weibo.setPassword(args[1]);//密码
		}
		return weibo;
	}
}

PHP示例

请从 微博SDK开发包下载 处下载PHP SDK(支持OAuth验证之版本)
代码示例如下:

//Direct messages/destroy
//删除一条私信
$c = new WeiboClient( WB_AKEY , 
                      WB_SKEY , 
                      $_SESSION['last_key']['oauth_token'] , 
                      $_SESSION['last_key']['oauth_token_secret']  );
//要删除的私信主键ID
$did = "Direct_Message_ID";
$msg = $c->delete_dm( $did );
if ($msg === false || $msg === null){
	echo "Error occured";
	return false;
}
if (isset($msg['error_code']) && isset($msg['error'])){
	echo ('Error_code: '.$msg['error_code'].';  Error: '.$msg['error'] );
	return false;
}
echo('Deleted Message Info '.$msg['id'].' : '.$msg['text']);