...
Table of Contents | ||||
---|---|---|---|---|
|
...
The following operations allow you to work with User profileuser history. Click an operation name to see details on how to use it.
...
Operation | Description |
---|---|
list Lists the history of changes to the user history's mailbox |
Operation details
This section provides further details on the operations related to user history.
Anchor | ||||
---|---|---|---|---|
|
...
isting the user's history
The listTheHistory
operation lists all user historythe history of changes to the user's mailbox.
Code Block | ||||
---|---|---|---|---|
| ||||
<gmailRest<gmail.listTheHistory> <startHistoryId>{$ctx:startHistoryId}</startHistoryId> <labelId>{$ctx:labelId}</labelId> <maxResults>{$ctx:maxResults}</maxResults> <pageToken>{$ctx:pageToken}</pageToken> </gmailRestgmail.listTheHistory> |
Properties
startHistoryId
: Returns history records after the specifiedstartHistoryId
.labelId
: Only return messages with a label matching the ID.maxResults
: The maximum number of history records to return.pageToken
: Page token to retrieve a specific page of results in the list.
...
Following is a sample proxy service that illustrates how to connect to Gmail with the the init
operation and use the listTheHistory
operation. The sample request for this proxy can be found in in listTheHistory sample request. You can use this sample as a template for using other operations in this category.
Code Block | ||||
---|---|---|---|---|
| ||||
<proxy xmlns="http://ws.apache.org/ns/synapse" name="gmail_listTheHistory" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <property name="startHistoryId" expression="json-eval($.startHistoryId)"/> <property name="labelId" expression="json-eval($.labelId)"/> <property name="maxResults" expression="json-eval($.maxResults)"/> <property name="pageToken" expression="json-eval($.pageToken)"/> <property name="userId" expression="json-eval($.userId)"/> <property name="refreshToken" expression="json-eval($.refreshToken)"/> <property name="clientId" expression="json-eval($.clientId)"/> <property name="clientSecret" expression="json-eval($.clientSecret)"/> <property name="accessToken" expression="json-eval($.accessToken)"/> <property name="registryPath" expression="json-eval($.registryPath)"/> <property name="apiUrl" expression="json-eval($.apiUrl)"/> <gmailRest<gmail.gmailRestInit>init> <userId>{$ctx:userId}</userId> <refreshToken>{$ctx:refreshToken}</refreshToken> <clientSecret>{$ctx:clientSecret}</clientSecret> <clientId>{$ctx:clientId}</clientId> <registryPath>{$ctx:registryPath}</registryPath> <accessToken>{$ctx:accessToken}</accessToken> <apiUrl>{$ctx:apiUrl}</apiUrl> </gmailRestgmail.gmailRestInit>init> <gmailRest<gmail.listTheHistory> <startHistoryId>{$ctx:startHistoryId}</startHistoryId> <labelId>{$ctx:labelId}</labelId> <maxResults>{$ctx:maxResults}</maxResults> <pageToken>{$ctx:pageToken}</pageToken> </gmailRestgmail.listTheHistory> <respond/> </inSequence> <outSequence> <log/> <send/> </outSequence> </target> <parameter name="serviceType">proxy</parameter> <description/> </proxy> |