GoogleGAL_Service_Analytics_ManagementWebpropertyUserLinks_Resource

The "webpropertyUserLinks" collection of methods.

Defined (1)

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

/core/Google/Service/Analytics.php  
  1. class GoogleGAL_Service_Analytics_ManagementWebpropertyUserLinks_Resource extends GoogleGAL_Service_Resource 
  2.  
  3. /** 
  4. * Removes a user from the given web property. (webpropertyUserLinks.delete) 
  5. * @param string $accountId Account ID to delete the user link for. 
  6. * @param string $webPropertyId Web Property ID to delete the user link for. 
  7. * @param string $linkId Link ID to delete the user link for. 
  8. * @param array $optParams Optional parameters. 
  9. */ 
  10. public function delete($accountId, $webPropertyId, $linkId, $optParams = array()) 
  11. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId); 
  12. $params = array_merge($params, $optParams); 
  13. return $this->call('delete', array($params)); 
  14.  
  15. /** 
  16. * Adds a new user to the given web property. (webpropertyUserLinks.insert) 
  17. * @param string $accountId Account ID to create the user link for. 
  18. * @param string $webPropertyId Web Property ID to create the user link for. 
  19. * @param GoogleGAL_EntityUserLink $postBody 
  20. * @param array $optParams Optional parameters. 
  21. * @return GoogleGAL_Service_Analytics_EntityUserLink 
  22. */ 
  23. public function insert($accountId, $webPropertyId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array()) 
  24. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'postBody' => $postBody); 
  25. $params = array_merge($params, $optParams); 
  26. return $this->call('insert', array($params), "GoogleGAL_Service_Analytics_EntityUserLink"); 
  27.  
  28. /** 
  29. * Lists webProperty-user links for a given web property. 
  30. * (webpropertyUserLinks.listManagementWebpropertyUserLinks) 
  31. * @param string $accountId Account ID which the given web property belongs to. 
  32. * @param string $webPropertyId Web Property ID for the webProperty-user links 
  33. * to retrieve. Can either be a specific web property ID or '~all', which refers 
  34. * to all the web properties that user has access to. 
  35. * @param array $optParams Optional parameters. 
  36. * @opt_param int max-results The maximum number of webProperty-user Links to 
  37. * include in this response. 
  38. * @opt_param int start-index An index of the first webProperty-user link to 
  39. * retrieve. Use this parameter as a pagination mechanism along with the max- 
  40. * results parameter. 
  41. * @return GoogleGAL_Service_Analytics_EntityUserLinks 
  42. */ 
  43. public function listManagementWebpropertyUserLinks($accountId, $webPropertyId, $optParams = array()) 
  44. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId); 
  45. $params = array_merge($params, $optParams); 
  46. return $this->call('list', array($params), "GoogleGAL_Service_Analytics_EntityUserLinks"); 
  47.  
  48. /** 
  49. * Updates permissions for an existing user on the given web property. 
  50. * (webpropertyUserLinks.update) 
  51. * @param string $accountId Account ID to update the account-user link for. 
  52. * @param string $webPropertyId Web property ID to update the account-user link 
  53. * for. 
  54. * @param string $linkId Link ID to update the account-user link for. 
  55. * @param GoogleGAL_EntityUserLink $postBody 
  56. * @param array $optParams Optional parameters. 
  57. * @return GoogleGAL_Service_Analytics_EntityUserLink 
  58. */ 
  59. public function update($accountId, $webPropertyId, $linkId, GoogleGAL_Service_Analytics_EntityUserLink $postBody, $optParams = array()) 
  60. $params = array('accountId' => $accountId, 'webPropertyId' => $webPropertyId, 'linkId' => $linkId, 'postBody' => $postBody); 
  61. $params = array_merge($params, $optParams); 
  62. return $this->call('update', array($params), "GoogleGAL_Service_Analytics_EntityUserLink");