source: vendor/google/apiclient-services/src/AddressValidation.php@ f9c482b

Last change on this file since f9c482b was f9c482b, checked in by Vlado 222039 <vlado.popovski@…>, 7 days ago

Upload new project files

  • Property mode set to 100644
File size: 3.1 KB
Line 
1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service;
19
20use Google\Client;
21
22/**
23 * Service definition for AddressValidation (v1).
24 *
25 * <p>
26 * The Address Validation API allows developers to verify the accuracy of
27 * addresses. Given an address, it returns information about the correctness of
28 * the components of the parsed address, a geocode, and a verdict on the
29 * deliverability of the parsed address.</p>
30 *
31 * <p>
32 * For more information about this service, see the API
33 * <a href="https://developers.google.com/maps/documentation/addressvalidation" target="_blank">Documentation</a>
34 * </p>
35 *
36 * @author Google, Inc.
37 */
38class AddressValidation extends \Google\Service
39{
40 /** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.. */
41 const CLOUD_PLATFORM =
42 "https://www.googleapis.com/auth/cloud-platform";
43 /** Private Service: https://www.googleapis.com/auth/maps-platform.addressvalidation. */
44 const MAPS_PLATFORM_ADDRESSVALIDATION =
45 "https://www.googleapis.com/auth/maps-platform.addressvalidation";
46
47 public $v1;
48 public $rootUrlTemplate;
49
50 /**
51 * Constructs the internal representation of the AddressValidation service.
52 *
53 * @param Client|array $clientOrConfig The client used to deliver requests, or a
54 * config array to pass to a new Client instance.
55 * @param string $rootUrl The root URL used for requests to the service.
56 */
57 public function __construct($clientOrConfig = [], $rootUrl = null)
58 {
59 parent::__construct($clientOrConfig);
60 $this->rootUrl = $rootUrl ?: 'https://addressvalidation.googleapis.com/';
61 $this->rootUrlTemplate = $rootUrl ?: 'https://addressvalidation.UNIVERSE_DOMAIN/';
62 $this->servicePath = '';
63 $this->batchPath = 'batch';
64 $this->version = 'v1';
65 $this->serviceName = 'addressvalidation';
66
67 $this->v1 = new AddressValidation\Resource\V1(
68 $this,
69 $this->serviceName,
70 'v1',
71 [
72 'methods' => [
73 'provideValidationFeedback' => [
74 'path' => 'v1:provideValidationFeedback',
75 'httpMethod' => 'POST',
76 'parameters' => [],
77 ],'validateAddress' => [
78 'path' => 'v1:validateAddress',
79 'httpMethod' => 'POST',
80 'parameters' => [],
81 ],
82 ]
83 ]
84 );
85 }
86}
87
88// Adding a class alias for backwards compatibility with the previous class name.
89class_alias(AddressValidation::class, 'Google_Service_AddressValidation');
Note: See TracBrowser for help on using the repository browser.