@@ -16,8 +16,11 @@ namespace KeyAuth {
16
16
public:
17
17
18
18
std::string name, ownerid, version, url, path;
19
+ static bool debug;
19
20
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
+ }
21
24
22
25
void ban (std::string reason = " " );
23
26
void init ();
@@ -70,6 +73,7 @@ namespace KeyAuth {
70
73
std::string numKeys;
71
74
std::string version;
72
75
std::string customerPanelLink;
76
+ std::string downloadLink;
73
77
};
74
78
75
79
class responsedata {
@@ -102,6 +106,8 @@ namespace KeyAuth {
102
106
std::string sessionid, enckey;
103
107
104
108
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);
105
111
106
112
107
113
void load_user_data (nlohmann::json data) {
@@ -131,7 +137,7 @@ namespace KeyAuth {
131
137
api::app_data.version = data[XorStr (" version" )];
132
138
api::app_data.customerPanelLink = data[XorStr (" customerPanelLink" )];
133
139
}
134
-
140
+
135
141
void load_response_data (nlohmann::json data) {
136
142
api::response.success = data[XorStr (" success" )];
137
143
api::response.message = data[" message" ];
0 commit comments