public function search($query, $fields = null, $language = null, $max = 10, $token = null)
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getOption('api.url') . 'people?query=' . urlencode($query);

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

			// Check if language is specified.
			if ($language)
			{
				$url .= '&language=' . $language;
			}

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

			// Check of token is specified.
			if ($token)
			{
				$url .= '&pageToken=' . $token;
			}

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

			return json_decode($jdata->body, true);
		}
		else
		{
			return false;
		}
	}
public function search($query, $fields = null, $language = null, $max = 10, $token = null)
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getOption('api.url') . 'people?query=' . urlencode($query);

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

			// Check if language is specified.
			if ($language)
			{
				$url .= '&language=' . $language;
			}

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

			// Check of token is specified.
			if ($token)
			{
				$url .= '&pageToken=' . $token;
			}

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

			return json_decode($jdata->body, true);
		}
		else
		{
			return false;
		}
	}
public function search ( $ query , $ fields = null , $ language = null , $ max = 10 , $ token = null ) { if ( $ this -> isAuthenticated ( ) ) { $ url = $ this -> getOption ( 'api.url' ) . 'people?query=' . urlencode ( $ query ) ; // Check if fields is specified. if ( $ fields ) { $ url .= '&fields=' . $ fields ; } // Check if language is specified. if ( $ language ) { $ url .= '&language=' . $ language ; } // Check if max is specified. if ( $ max != 10 ) { $ url .= '&maxResults=' . $ max ; } // Check of token is specified. if ( $ token ) { $ url .= '&pageToken=' . $ token ; } $ jdata = $ this -> auth -> query ( $ url ) ; return json_decode ( $ jdata -> body , true ) ; } else { return false ; } }
Search all public profiles.

@param   string   $query     Specify a query string for full text search of public text in all profiles.
@param   string   $fields    Used to specify the fields you want returned.
@param   string   $language  Specify the preferred language to search with. https://developers.google.com/+/api/search#available-languages
@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
Search all public profiles .