GoogleGAL_Service_Analytics_ManagementAccountUserLinks_Resource

The "accountUserLinks" collection of methods.

Defined (1)

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

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