class Kgsearch extends Service (View source)

Service definition for Kgsearch (v1).

Searches the Google Knowledge Graph for entities.

For more information about this service, see the API Documentation

Properties

$entities
$rootUrlTemplate

Methods

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Kgsearch service.

Details

__construct(Client|array $clientOrConfig = [], string $rootUrl = null)

Constructs the internal representation of the Kgsearch service.

Parameters

Client|array $clientOrConfig

The client used to deliver requests, or a config array to pass to a new Client instance.

string $rootUrl

The root URL used for requests to the service.