nicehash-api-cpp  0.0.1
Public Member Functions | List of all members
Client Class Reference

#include <client.hpp>

Collaboration diagram for Client:

Public Member Functions

virtual ~ Client ()
 
virtual std::string get (std::string const url)
 GET request the provided url and return the response body as a string. More...
 

Detailed Description

Definition at line 6 of file client.hpp.

Constructor & Destructor Documentation

◆ ~ Client()

virtual Client::~ Client ( )
inlinevirtual

Definition at line 9 of file client.hpp.

Member Function Documentation

◆ get()

std::string Client::get ( std::string const  url)
virtual

GET request the provided url and return the response body as a string.

Parameters
urlthe URL to GET request
Returns
The response body

Definition at line 14 of file get.cpp.

References WriteCallback().

Referenced by NiceHashApi::getApiVersion(), NiceHashApi::getAverageGlobalStats(), NiceHashApi::getCurrentGlobalStats(), NiceHashApi::getDetailedProviderStats(), NiceHashApi::getOrdersByAlgorithm(), NiceHashApi::getProviderStats(), and NiceHashApi::getProviderWorkerStats().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files: