예제 #1
0
파일: api.php 프로젝트: JaimeA/SkunkWrx
     if (isset($_REQUEST["audience_phone"])) {
         $value = $api->get_NextVideo($_REQUEST["audience_phone"]);
     } else {
         $value = "Missing argument";
     }
     break;
 case "reset_nextvideo":
     if (isset($_REQUEST["audience_phone"])) {
         $value = $api->reset_NextVideo($_REQUEST["audience_phone"]);
     } else {
         $value = "Missing argument";
     }
     break;
 case "set_nextvideo":
     if (isset($_REQUEST["nextvideo"]) && isset($_REQUEST["audience_phone"])) {
         $value = $api->set_NextVideo($_REQUEST["nextvideo"], $_REQUEST["audience_phone"]);
     } else {
         $value = "Missing argument";
     }
     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 {