-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi.h
More file actions
25 lines (22 loc) · 660 Bytes
/
api.h
File metadata and controls
25 lines (22 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#include <iostream>
#include <string>
#define WIN32_LEAN_AND_MEAN
#define CPPHTTPLIB_OPENSSL_SUPPORT
#include "httplib.h"
class API {
private:
httplib::SSLClient client;
public:
API() : client("91.191.173.36", 8000) {
client.enable_server_certificate_verification(false);
}
bool signup(std::string username, std::string password, std::string email, std::string hwid);
int login(std::string username, std::string password, std::string hwid);
bool testApi();
bool getUserInfo();
bool validateProduct(int id);
bool checkLoaderVersion(std::string productName);
bool downloadFile(int id, int type);
bool redeemKey(std::string key);
};