} 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;