nicehash-api-cpp  0.0.1
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  */
13  std::string response = this->client->get("https://api.nicehash.com/api?method=stats.global.24h");
14 
15  return response;
16 }
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
std::string getAverageGlobalStats()
Get average (24h) global stats.