Skip to content

Latest commit

 

History

History
73 lines (63 loc) · 2.82 KB

activity.md

File metadata and controls

73 lines (63 loc) · 2.82 KB

Activity

Recent Activity associated with a Participant or Team.

Endpoints

Default orderBy: createdDateUTC DESC

Path Return Type Notes
/api/events/{eventID}/activity array To find {eventID}, visit your Event's Fundraising Page. Look for the &eventID= URL parameter.
/api/participants/{participantID}/activity array To find {participantID}, visit your Participant's Fundraising Page. Look for the &participantID= URL parameter.
/api/teams/{teamID}/activity array To find {teamID}, visit your Team's Fundraising Page. Look for the &teamID= URL parameter.

Response

The response from the activity endpoint is an array of objects, with a maximum of 5, outlining the recent activity around the participant or team.

Example

[
  {
    "message": "Five Dollar Incentive",
    "amount": 5,
    "isIncentive": 1,
    "createdDateUTC": "2019-11-10T19:38:51.897+0000",
    "title": "Friendly Donor",
    "imageURL": "https://static.donordrive.com/clients/try/img/avatar-constituent-default.gif",
    "type": "donation"
  },
  {
    "amount": 15,
    "createdDateUTC": "2019-11-08T15:22:13.933+0000",
    "title": "Friendly Donor",
    "imageURL": "https://static.donordrive.com/clients/try/img/avatar-constituent-default.gif",
    "type": "donation"
  },
  {
    "amount": 10,
    "createdDateUTC": "2019-11-06T16:26:02.487+0000",
    "title": "Friendly Donor",
    "imageURL": "https://static.donordrive.com/clients/try/img/avatar-constituent-default.gif",
    "type": "donation"
  },
  {
    "message": "Raised 100 dollars!",
    "createdDateUTC": "2019-11-06T16:25:01.530+0000",
    "title": "100 Club Badge",
    "imageURL": "http://assets.donordrive.com/try/images/$event508$/badge_2F7819D3_C019_3C7D_B9D716687CEEC0A5.png",
    "type": "participantBadge"
  },
  {
    "message": "Sent 25 donation invite emails!",
    "createdDateUTC": "2019-11-06T16:25:00.530+0000",
    "title": "Enthusiastic Participant Badge",
    "imageURL": "https://assets.donordrive.com/try/images/$event508$/badge_DCB0A883_BC0A_97DB_639B4D7BFDEC638E.png",
    "type": "participantBadge"
  }
]

Fields

Field Type Description Guaranteed Filterable Notes
amount float The amount of this Donation Activity Yes For donation type Activity items
createdDateUTC date The date (in UTC) this Activity item was created Yes Yes ISO-8601 format
imageURL string The URL for the image associated with the Activity item Yes Yes
isIncentive boolean true if this donation claimed a Fundraiser or Team Incentive Yes For donation type Activity items
message string The message associated with the Activity item Yes
title string The title associated with the Activity item Yes
type string The type of Activity item Yes Yes donation or participantBadge or teamBadge