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