public function listByActivity($activityId, $collection, $fields = null, $max = 10, $token = null)
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getOption('api.url') . 'activities/' . $activityId . '/people/' . $collection;

			// Check if fields is specified.
			if ($fields)
			{
				$url .= '?fields=' . $fields;
			}

			// Check if max is specified.
			if ($max != 10)
			{
				$url .= (strpos($url, '?') === false) ? '?maxResults=' : '&maxResults=';
				$url .= $max;
			}

			// Check of token is specified.
			if ($token)
			{
				$url .= (strpos($url, '?') === false) ? '?pageToken=' : '&pageToken=';
				$url .= $token;
			}

			$jdata = $this->auth->query($url);

			return json_decode($jdata->body, true);
		}
		else
		{
			return false;
		}
	}
public function listByActivity($activityId, $collection, $fields = null, $max = 10, $token = null)
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getOption('api.url') . 'activities/' . $activityId . '/people/' . $collection;

			// Check if fields is specified.
			if ($fields)
			{
				$url .= '?fields=' . $fields;
			}

			// Check if max is specified.
			if ($max != 10)
			{
				$url .= (strpos($url, '?') === false) ? '?maxResults=' : '&maxResults=';
				$url .= $max;
			}

			// Check of token is specified.
			if ($token)
			{
				$url .= (strpos($url, '?') === false) ? '?pageToken=' : '&pageToken=';
				$url .= $token;
			}

			$jdata = $this->auth->query($url);

			return json_decode($jdata->body, true);
		}
		else
		{
			return false;
		}
	}
public function listByActivity ( $ activityId , $ collection , $ fields = null , $ max = 10 , $ token = null ) { if ( $ this -> isAuthenticated ( ) ) { $ url = $ this -> getOption ( 'api.url' ) . 'activities/' . $ activityId . '/people/' . $ collection ; // Check if fields is specified. if ( $ fields ) { $ url .= '?fields=' . $ fields ; } // Check if max is specified. if ( $ max != 10 ) { $ url .= ( strpos ( $ url , '?' ) === false ) ? '?maxResults=' : '&maxResults=' ; $ url .= $ max ; } // Check of token is specified. if ( $ token ) { $ url .= ( strpos ( $ url , '?' ) === false ) ? '?pageToken=' : '&pageToken=' ; $ url .= $ token ; } $ jdata = $ this -> auth -> query ( $ url ) ; return json_decode ( $ jdata -> body , true ) ; } else { return false ; } }
List all of the people in the specified collection for a particular activity.

@param   string   $activityId  The ID of the activity to get the list of people for.
@param   string   $collection  The collection of people to list. Acceptable values are "plusoners" and "resharers".
@param   string   $fields      Used to specify the fields you want returned.
@param   integer  $max         The maximum number of people to include in the response, used for paging.
@param   string   $token       The continuation token, used to page through large result sets. To get the next page of results, set this
parameter to the value of "nextPageToken" from the previous response. This token may be of any length.

@return  mixed  Data from Google

@since   1.0
List all of the people in the specified collection for a particular activity .