Ejemplo n.º 1
0
         $value = $api->set_delay($_REQUEST["delay"], $_REQUEST["project_id"]);
     } else {
         $value = array("Response" => "Error", "message" => "Invalid arguments");
     }
     exit(json_encode($value));
     break;
 case "update_profile":
     if (isset($_REQUEST["audience_phone"])) {
         $value = $api->update_profile($_REQUEST["audience_phone"]);
     } else {
         $value = "Missing argument";
     }
     break;
 case "select_message_feeds":
     if (isset($_REQUEST["type"])) {
         $value = $api->select_message_feeds($_REQUEST["type"]);
         exit(json_encode($value));
     } 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"])) {