This site contains the documentation that is relevant to older WSO2 product versions and offerings.
For the latest WSO2 documentation, visit https://wso2.com/documentation/.

Configuring Google Custom Search Operations

To use the Google Custom Search connector, add the <googlecustomsearch.init> element in your configuration before carrying out any other Google Custom Search operations. 

init
<googlecustomsearch.init> 
	<apiKey>{$ctx:apiKey}</apiKey>
	<cseID>{$ctx:cseID}</cseID>
	<cref>{$ctx:cref}</cref>
	<url>{$ctx:url}</url>
</googlecustomsearch.init>
properties
  • apikey: API key.

  • cseID: Custom search engine ID.

  • cref : Linked custom search engine reference url.
  • query: Query string.

 For more information, see

https://developers.google.com/custom-search/json-api/v1/using_rest

Now that you have connected to Google Custom Search, use the information in the following topics to perform various operations with the connector.