Google_UserProfilesServiceResource
The "userProfiles" collection of methods.
Defined (1)
The class is defined in the following location(s).
- /google-api/src/contrib/Google_DfareportingService.php
- class Google_UserProfilesServiceResource extends Google_ServiceResource {
- /**
- * Gets one user profile by ID. (userProfiles.get)
- *
- * @param string $profileId The user profile ID.
- * @param array $optParams Optional parameters.
- * @return Google_UserProfile
- */
- public function get($profileId, $optParams = array()) {
- $params = array('profileId' => $profileId);
- $params = array_merge($params, $optParams);
- $data = $this->__call('get', array($params));
- if ($this->useObjects()) {
- return new Google_UserProfile($data);
- } else {
- return $data;
- }
- }
- /**
- * Retrieves list of user profiles for a user. (userProfiles.list)
- *
- * @param array $optParams Optional parameters.
- * @return Google_UserProfileList
- */
- public function listUserProfiles($optParams = array()) {
- $params = array();
- $params = array_merge($params, $optParams);
- $data = $this->__call('list', array($params));
- if ($this->useObjects()) {
- return new Google_UserProfileList($data);
- } else {
- return $data;
- }
- }
- }