How to get comments of an event? Show Events API does not seem to contain the Comments.
Ref: https://community.telligent.com/community/11/w/api-documentation/64616/events-rest-endpoints
How to get comments of an event? Show Events API does not seem to contain the Comments.
Ref: https://community.telligent.com/community/11/w/api-documentation/64616/events-rest-endpoints
You need to do another API call to get the comments.
Great. I pass the applicationId or contentId? its not specific to event right? please correct me if I'm wrong
If you pass the ContentId that will give the specific event's comments only.
Satish Kumar (3sides)I've tried a few ways, but the API either returns all the comments across the site, or no comments at all. Please share a sample API to show how to get the comments for a given event / blog.
can you please let me know what are you using for authenticating the rest api
I am using this:
curl --location --request GET 'unilever.telligentdemo.com/.../comments.json' \ --header 'Rest-User-Token: (removed)'
Hi Gaurav, what are the request parameters you are sending?
This is the response i get for the rest API /api.ashx/v2/calendars/events/{calendarId}.json
For this API did you mean to write {calendarId}? If so that is incorrect as this is the {eventId}. The API for events is /api.ashx/v2/calendars/{calendarId/events.json
I am using this:
curl --location --request GET '
You received results here correct? Like Satish mentioned, try [yoursite]/api.ashx/v2/comments.json?ContentId=XXXXXXXX and report back results.
Hi all, I think I got the correct list of comments for the event. Thanks for the support. However, the JSON response contains a HTML response of the comment body, rather than a String.
Ex:
You can specify a different PostTarget option if you are not wanting any HTML at all.
List Comment REST Endpoint - API Documentation - Verint Community 11.x - Telligent Community
You can specify a different PostTarget option if you are not wanting any HTML at all.
List Comment REST Endpoint - API Documentation - Verint Community 11.x - Telligent Community
The only PostTarget that removed a but of the comment HTML was Email.
Unfotunately, it's part of the following. You should be able to strip it after you retrieve it using something like ^(?:<p>)?(.*?)(?:</p>)$ -> $1.