/memberevents
Returns a collection of member events, or a subset that matches a given set of parameters.
Resource URL
/v1/applications/{communityApiKeyName}/memberevents
Use the appropriate regional endpoint to ensure that you comply with your organization's privacy policy, and applicable laws and regulations. For details about the available regional endpoints, and how to identify your organization's region, see API Access.
Available methods
Method | Description |
---|---|
GET | Returns a collection of member events. |
Parameters
Use the following parameters to control how the data is returned:
Operation | Description | Example |
---|---|---|
Refine the response by field | To reduce the number of fields returned, specify the fields in a comma separated list. |
/memberevents?fields=activityId,eventType
|
Filtering by value | By default, all the items are returned
unless you specify your criteria using the variable name and value.
You can filter the response on the values in the following
fields:
|
q=lastUpdateDate="2016-11-15T01:01:28.4112016Z"
|
Paging | The default is 20 items are returned at a time. | Use the
limit and
offset query string parameters to effectively
page through the results.
|
Sorting | You can sort the response on the following
fields:
|
/memberevents?sort=createDate:d
|
For more information, see Content control.
Available fields
Field | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
activityId
|
The GUID for the activity to which this event applies. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
communicationId
|
The GUID for the communication (if
pertinent) for the given event.
This value can be null. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
communityId
|
This field has been deprecated. Do not use this field. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
createDate
|
The timestamp of when the record was inserted into the Community database. |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
eventDate
|
The timestamp of the actual participation event. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
eventType
|
The type of member event.
Note: Some member event types in Sparq 1 are converted to the
Community equivalent when the data is mapped through the bridge. For a complete
list of the Sparq 1 events and the corresponding event in Community, see the
table in
mappedMemberEvents .
For more information about Sparq 1 data, see FAQs. The following table describes the available event types and the types of activities they are associated with:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
id
|
The GUID for the given member event. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
mappedMemberEvent
|
The name of the Sparq 1 event type after it
is mapped into Community.
Note: If your response contains Sparq 1 data, you may see two
different event types:
The following table shows the Sparq 1 event type and the
corresponding event type in Community:
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
memberDataSetType
|
Returns either
live or
test event values. The default value is
live .
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
memberId
|
The GUID for the member to which this event applies (required). | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
participantType
|
The string value for the member's status at
the time the event occurred.
Possible values are:
|
Code samples
Get the number of completed member events for an activity |
---|
GET
/memberevents?eventType=SurveyCompleted&activityId={id}
|
Get all invited member events for a member |
---|
GET
/memberevents?eventType=SurveyInvited&memberId={id}
|
Example: GET response |
---|
The following example shows the member event response for Community. If the request included Sparq 1 Member Events the value
|