=== begin: EccoDomaniIeri.php * helloworld API v1.

* *

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

* * @author Google, Inc. */ class EccoDomaniIeri extends \Google\Service { /** View your email address. */ const USERINFO_EMAIL = "https://www.googleapis.com/auth/userinfo.email"; public $greetings; /** * Constructs the internal representation of the EccoDomaniIeri 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://peer-pontus.appspot.com/_ah/api/'; $this->servicePath = 'helloworld/v1/'; $this->batchPath = 'batch'; $this->version = 'v1'; $this->serviceName = 'helloworld'; $this->greetings = new EccoDomaniIeri\Resource\Greetings( $this, $this->serviceName, 'greetings', [ 'methods' => [ 'authed' => [ 'path' => 'hellogreeting/authed', 'httpMethod' => 'POST', 'parameters' => [], ],'getGreeting' => [ 'path' => 'hellogreeting/{id}', 'httpMethod' => 'GET', 'parameters' => [ 'id' => [ 'location' => 'path', 'type' => 'integer', 'required' => true, ], ], ],'listGreeting' => [ 'path' => 'hellogreeting', 'httpMethod' => 'GET', 'parameters' => [], ],'multiply' => [ 'path' => 'hellogreeting/{times}', 'httpMethod' => 'POST', 'parameters' => [ 'times' => [ 'location' => 'path', 'type' => 'integer', 'required' => true, ], ], ], ] ] ); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(EccoDomaniIeri::class, 'Google_Service_EccoDomaniIeri'); === end: EccoDomaniIeri.php === begin: EccoDomaniIeri/HelloGreeting.php message = $message; } /** * @return string */ public function getMessage() { return $this->message; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(HelloGreeting::class, 'Google_Service_EccoDomaniIeri_HelloGreeting'); === end: EccoDomaniIeri/HelloGreeting.php === begin: EccoDomaniIeri/HelloGreetingCollection.php items = $items; } /** * @return HelloGreeting[] */ public function getItems() { return $this->items; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(HelloGreetingCollection::class, 'Google_Service_EccoDomaniIeri_HelloGreetingCollection'); === end: EccoDomaniIeri/HelloGreetingCollection.php === begin: EccoDomaniIeri/Resource/Greetings.php * $helloworldService = new Google\Service\EccoDomaniIeri(...); * $greetings = $helloworldService->greetings; * */ class Greetings extends \Google\Service\Resource { /** * (greetings.authed) * * @param array $optParams Optional parameters. * @return HelloGreeting */ public function authed($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('authed', [$params], HelloGreeting::class); } /** * (greetings.getGreeting) * * @param int $id * @param array $optParams Optional parameters. * @return HelloGreeting */ public function getGreeting($id, $optParams = []) { $params = ['id' => $id]; $params = array_merge($params, $optParams); return $this->call('getGreeting', [$params], HelloGreeting::class); } /** * (greetings.listGreeting) * * @param array $optParams Optional parameters. * @return HelloGreetingCollection */ public function listGreeting($optParams = []) { $params = []; $params = array_merge($params, $optParams); return $this->call('listGreeting', [$params], HelloGreetingCollection::class); } /** * (greetings.multiply) * * @param int $times * @param HelloGreeting $postBody * @param array $optParams Optional parameters. * @return HelloGreeting */ public function multiply($times, HelloGreeting $postBody, $optParams = []) { $params = ['times' => $times, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('multiply', [$params], HelloGreeting::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Greetings::class, 'Google_Service_EccoDomaniIeri_Resource_Greetings'); === end: EccoDomaniIeri/Resource/Greetings.php