WoW Addon Manager Client
0.0.1-alpha
A p2p World of Warcraft addon manager
user.cpp
Go to the documentation of this file.
1
#include "
settingsmanager.h
"
2
#include "
response.h
"
3
#include "httplib.h"
4
#include "
utils.h
"
5
#include "
user.h
"
6
7
Response<User>
User::login
(
const
std::string &username,
const
std::string &password) {
8
auto
client =
make_client
();
9
client.Post(
"/api/"
,
""
,
"application/json"
);
10
return
Response<User>
(
""
, 0, *
this
);
11
}
12
13
Response<User>
User::login
(
const
std::string &token) {
14
return
Response<User>
(
""
, 0, *
this
);
15
}
16
17
19
Response<bool>
User::validate
() {
20
return
Response<bool>
(
""
, 0,
false
);
21
}
User::validate
Response< bool > validate()
Definition:
user.cpp:19
User::login
Response< User > login(const std::string &username, const std::string &password)
Definition:
user.cpp:7
response.h
utils.h
settingsmanager.h
Response
Definition:
response.h:12
user.h
make_client
httplib::Client make_client()
Definition:
utils.cpp:31
wam
src
user.cpp
Generated by
1.8.17