* Lets you create, inspect, and manage goo.gl short URLs
* ** For more information about this service, see the API * Documentation *
* * @author Google, Inc. */ class Google_Service_Urlshortener extends Google_Service { /** Manage your goo.gl short URLs. */ const URLSHORTENER = "https://www.googleapis.com/auth/urlshortener"; public $url; /** * Constructs the internal representation of the Urlshortener service. * * @param Google_Client $client */ public function __construct(Google_Client $client) { parent::__construct($client); $this->rootUrl = 'https://www.googleapis.com/'; $this->servicePath = 'urlshortener/v1/'; $this->batchPath = 'batch/urlshortener/v1'; $this->version = 'v1'; $this->serviceName = 'urlshortener'; $this->url = new Google_Service_Urlshortener_Resource_Url( $this, $this->serviceName, 'url', array( 'methods' => array( 'get' => array( 'path' => 'url', 'httpMethod' => 'GET', 'parameters' => array( 'shortUrl' => array( 'location' => 'query', 'type' => 'string', 'required' => true, ), 'projection' => array( 'location' => 'query', 'type' => 'string', ), ), ),'insert' => array( 'path' => 'url', 'httpMethod' => 'POST', 'parameters' => array(), ),'list' => array( 'path' => 'url/history', 'httpMethod' => 'GET', 'parameters' => array( 'projection' => array( 'location' => 'query', 'type' => 'string', ), 'start-token' => array( 'location' => 'query', 'type' => 'string', ), ), ), ) ) ); } }