API - Petition Activity Detail

ActivityType - PETITION

In addition to the Base Detail, the following will be returned : 

FeildDescriptionDetail
comment Comment left by the signer of the petition No strict limit on the size of the comment - it's advised to store within a text field
moderationState The current comment display setting within Salsa Engage

Will be one of:

  • DISPLAY
  • DONT_DISPLAY
  • PENDING

Only provided if there was a comment

displaySignaturePublicly Flag to indicate if the signer chose to show their signature Will be either True or False
displayCommentPublicly Flag to indicate if the signer chose to show their comment.

Will be either True or False

Only provided if there was a comment

 

Petition Example

{
    "header":{"processingTime":26,"serverId":"serverId"},
    "payload":{
         "total":1,"offset":0,"count":1,
         "activities":[
               {"activityId":"de5654fa-802e-4831-a7da-760c4c2e9dc9",
                "activityFormName":"Activity Name",
                "activityFormId":"eb67c422-de68-40ef-ac93-6b5cd87dc4d2",
                "supporterId":"71f6c860-7bcd-4872-aeb5-bbf1a950c00c",
                "activityDate":"2016-05-26T14:00:57.649Z",
                "activityType":"PETITION",
                "lastModified":"2016-05-26T14:00:57.650Z",
                "comment":"I supporter this cause",
                "moderationState":"PENDING",
                "displaySignaturePublicly":true,
                "displayCommentPublicly":true}
           ]
     }
}
Have more questions? Submit a request
Powered by Zendesk