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 Visits in Pardot
The getVisits operation retrieves the details of all campaigns.
getVisits
<pardot.getVisits> <ids>{$ctx:ids}</ids> <visitorIds>{$ctx:visitorIds}</visitorIds> <prospectIds>{$ctx:prospectIds}</prospectIds> <limit>{$ctx:limit}</limit> <offset>{$ctx:offset}</offset> </pardot.getVisits>
Properties
ids:
visitorIds:
prospectIds:
limit:
offset:
Sample request
Following is a sample REST/JSON request that can be handled by the
getVisits
operation.
Sample Request for getVisits
<request> <apiUrl>https://pi.pardot.com/api</apiUrl> <email>johndoe@wso2.com</email> <password>john4doe</password> <userKey>1b3cj2uh4bf9jj3xxx5b85</userKey> <apiVersion>3</apiVersion> <visitorIds>2390033,2389947</visitorIds> </request>
Related Pardot documentation
http://developer.pardot.com/kb/api-version-4/visits/
Sample configuration
Following is a sample proxy service that illustrates how to connect to Pardot with the init
operation and use the getVisits
operation. The sample request for this proxy can be found in the getVisits sample request.
Sample Proxy
<proxy xmlns="http://ws.apache.org/ns/synapse" name="getVisits" transports="https,http" statistics="disable" trace="disable" startOnLoad="true"> <target> <inSequence> <property name="apiUrl" expression="//apiUrl" /> <property name="email" expression="//email" /> <property name="password" expression="//password" /> <property name="userKey" expression="//userKey" /> <property name="apiVersion" expression="//apiVersion" /> <property name="ids" expression="//ids" /> <property name="visitorIds" expression="//visitorIds" /> <property name="prospectIds" expression="//prospectIds" /> <property name="limit" expression="//limit" /> <property name="offset" expression="//offset" /> <pardot.init> <apiUrl>{$ctx:apiUrl}</apiUrl> <email>{$ctx:email}</email> <password>{$ctx:password}</password> <userKey>{$ctx:userKey}</userKey> <apiVersion>{$ctx:apiVersion}</apiVersion> </pardot.init> <pardot.getVisits> <ids>{$ctx:ids}</ids> <visitorIds>{$ctx:visitorIds}</visitorIds> <prospectIds>{$ctx:prospectIds}</prospectIds> <limit>{$ctx:limit}</limit> <offset>{$ctx:offset}</offset> </pardot.getVisits> <respond /> </inSequence> <outSequence> <send /> </outSequence> </target> <description /> </proxy>