nicehash-api-cpp
0.0.1
src
nicehash-api
getCurrentGlobalStats.cpp
Go to the documentation of this file.
1
#include <string>
2
3
#include "../../include/nicehash-api.hpp"
4
5
6
/**
7
* \brief Get current global stats.
8
*
9
* Gets the current global stats by (GET) requesting https://api.nicehash.com/api?method=stats.global.current
10
*
11
*/
12
std::string
NiceHashApi::getCurrentGlobalStats
() {
13
std::string response = this->client->
get
(
"https://api.nicehash.com/api?method=stats.global.current"
);
14
15
return
response;
16
}
NiceHashApi::getCurrentGlobalStats
std::string getCurrentGlobalStats()
Get current global stats.
Definition:
getCurrentGlobalStats.cpp:12
Client::get
virtual std::string get(std::string const url)
GET request the provided url and return the response body as a string.
Definition:
get.cpp:14
Generated on Sat Jul 1 2017 17:31:20 for nicehash-api-cpp by
1.8.13