You are here

private function Client::userAgent in Smart IP 6.2

Same name in this branch
  1. 6.2 includes/vendor/maxmind/web-service-common/src/WebService/Client.php \MaxMind\WebService\Client::userAgent()
  2. 6.2 includes/vendor/geoip2/geoip2/src/WebService/Client.php \GeoIp2\WebService\Client::userAgent()
Same name and namespace in other branches
  1. 7.2 includes/vendor/geoip2/geoip2/src/WebService/Client.php \GeoIp2\WebService\Client::userAgent()
1 call to Client::userAgent()
Client::__construct in includes/vendor/geoip2/geoip2/src/WebService/Client.php
Constructor.

File

includes/vendor/geoip2/geoip2/src/WebService/Client.php, line 91

Class

Client
This class provides a client API for all the GeoIP2 Precision web services. The services are Country, City, and Insights. Each service returns a different set of data about an IP address, with Country returning the least data and Insights the most.

Namespace

GeoIp2\WebService

Code

private function userAgent() {
  return 'GeoIP2-API/' . Client::VERSION;
}