class CivicInfo extends Service (View source)

Service definition for CivicInfo (v2).

Provides polling places, early vote locations, contest data, election officials, and government representatives for U.S. residential addresses.

For more information about this service, see the API Documentation

Properties

$divisions
$elections
$representatives
$rootUrlTemplate

Methods

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

Constructs the internal representation of the CivicInfo service.

Details

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

Constructs the internal representation of the CivicInfo 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.