CROWDMANAGERCROWDMANAGER

Activities

Description

An activity resource represents a source of an event that a participant had created while interacting with CROWDMANAGER or supported 3rd party systems. This endpoint allows user to get his/her list of recorded Activities.


Fields

| Name | Description | Type/Supported Values | | --- | --- | --- | --- | | id | Represents the id of the activity in your system. | string | | Type | Generic type of the activity. | string | | Subtype| Generic subtype for the activity. | string | | CreatedDateTime | Time of creation. | datetime | | OriginalAmount | Amount of loyalty points user was granted by Activity before applying multipliers. Null in case Loyalty is disabled. | decimal | | Multiplier | Multiplier of loyalty points for this activity type and subtype. Null in case Loyalty is disabled. | decimal | | TotalAmount | Amount of loyalty points user was granted by Activity after applying multipliers. Null in case Loyalty is disabled. | decimal | | Score | Points contributing to Leaderboard score granted by Activity. Null in case Activity does not contribute towards Leaderboards. | decimal | | Details | Any additional, type/subtype specifics details of the Activity. | JSON object |

GET activities

Endpoints returning activities from the most recent to the oldest.

Endpoint

GET https://api.crowdmanager.io/userapi/v1/{orgId}/mypage/activities

QUERY Parameters

| Name | Description | Required | | --- | --- | --- | --- | | limit | Maximum returned activities. Defaults to 10. | False | | offset | Skip certain amount of activities. Defaults to 0. | False |

Example

Request

POST https://api.crowdmanager.io/v2/{orgId}/mypage/activities
Authorization: Basic aaabbbccc111222333
Content-Type: application/json

Response

200 OK
[{
    "id": "CampaignAppParticipationActivity-123",
    "type": "campaignAppParticipationActivity",
    "subtype": "sportsMatchVoting",
    "createdDateTime": "...",
    "originalAmount": 10,
    "multiplier": 1.23,
    "totalAmount": 12.3,
    "score": 12.5,
    "details": {
      "campaignName": "My Campaign",
      "linkToCampaign": "https://bit.ly/camp"
    }
}]