} else { $value = array("Response" => "Error"); } exit(json_encode($value)); break; case "get_stats": $value = $api->get_stats(); exit(json_encode($value)); break; case "get_delay": $value = $api->get_delay(); exit($value); break; case "set_delay": if (isset($_REQUEST["delay"]) && isset($_REQUEST["project_id"])) { $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"]);