post https://cf-blast.livelikecdn.com/api/v1/widget-interactions/image-poll//options//votes/
When a Poll widget is created, an array of options
is part of the data. Each of these options include an id
and a vote_url
, among other fields.
Voting on a Poll can be accomplished two ways:
- Make a POST request to this
vote_url
field. - Make a POST request to the above endpoint.
Once that request is made, the option's vote_count
field will be incremented by 1.
This request requires a user profile's access_token
to be sent as the Bearer Token in the requests authorization headers. This is what associates the widget interaction with the user profile. Once this request is made, the widget interaction is created, and can be viewed through the widget interaction endpoint .
If the widget is connected to a Reward Item , once the request is made the user is rewarded, and the reward can be viewed through the Reward Transaction endpoint .