Phpcraft Realms Module
Static Public Member Functions | List of all members
Phpcraft\Realms\Realms Class Reference

Static Public Member Functions

static sendRequest (Account $account, string $method, string $path)
 

Member Function Documentation

◆ sendRequest()

static Phpcraft\Realms\Realms::sendRequest ( Account  $account,
string  $method,
string  $path 
)
static

Sends an HTTP request to the Realms API.

Parameters
Account$accountThe account to issue the request as. The account in question has to be "online mode" ready.
string$methodThe request method.
string$pathThe path of the request, starting with a slash.
Returns
bool|string The result of curl_exec.