* The My Business Verifications API provides an interface for taking * verifications related actions for locations.

* *

* For more information about this service, see the API * Documentation *

* * @author Google, Inc. */ class MyBusinessVerifications extends \Google\Service { public $locations; public $locations_verifications; public $verificationTokens; /** * Constructs the internal representation of the MyBusinessVerifications * service. * * @param Client|array $clientOrConfig The client used to deliver requests, or a * config array to pass to a new Client instance. * @param string $rootUrl The root URL used for requests to the service. */ public function __construct($clientOrConfig = [], $rootUrl = null) { parent::__construct($clientOrConfig); $this->rootUrl = $rootUrl ?: 'https://mybusinessverifications.googleapis.com/'; $this->servicePath = ''; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'mybusinessverifications'; $this->locations = new MyBusinessVerifications\Resource\Locations( $this, $this->serviceName, 'locations', [ 'methods' => [ 'fetchVerificationOptions' => [ 'path' => 'v1/{+location}:fetchVerificationOptions', 'httpMethod' => 'POST', 'parameters' => [ 'location' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'getVoiceOfMerchantState' => [ 'path' => 'v1/{+name}/VoiceOfMerchantState', 'httpMethod' => 'GET', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'verify' => [ 'path' => 'v1/{+name}:verify', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ], ] ] ); $this->locations_verifications = new MyBusinessVerifications\Resource\LocationsVerifications( $this, $this->serviceName, 'verifications', [ 'methods' => [ 'complete' => [ 'path' => 'v1/{+name}:complete', 'httpMethod' => 'POST', 'parameters' => [ 'name' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], ], ],'list' => [ 'path' => 'v1/{+parent}/verifications', 'httpMethod' => 'GET', 'parameters' => [ 'parent' => [ 'location' => 'path', 'type' => 'string', 'required' => true, ], 'pageSize' => [ 'location' => 'query', 'type' => 'integer', ], 'pageToken' => [ 'location' => 'query', 'type' => 'string', ], ], ], ] ] ); $this->verificationTokens = new MyBusinessVerifications\Resource\VerificationTokens( $this, $this->serviceName, 'verificationTokens', [ 'methods' => [ 'generate' => [ 'path' => 'v1/verificationTokens:generate', 'httpMethod' => 'POST', 'parameters' => [], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(MyBusinessVerifications::class, 'Google_Service_MyBusinessVerifications');