public function getPeople($id, $fields = null)
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getOption('api.url') . 'people/' . $id;

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

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

			return json_decode($jdata->body, true);
		}
		else
		{
			return false;
		}
	}
public function getPeople($id, $fields = null)
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getOption('api.url') . 'people/' . $id;

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

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

			return json_decode($jdata->body, true);
		}
		else
		{
			return false;
		}
	}
public function getPeople ( $ id , $ fields = null ) { if ( $ this -> isAuthenticated ( ) ) { $ url = $ this -> getOption ( 'api.url' ) . 'people/' . $ id ; // Check if fields is specified. if ( $ fields ) { $ url .= '?fields=' . $ fields ; } $ jdata = $ this -> auth -> query ( $ url ) ; return json_decode ( $ jdata -> body , true ) ; } else { return false ; } }
Get a person's profile.

@param   string  $id      The ID of the person to get the profile for. The special value "me" can be used to indicate the authenticated user.
@param   string  $fields  Used to specify the fields you want returned.

@return  mixed  Data from Google

@since   1.0
Get a person s profile .