Ejemplo n.º 1
0
if (isset($_REQUEST["action"])) {
    $action = strtolower($_REQUEST["action"]);
    switch ($action) {
        case "get_user_info":
            $value = $api->get_user_info();
            break;
        case "create_user":
            if (isset($_REQUEST["audience_phone"])) {
                $value = $api->create_user($_REQUEST["audience_phone"]);
            } else {
                $value = "Missing argument";
            }
            break;
        case "delete_user":
            if (isset($_REQUEST["audience_phone"])) {
                $value = $api->delete_user($_REQUEST["audience_phone"]);
            } else {
                $value = "Missing argument";
            }
            break;
        case "create_issuu_table":
            $value = $api->create_issuu_table();
            break;
        case "create_audience_table":
            $value = $api->create_audience_table();
            break;
        case "initialize_issuu":
            $value = $api->initialize_issuu();
            break;
        case "create_db":
            $value = $api->create_db();