@@ -16,8 +16,11 @@ namespace KeyAuth {
1616 public:
1717
1818 std::string name, ownerid, version, url, path;
19+ static bool debug;
1920
20- api (std::string name, std::string ownerid, std::string version, std::string url, std::string path) : name(name), ownerid(ownerid), version(version), url(url), path(path) {}
21+ api (std::string name, std::string ownerid, std::string version, std::string url, std::string path, bool debug = true ) {
22+ debug = debug;
23+ }
2124
2225 void ban (std::string reason = " " );
2326 void init ();
@@ -70,6 +73,7 @@ namespace KeyAuth {
7073 std::string numKeys;
7174 std::string version;
7275 std::string customerPanelLink;
76+ std::string downloadLink;
7377 };
7478
7579 class responsedata {
@@ -102,6 +106,8 @@ namespace KeyAuth {
102106 std::string sessionid, enckey;
103107
104108 static std::string req (std::string data, std::string url);
109+
110+ static void debugInfo (std::string data, std::string url, std::string response, std::string headers);
105111
106112
107113 void load_user_data (nlohmann::json data) {
@@ -131,7 +137,7 @@ namespace KeyAuth {
131137 api::app_data.version = data[XorStr (" version" )];
132138 api::app_data.customerPanelLink = data[XorStr (" customerPanelLink" )];
133139 }
134-
140+
135141 void load_response_data (nlohmann::json data) {
136142 api::response.success = data[XorStr (" success" )];
137143 api::response.message = data[" message" ];
0 commit comments