3 #include "../../include/nicehash-api.hpp" 17 this->throwExceptionIfAlgorithmInvalid(algorithm_id);
20 std::string endpoint =
"https://api.nicehash.com/api?method=stats.provider.workers&addr=";
21 std::string url = endpoint + address +
"&algo=" + std::to_string(algorithm_id);
23 std::string response = this->client->
get(url);
virtual std::string get(std::string const url)
GET request the provided url and return the response body as a string.
std::string getProviderWorkerStats(std::string address, int algorithm_id)
Get detailed stats for a provider's workers by algorithm id.
int algorithmNameToId(std::string algorithm_name)
Convert an algorithm name to its id.