示例#1
0
文件: api.php 项目: JaimeA/SkunkWrx
     } else {
         $value = "Missing argument";
     }
     break;
 case "select_messages":
     if (isset($_REQUEST["message_feed_id"])) {
         $value = $api->select_messages($_REQUEST["message_feed_id"]);
         exit(json_encode($value));
     } else {
         $value = "Missing argument";
     }
     break;
 case "refresh_message_feeds":
     if (isset($_REQUEST["message_feed_id"])) {
         $api->get_message_feeds();
         $value = $api->refresh_message_feeds($_REQUEST["message_feed_id"]);
         exit(json_encode($value));
     } else {
         $value = array("Response" => array("status" => 401, "message" => "Missing argument"));
         exit(json_encode($value));
     }
     break;
 case "check_push_notifications":
     if (isset($_REQUEST["message_feed_id"])) {
         $value = $api->refresh_message_feeds($_REQUEST["message_feed_id"]);
         exit(json_encode($value));
     } else {
         $value = array("Response" => array("status" => 401, "message" => "Missing argument"));
         exit(json_encode($value));
     }
     break;