mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-07-14 00:01:30 -04:00
skeleton code for metrics
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
//
|
||||
// Created by Darth on 10/17/2016.
|
||||
//
|
||||
|
||||
#include "webAPIHeartbeat.h"
|
||||
|
||||
using namespace StellaBellum;
|
||||
|
||||
webAPIHeartbeat:webAPIHeartbeat() {
|
||||
vxCplEncryptedString u = vxENCRYPT("https://login.stellabellum.net/metriccontroller/shoulderTap?type=server");
|
||||
|
||||
webAPI handle = webAPI::webAPI(u.decrypt());
|
||||
|
||||
handle.addJsonData("ip", "test");
|
||||
|
||||
bool result = fetch.submit(); // data is stored as a class member
|
||||
|
||||
// do stuff
|
||||
|
||||
delete handle;
|
||||
};
|
||||
Reference in New Issue
Block a user