How to use API to display and recieve comments and questions.
This documents the Api for giving end users access to make comments and questions. It's main use case is for customers that use Api for displaying LiveCenter on their site. This allows them to integrate user contribution into their system. This accompanied by the new user contribution CMS tool, allows moderation and publication of the user contributions.
Domains:
There currently exists two domains. Use ONLY the one that corresponds to your region:
EU/US: livecenter-usercontent.azurewebsites.net
Australia: https://lc-contributions-aus.azurewebsites.net
Submit comment endpoint
Main method for submitting comment by end users
Method: HttpPost
Route: /api/v2/contribution/{tenantKey}/{channelId}/comment
Body:
{
"data": {
"comment": "TestComment",
"contact": "TestContactName",
"commentType": "Comment",
"name": "TestName",
"postId": 12345 //required for type "Comment"
}
}
Comment types
When providing payload for comments you will need to provide a type for it to work with the new system.
Types:
Comment
- Normal, comments made to existing postsQuestion
- Questions, made into new question postsnull
- Will not be visible in the new user contribution system. This will make a comment in the "old comment system"