Google_Service_Urlshortener

Service definition for Urlshortener (v1).

Defined (1)

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

/includes/api-libs/Google/Service/Urlshortener.php  
  1. class Google_Service_Urlshortener extends Google_Service 
  2. /** Manage your goo.gl short URLs. */ 
  3. const URLSHORTENER = 
  4. "https://www.googleapis.com/auth/urlshortener"; 
  5.  
  6. public $url; 
  7.  
  8.  
  9. /** 
  10. * Constructs the internal representation of the Urlshortener service. 
  11. * @param Google_Client $client 
  12. */ 
  13. public function __construct(Google_Client $client) 
  14. parent::__construct($client); 
  15. $this->servicePath = 'urlshortener/v1/'; 
  16. $this->version = 'v1'; 
  17. $this->serviceName = 'urlshortener'; 
  18.  
  19. $this->url = new Google_Service_Urlshortener_Url_Resource( 
  20. $this,  
  21. $this->serviceName,  
  22. 'url',  
  23. array( 
  24. 'methods' => array( 
  25. 'get' => array( 
  26. 'path' => 'url',  
  27. 'httpMethod' => 'GET',  
  28. 'parameters' => array( 
  29. 'shortUrl' => array( 
  30. 'location' => 'query',  
  31. 'type' => 'string',  
  32. 'required' => true,  
  33. ),  
  34. 'projection' => array( 
  35. 'location' => 'query',  
  36. 'type' => 'string',  
  37. ),  
  38. ),  
  39. ), 'insert' => array( 
  40. 'path' => 'url',  
  41. 'httpMethod' => 'POST',  
  42. 'parameters' => array(),  
  43. ), 'list' => array( 
  44. 'path' => 'url/history',  
  45. 'httpMethod' => 'GET',  
  46. 'parameters' => array( 
  47. 'start-token' => array( 
  48. 'location' => 'query',  
  49. 'type' => 'string',  
  50. ),  
  51. 'projection' => array( 
  52. 'location' => 'query',  
  53. 'type' => 'string',  
  54. ),  
  55. ),  
  56. ),  
  57. );