The Contest Completed Event

The "contest completed" event is a webhook event that is triggered whenever a contest completes.

Example

Below is an example of the JSON data you'd receive from the "Contest Completed" event.


                    {
                       "Event":"ContestCompleted",
                       "Timestamp":"2016-03-16 13:15:20",
                       "attemptNumber":1,
                       "Contest":{
                          "ContestId":"1728",
                          "DateCreated":"2016-03-16 13:07:22",
                          "TextwordID":"12345",
                          "ContestName":"My Awesome Contest",
                          "StartTime":"2016-03-12 13:00:00",
                          "EndTime":"2016-03-16 12:00:00",
                          "AutoReply":"Thanks for entering our contest! We will text the winners on 3/16. Stay tuned!",
                          "WinnerMessage":"You are a winner! Show this text to any sales representative to claim your gift card!",
                          "TotalEntrants":1804,
                          "TotalWinners":6
                       },
                       "Textword":{
                          "TextwordId":"12345",
                          "Textword":"slicktext",
                          "AutoReply":false
                       },
                       "Winners":[
                          {
                             "EntrantId":"85166",
                             "ContestId":"1728",
                             "Number":"+15555555555",
                             "City":Jamestown,
                             "State":NY,
                             "WonTime":2016-03-16 12:00:00
                          }
                       ]
                    }