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 Activities



Overview

The following operations allow you to work with activities. Click an operation name to see details on how to use it.

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

For more details click Activities.

OperationDescription
getActivitiesOfAContact Retrieves activities of a contact.

Operation Details

This section provides further details on the operations related to Activities.

Get Activities Of A Contact

The getActivitiesOfAContact operation retrieves activities of a contact associated with the specified contact id.

getActivitiesOfAContact
<eloquaStandardAPI.getActivitiesOfAContact>
    <contactId>1</contactId>
    <startDate>1297278690</startDate>
    <endDate>1297278692</endDate>
    <type>emailOpen</type>
    <count>2</count>
</eloquaStandardAPI.getActivitiesOfAContact>
properties
  • contactId : This field will contain Street Number, Street Name, or maybe PO Box.

  • startDate : This field will contain Apartment, Floor, Suite, Bldg # or more specific information within Address1.

  • endDate : The will contain specific office/room in a building or apartment.
  • type : Name of the account to create an account on this name.
  • count : The city, in which the address 1 is located.
Sample request

Following is a sample REST/JSON request that can be handled by the getActivitiesOfAContact operation.

Sample request for getActivitiesOfAContact
{
   "username":"myusername",
   "password":"mypassword",
   "siteName":"mysiteName",
   "contactId":"1",
   "startDate":1297278690,
   "endDate":1297278692,
   "type":"emailOpen",
   "count":2
}

Sample Configuration

Following is a sample proxy service that illustrates how to connect to Eloqua Standard API with the init operation to use the getActivitiesOfAContact operation. The sample request for this proxy can be found in getActivitiesOfAContact sample request . You can use this sample as a template for using other operations in this category.

Sample proxy
<proxy xmlns="http://ws.apache.org/ns/synapse"
       name="eloqua_getActivitiesOfAContact"
       transports="https,http"
       statistics="disable"
       trace="disable"
       startOnLoad="true">
    <target>
        <inSequence>
            <property name="siteName" expression="json-eval($.siteName)"/>
            <property name="username" expression="json-eval($.username)"/>
            <property name="password" expression="json-eval($.password)"/>
            <property name="contactId" expression="json-eval($.contactId)"/>
            <property name="startDate" expression="json-eval($.startDate)"/>
            <property name="endDate" expression="json-eval($.endDate)"/> 
            <property name="type" expression="json-eval($.type)"/>
            <property name="count" expression="json-eval($.count)"/>
            <eloquaStandardAPI.init>
                <siteName>{$ctx:siteName}</siteName>
                <username>{$ctx:username}</username>
                <password>{$ctx:password}</password>
            </eloquaStandardAPI.init>
            <eloquaStandardAPI.getActivitiesOfAContact>
                <contactId>{$ctx:contactId}</contactId>
                <startDate>{$ctx:startDate}</startDate>
                <endDate>{$ctx:endDate}</endDate>
                <type>{$ctx:type}</type>
                <count>{$ctx:count}</count>
            </eloquaStandardAPI.getActivitiesOfAContact>
            <respond/>
        </inSequence>
        <outSequence/>
        <faultSequence/>
    </target>
    <description/>
</proxy>