summaryrefslogtreecommitdiff
path: root/src/web_service/web_backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/web_service/web_backend.h')
-rw-r--r--src/web_service/web_backend.h18
1 files changed, 5 insertions, 13 deletions
diff --git a/src/web_service/web_backend.h b/src/web_service/web_backend.h
index 2753d3b68..d17100398 100644
--- a/src/web_service/web_backend.h
+++ b/src/web_service/web_backend.h
@@ -10,22 +10,14 @@
10namespace WebService { 10namespace WebService {
11 11
12/** 12/**
13 * Gets the current username for accessing services.citra-emu.org.
14 * @returns Username as a string, empty if not set.
15 */
16const std::string& GetUsername();
17
18/**
19 * Gets the current token for accessing services.citra-emu.org.
20 * @returns Token as a string, empty if not set.
21 */
22const std::string& GetToken();
23
24/**
25 * Posts JSON to services.citra-emu.org. 13 * Posts JSON to services.citra-emu.org.
26 * @param url URL of the services.citra-emu.org endpoint to post data to. 14 * @param url URL of the services.citra-emu.org endpoint to post data to.
27 * @param data String of JSON data to use for the body of the POST request. 15 * @param data String of JSON data to use for the body of the POST request.
16 * @param allow_anonymous If true, allow anonymous unauthenticated requests.
17 * @param username Citra username to use for authentication.
18 * @param token Citra token to use for authentication.
28 */ 19 */
29void PostJson(const std::string& url, const std::string& data); 20void PostJson(const std::string& url, const std::string& data, bool allow_anonymous,
21 const std::string& username = {}, const std::string& token = {});
30 22
31} // namespace WebService 23} // namespace WebService