nicehash-api-cpp
0.0.1
src
nicehash-api
getAverageGlobalStats.cpp
Go to the documentation of this file.
1
#include <string>
2
3
#include "../../include/nicehash-api.hpp"
4
5
6
/**
7
* \brief Get average (24h) global stats.
8
*
9
* Gets the average (24h) global stats by (GET) requesting https://api.nicehash.com/api?method=stats.global.24h
10
*
11
*/
12
std::string
NiceHashApi::getAverageGlobalStats
(){
13
std::string response = this->client->
get
(
"https://api.nicehash.com/api?method=stats.global.24h"
);
14
15
return
response;
16
}
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
NiceHashApi::getAverageGlobalStats
std::string getAverageGlobalStats()
Get average (24h) global stats.
Definition:
getAverageGlobalStats.cpp:12
Generated on Sat Jul 1 2017 17:31:20 for nicehash-api-cpp by
1.8.13