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 18/** 19 * Service definition for FactCheckTools (v1alpha1). 20 * 21 * <p> 22</p> 23 * 24 * <p> 25 * For more information about this service, see the API 26 * <a href="https://developers.google.com/fact-check/tools/api/" target="_blank">Documentation</a> 27 * </p> 28 * 29 * @author Google, Inc. 30 */ 31class Google_Service_FactCheckTools extends Google_Service 32{ 33 /** View your email address. */ 34 const USERINFO_EMAIL = 35 "https://www.googleapis.com/auth/userinfo.email"; 36 37 public $claims; 38 public $pages; 39 40 /** 41 * Constructs the internal representation of the FactCheckTools service. 42 * 43 * @param Google_Client $client 44 */ 45 public function __construct(Google_Client $client) 46 { 47 parent::__construct($client); 48 $this->rootUrl = 'https://factchecktools.googleapis.com/'; 49 $this->servicePath = ''; 50 $this->batchPath = 'batch'; 51 $this->version = 'v1alpha1'; 52 $this->serviceName = 'factchecktools'; 53 54 $this->claims = new Google_Service_FactCheckTools_Resource_Claims( 55 $this, 56 $this->serviceName, 57 'claims', 58 array( 59 'methods' => array( 60 'search' => array( 61 'path' => 'v1alpha1/claims:search', 62 'httpMethod' => 'GET', 63 'parameters' => array( 64 'offset' => array( 65 'location' => 'query', 66 'type' => 'integer', 67 ), 68 'pageToken' => array( 69 'location' => 'query', 70 'type' => 'string', 71 ), 72 'reviewPublisherSiteFilter' => array( 73 'location' => 'query', 74 'type' => 'string', 75 ), 76 'pageSize' => array( 77 'location' => 'query', 78 'type' => 'integer', 79 ), 80 'query' => array( 81 'location' => 'query', 82 'type' => 'string', 83 ), 84 'languageCode' => array( 85 'location' => 'query', 86 'type' => 'string', 87 ), 88 'maxAgeDays' => array( 89 'location' => 'query', 90 'type' => 'integer', 91 ), 92 ), 93 ), 94 ) 95 ) 96 ); 97 $this->pages = new Google_Service_FactCheckTools_Resource_Pages( 98 $this, 99 $this->serviceName, 100 'pages', 101 array( 102 'methods' => array( 103 'create' => array( 104 'path' => 'v1alpha1/pages', 105 'httpMethod' => 'POST', 106 'parameters' => array(), 107 ),'delete' => array( 108 'path' => 'v1alpha1/{+name}', 109 'httpMethod' => 'DELETE', 110 'parameters' => array( 111 'name' => array( 112 'location' => 'path', 113 'type' => 'string', 114 'required' => true, 115 ), 116 ), 117 ),'get' => array( 118 'path' => 'v1alpha1/{+name}', 119 'httpMethod' => 'GET', 120 'parameters' => array( 121 'name' => array( 122 'location' => 'path', 123 'type' => 'string', 124 'required' => true, 125 ), 126 ), 127 ),'list' => array( 128 'path' => 'v1alpha1/pages', 129 'httpMethod' => 'GET', 130 'parameters' => array( 131 'organization' => array( 132 'location' => 'query', 133 'type' => 'string', 134 ), 135 'pageSize' => array( 136 'location' => 'query', 137 'type' => 'integer', 138 ), 139 'url' => array( 140 'location' => 'query', 141 'type' => 'string', 142 ), 143 'offset' => array( 144 'location' => 'query', 145 'type' => 'integer', 146 ), 147 'pageToken' => array( 148 'location' => 'query', 149 'type' => 'string', 150 ), 151 ), 152 ),'update' => array( 153 'path' => 'v1alpha1/{+name}', 154 'httpMethod' => 'PUT', 155 'parameters' => array( 156 'name' => array( 157 'location' => 'path', 158 'type' => 'string', 159 'required' => true, 160 ), 161 ), 162 ), 163 ) 164 ) 165 ); 166 } 167} 168