@@ -75,9 +75,9 @@ You must call this function prior to using any other KeyAuth function. Otherwise
7575
7676```cpp
7777KeyAuthApp.init();
78- if (!KeyAuthApp.data .success)
78+ if (!KeyAuthApp.response .success)
7979{
80- std::cout << skCrypt("\n Status: ") << KeyAuthApp.data .message;
80+ std::cout << skCrypt("\n Status: ") << KeyAuthApp.response .message;
8181 Sleep(1500);
8282 exit(0);
8383}
@@ -87,11 +87,11 @@ if (!KeyAuthApp.data.success)
8787
8888``` cpp
8989KeyAuthApp.fetchstats();
90- std::cout << skCrypt(" \n\n Number of users: " ) << KeyAuthApp.data .numUsers;
91- std::cout << skCrypt(" \n Number of online users: " ) << KeyAuthApp.data .numOnlineUsers;
92- std::cout << skCrypt(" \n Number of keys: " ) << KeyAuthApp.data .numKeys;
93- std::cout << skCrypt(" \n Application Version: " ) << KeyAuthApp.data .version;
94- std::cout << skCrypt(" \n Customer panel link: " ) << KeyAuthApp.data .customerPanelLink;
90+ std::cout << skCrypt(" \n\n Number of users: " ) << KeyAuthApp.app_data .numUsers;
91+ std::cout << skCrypt(" \n Number of online users: " ) << KeyAuthApp.app_data .numOnlineUsers;
92+ std::cout << skCrypt(" \n Number of keys: " ) << KeyAuthApp.app_data .numKeys;
93+ std::cout << skCrypt(" \n Application Version: " ) << KeyAuthApp.app_data .version;
94+ std::cout << skCrypt(" \n Customer panel link: " ) << KeyAuthApp.app_data .customerPanelLink;
9595```
9696
9797## ** Check session validation**
@@ -101,7 +101,7 @@ Use this to see if the user is logged in or not.
101101``` cpp
102102std::cout << skCrypt(" \n Checking session validation status (remove this if causing your loader to be slow)" );
103103KeyAuthApp.check();
104- std::cout << skCrypt(" \n Current Session Validation Status: " ) << KeyAuthApp.data .message;
104+ std::cout << skCrypt(" \n Current Session Validation Status: " ) << KeyAuthApp.response .message;
105105```
106106
107107## ** Check blacklist status**
@@ -124,9 +124,9 @@ std::cin >> username;
124124std::cout << skCrypt(" \n Enter password: " );
125125std::cin >> password;
126126KeyAuthApp.login(username, password);
127- if (!KeyAuthApp.data .success)
127+ if (!KeyAuthApp.response .success)
128128{
129- std::cout << skCrypt("\n Status: ") << KeyAuthApp.data .message;
129+ std::cout << skCrypt("\n Status: ") << KeyAuthApp.response .message;
130130 Sleep (1500);
131131 exit(0);
132132}
@@ -145,9 +145,9 @@ std::cin >> password;
145145std::cout << skCrypt(" \n Enter license: " );
146146std::cin >> key;
147147KeyAuthApp.regstr(username, password, key);
148- if (!KeyAuthApp.data .success)
148+ if (!KeyAuthApp.response .success)
149149{
150- std::cout << skCrypt("\n Status: ") << KeyAuthApp.data .message;
150+ std::cout << skCrypt("\n Status: ") << KeyAuthApp.response .message;
151151 Sleep (1500);
152152 exit(0);
153153}
@@ -180,9 +180,9 @@ std::string key;
180180std::cout << skCrypt(" \n Enter license: " );
181181std::cin >> key;
182182KeyAuthApp.license(key);
183- if (!KeyAuthApp.data .success)
183+ if (!KeyAuthApp.response .success)
184184{
185- std::cout << skCrypt("\n Status: ") << KeyAuthApp.data .message;
185+ std::cout << skCrypt("\n Status: ") << KeyAuthApp.response .message;
186186 Sleep (1500);
187187 exit(0);
188188}
@@ -205,24 +205,24 @@ Show information for current logged-in user.
205205
206206``` cpp
207207std::cout << skCrypt(" \n User data:" );
208- std::cout << skCrypt(" \n Username: " ) << KeyAuthApp.data .username;
209- std::cout << skCrypt(" \n IP address: " ) << KeyAuthApp.data .ip;
210- std::cout << skCrypt(" \n Hardware-Id: " ) << KeyAuthApp.data .hwid;
211- std::cout << skCrypt(" \n Create date: " ) << tm_to_readable_time(timet_to_tm(string_to_timet(KeyAuthApp.data .createdate)));
212- std::cout << skCrypt(" \n Last login: " ) << tm_to_readable_time(timet_to_tm(string_to_timet(KeyAuthApp.data .lastlogin)));
208+ std::cout << skCrypt(" \n Username: " ) << KeyAuthApp.response .username;
209+ std::cout << skCrypt(" \n IP address: " ) << KeyAuthApp.user_data .ip;
210+ std::cout << skCrypt(" \n Hardware-Id: " ) << KeyAuthApp.user_data .hwid;
211+ std::cout << skCrypt(" \n Create date: " ) << tm_to_readable_time(timet_to_tm(string_to_timet(KeyAuthApp.user_data .createdate)));
212+ std::cout << skCrypt(" \n Last login: " ) << tm_to_readable_time(timet_to_tm(string_to_timet(KeyAuthApp.user_data .lastlogin)));
213213std::cout << skCrypt(" \n Subscription name(s): " );
214214std::string subs;
215- for (std::string value : KeyAuthApp.data .subscriptions)subs += value + " " ;
215+ for (std::string value : KeyAuthApp.user_data .subscriptions)subs += value + " " ;
216216std::cout << subs;
217- std::cout << skCrypt(" \n Subscription expiry: " ) << tm_to_readable_time(timet_to_tm(string_to_timet(KeyAuthApp.data .expiry)));
217+ std::cout << skCrypt(" \n Subscription expiry: " ) << tm_to_readable_time(timet_to_tm(string_to_timet(KeyAuthApp.user_data .expiry)));
218218```
219219
220220## ** Check subscription name of user**
221221
222222If you want to wall off parts of your app to only certain users, you can have multiple subscriptions with different names. Then, when you create licenses that correspond to the level of that subscription, users who use those licenses will get a subscription with the name of the subscription that corresponds to the level of the license key they used.
223223
224224``` cpp
225- for (std::string subs : KeyAuthApp.data .subscriptions)
225+ for (std::string subs : KeyAuthApp.user_data .subscriptions)
226226{
227227 if (subs == "default")
228228 {
@@ -297,9 +297,9 @@ Send HTTP requests to URLs securely without leaking the URL in your application.
297297
298298``` cpp
299299std::string resp = KeyAuthApp.webhook(" Sh1j25S5iX" , " &mak=best&debug=1" );
300- if (!KeyAuthApp.data .success) // check whether webhook request sent correctly
300+ if (!KeyAuthApp.response .success) // check whether webhook request sent correctly
301301{
302- std::cout << skCrypt("\n\n Status: ") << KeyAuthApp.data .message;
302+ std::cout << skCrypt("\n\n Status: ") << KeyAuthApp.response .message;
303303 Sleep (1500);
304304 exit(0);
305305}
@@ -318,9 +318,9 @@ Keep files secure by providing KeyAuth your file download link on the KeyAuth da
318318``` cpp
319319// remember, certain paths like windows folder will require you to turn on auto run as admin https://stackoverflow.com/a/19617989
320320std::vector<std::uint8_t > bytes = KeyAuthApp.download(" 362906" );
321- if (!KeyAuthApp.data .success) // check whether file downloaded correctly
321+ if (!KeyAuthApp.response .success) // check whether file downloaded correctly
322322{
323- std::cout << skCrypt("\n\n Status: ") << KeyAuthApp.data .message;
323+ std::cout << skCrypt("\n\n Status: ") << KeyAuthApp.response .message;
324324 Sleep (1500);
325325 exit(0);
326326}
@@ -335,9 +335,9 @@ Allow users to communicate amongst themselves in your program.
335335
336336```cpp
337337KeyAuthApp.chatget("test");
338- for (int i = 0; i < KeyAuthApp.data .channeldata.size(); i++)
338+ for (int i = 0; i < KeyAuthApp.response .channeldata.size(); i++)
339339{
340- std::cout << "\n Author:" + KeyAuthApp.data .channeldata[i].author + " | Message:" + KeyAuthApp.data .channeldata[i].message + " | Send Time:" + tm_to_readable_time(timet_to_tm(string_to_timet(KeyAuthApp.data .channeldata[i].timestamp)));
340+ std::cout << "\n Author:" + KeyAuthApp.user_data .channeldata[i].author + " | Message:" + KeyAuthApp.user_data .channeldata[i].message + " | Send Time:" + tm_to_readable_time(timet_to_tm(string_to_timet(KeyAuthApp.user_data .channeldata[i].timestamp)));
341341}
342342```
343343
@@ -347,7 +347,7 @@ std::string message;
347347std::getline (std::cin, message);
348348if (!KeyAuthApp.chatsend("test", message))
349349{
350- std::cout << KeyAuthApp.data .message << std::endl;
350+ std::cout << KeyAuthApp.response .message << std::endl;
351351}
352352```
353353
@@ -362,8 +362,8 @@ std::cout << skCrypt("\n Change Username To: ");
362362std::string newusername;
363363std::cin >> newusername;
364364KeyAuthApp.changeusername(newusername);
365- if (KeyAuthApp.data .success)
365+ if (KeyAuthApp.response .success)
366366{
367- std::cout << KeyAuthApp.data .message << std::endl;
367+ std::cout << KeyAuthApp.response .message << std::endl;
368368}
369369```
0 commit comments