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/.

Working with Search in Evernote



Overview

The following operations allow you to carry out search operations. Click an operation name to see details on how to use it. 

For a sample proxy service that illustrates how to work with search, see Sample configuration.

OperationDescription

createSearch

Makes a new SavedSearch in the account.

getSearch

Retrieves the state of a single SavedSearch .

updateSearch

Changes an existing SavedSearch.

expungeSearch

Permanently removes an existing SavedSearch .

Operation details

This section provides details on each of the operations.

createSearch 

This is make a saved search with a set of information. 

createSearch
<evernote.createSearch>
	<searchName>{$ctx:searchName}</searchName>
	<query>{$ctx:query}</query>
	<includeAccount>{$ctx:includeAccount}</includeAccount>
	<includePersonalLinkedNotebooks>{$ctx:includePersonalLinkedNotebooks}</includePersonalLinkedNotebooks>
	<includeBusinessLinkedNotebooks>{$ctx:includeBusinessLinkedNotebooks}</includeBusinessLinkedNotebooks>
</evernote.createSearch> 
Properties
  • searchName :-Required. The name of the saved search to display in the GUI. The account may only contain one search with a given name

  • query :-Required. A string expressing the search to be performed

  • includeAccount :- Optional. The search should include notes from the account that contains the SavedSearch.

  • includePersonalLinkedNotebooks :-Optional. The search should include notes within those shared notebooks.that the user has joined that are NOT business notebooks.

  • includeBusinessLinkedNotebooks :-Optional. The search should include notes within those shared notebooks that the user has joined that are business notebooks in the business that the user is currently a member of. 

Sample request

Following is a sample request that can be handled by the createSearch operation.

Sample Request for createSearch
 <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Envelope xmlns:evr="wso2.connector.evernote">
        <soapenv:Header></soapenv:Header>
            <soapenv:Body>
            <root>
                <evr:devToken>S=s424:U=48524b0:E=14e531dc27f:C=146fb6c9600:P=1cd:A=en-devtoken:V=2:H=4a4e288787109ed314ebce861c5c2c92</evr:devToken>
                <evr:noteStoreUrl>https://www.evernote.com/shard/s424/notestore</evr:noteStoreUrl>
                <evr:devTokenType>SANDBOX</evr:devTokenType>
                <evr:searchName>searchName1</evr:searchName>
                <evr:query>query1</evr:query>
            </root>
        </soapenv:Body>
    </soapenv:Envelope>
</soapenv:Body>
</soapenv:Envelope>
Related Evernote documentation

getSearch

Returns the current state of the search with the provided GUID. 

getSearch
<evernote.getSearch>
	<searchGuid>{$ctx:searchGuid}</searchGuid>
</evernote.getSearch>  

 

Properties

searchGuid :- Required. The GUID of the search to be retrieved 

Sample request

Following is a sample request that can be handled by the getSearch operation.

Sample Request for getSearch
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Envelope xmlns:evr="wso2.connector.evernote">
        <soapenv:Header></soapenv:Header>
            <soapenv:Body>
            <root>
                <evr:devToken>S=s424:U=48524b0:E=14e531dc27f:C=146fb6c9600:P=1cd:A=en-devtoken:V=2:H=4a4e288787109ed314ebce861c5c2c92</evr:devToken>
                <evr:noteStoreUrl>https://www.evernote.com/shard/s424/notestore</evr:noteStoreUrl>
                <evr:devTokenType>SANDBOX</evr:devTokenType>
				<evr:searchGuid>100</evr:searchGuid>           
			</root>
        </soapenv:Body>
    </soapenv:Envelope>
</soapenv:Body>
</soapenv:Envelope>
Related Evernote documentation

expungeSearch

Permanently deletes the saved search with the provided GUID. 

expungeSearch
<evernote.expungeSearch>
	<searchGuid>{$ctx:searchGuid}</searchGuid>
</evernote.expungeSearch> 
Properties
  • searchGuid :- Required. The GUID of the search to delete. 
Sample request

Following is a sample REST request that can be handled by the expungeSearch operation.

Sample Request for expungeSearch
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Envelope xmlns:evr="wso2.connector.evernote">
        <soapenv:Header></soapenv:Header>
            <soapenv:Body>
            <root>
                <evr:devToken>S=s424:U=48524b0:E=14e531dc27f:C=146fb6c9600:P=1cd:A=en-devtoken:V=2:H=4a4e288787109ed314ebce861c5c2c92</evr:devToken>
                <evr:noteStoreUrl>https://www.evernote.com/shard/s424/notestore</evr:noteStoreUrl>
                <evr:devTokenType>SANDBOX</evr:devTokenType>
				<evr:searchGuid>100</evr:searchGuid>            
			</root>
        </soapenv:Body>
    </soapenv:Envelope>
</soapenv:Body>
</soapenv:Envelope>
Related Evernote documentation

updateSearch   

Submits search changes to the service. The provided data must include the search's guid field for identification. 

updateSearch
<evernote.updateSearch>
	<searchGuid>{$ctx:searchGuid}</searchGuid>
	<searchName>{$ctx:searchName}</searchName>
	<query>{$ctx:query}</query>
	<includeAccount>{$ctx:includeAccount}</includeAccount>
	<includePersonalLinkedNotebooks>{$ctx:includePersonalLinkedNote books}</includePersonalLinkedNotebooks>
	<includeBusinessLinkedNotebooks>{$ctx:includeBusinessLinkedNotebooks}</includeBusinessLinkedNotebooks>
</evernote.updateSearch>  

 

Properties 
  • searchGuid :- Required. The unique identifier of this search. Will be set by the service

  • searchName :-Optional. The name of the saved search to display in the GUI

  • query :-Optional. A string expressing the search to be performed.

  • includeAccount :- Optional. The search should include notes from the account thatcontains the SavedSearch.

  • includePersonalLinkedNotebooks :-Optional. The search should include notes within those shared notebooks.that the user has joined that are NOT business notebooks.

  • includeBusinessLinkedNotebooks :-Optional. The search should include notes within those shared notebooks that the user has joined that are business notebooks in the business that the user is currently a member of. 

Sample request

Following is a sample request that can be handled by the updateSearch operation.

Sample Request for updateSearch
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Body>
    <soapenv:Envelope xmlns:evr="wso2.connector.evernote">
        <soapenv:Header></soapenv:Header>
            <soapenv:Body>
            <root>
                <evr:devToken>S=s424:U=48524b0:E=14e531dc27f:C=146fb6c9600:P=1cd:A=en-devtoken:V=2:H=4a4e288787109ed314ebce861c5c2c92</evr:devToken>
                <evr:noteStoreUrl>https://www.evernote.com/shard/s424/notestore</evr:noteStoreUrl>
                <evr:devTokenType>SANDBOX</evr:devTokenType>
                <evr:searchName>searchTest</evr:searchName>
				<evr:searchGuid>100</evr:searchGuid>            
            </root>
        </soapenv:Body>
    </soapenv:Envelope>
</soapenv:Body>
</soapenv:Envelope>
Related Evernote documentation

Sample configuration

Following is a sample proxy service that illustrates how to connect to Evernote with the init operation and use the getSearch operation.You can use this sample as a template for other operation.The sample request for this proxy can be found in Sample Request for getSearch

Sample Proxy
<?xml version="1.0" encoding="UTF­8"?>
<proxy xmlns="http://ws.apache.org/ns/synapse"
name="getSearch"
transports="https,http"
statistics="disable"
trace="disable"
startOnLoad="true">
<target>
<inSequence>
<property xmlns:ns="wso2.connector.evernote" name="devToken" expression="//ns:devToken"/>
<property xmlns:ns="wso2.connector.evernote" name="devTokenType" expression="//ns:devTokenType"/>
<property xmlns:ns="wso2.connector.evernote" name="noteStoreUrl" expression="//ns:noteStoreUrl"/>
<property xmlns:ns="wso2.connector.evernote" name="searchGuid" expression="//ns:searchGuid"/>				          
	<evernote.init>
		<devToken>{$ctx:devToken}</devToken>
		<noteStoreUrl>{$ctx:noteStoreUrl}</noteStoreUrl>
		<devTokenType>{$ctx:devTokenType}</devTokenType>
	</evernote.init>
	<evernote.getSearch>
		<evr:searchGuid>{$ctx:searchGuid}</evr:searchGuid> 
	</evernote.getSearch>
<respond/>
</inSequence>
<outSequence>
<send/>
</outSequence>
</target>
<description/>
</proxy>