You are here

public function Client::get in Smart IP 7.2

Same name and namespace in other branches
  1. 6.2 includes/vendor/maxmind/web-service-common/src/WebService/Client.php \MaxMind\WebService\Client::get()

File

includes/vendor/maxmind/web-service-common/src/WebService/Client.php, line 125

Class

Client
This class is not intended to be used directly by an end-user of a MaxMind web service. Please use the appropriate client API for the service that you are using. @package MaxMind\WebService @internal

Namespace

MaxMind\WebService

Code

public function get($service, $path) {
  $request = $this
    ->createRequest($path);
  list($statusCode, $contentType, $body) = $request
    ->get();
  return $this
    ->handleResponse($statusCode, $contentType, $body, $service, $path);
}