Google_UrlshortenerService

Service definition for Google_Urlshortener (v1).

Defined (1)

The class is defined in the following location(s).

/inc/google-api-php-client/src/contrib/Google_UrlshortenerService.php  
  1. class Google_UrlshortenerService extends Google_Service { 
  2. public $url; 
  3. /** 
  4. * Constructs the internal representation of the Urlshortener service. 
  5. * @param Google_Client $client 
  6. */ 
  7. public function __construct(Google_Client $client) { 
  8. $this->servicePath = 'urlshortener/v1/'; 
  9. $this->version = 'v1'; 
  10. $this->serviceName = 'urlshortener'; 
  11.  
  12. $client->addService($this->serviceName, $this->version); 
  13. $this->url = new Google_UrlServiceResource($this, $this->serviceName, 'url', json_decode('{"methods": {"insert": {"scopes": ["https://www.googleapis.com/auth/urlshortener"], "request": {"$ref": "Url"}, "response": {"$ref": "Url"}, "httpMethod": "POST", "path": "url", "id": "urlshortener.url.insert"}, "list": {"scopes": ["https://www.googleapis.com/auth/urlshortener"], "parameters": {"start-token": {"type": "string", "location": "query"}, "projection": {"enum": ["ANALYTICS_CLICKS", "FULL"], "type": "string", "location": "query"}}, "response": {"$ref": "UrlHistory"}, "httpMethod": "GET", "path": "url/history", "id": "urlshortener.url.list"}, "get": {"httpMethod": "GET", "response": {"$ref": "Url"}, "id": "urlshortener.url.get", "parameters": {"shortUrl": {"required": true, "type": "string", "location": "query"}, "projection": {"enum": ["ANALYTICS_CLICKS", "ANALYTICS_TOP_STRINGS", "FULL"], "type": "string", "location": "query"}}, "path": "url"}}}', true)); 
  14.