Add News Comment
Request Parameters:
Add the News Comment
URL : ../Api/Client/NewsCommentAdd
Header:
Content-Type:application/json
Required Parameters : NewsItemId,CommentTitle,CommentText
Case-1. Exception Response :
Parameter:
{
"ApiSecretKey": "h109c120l107f108j98v112z117u109",
"StoreId": "1",
"NewsItemId": "1",
"CustomerGUID":"bb862cae-5462-4622-b3ee-602a6f4b7b62",
"CaptchaValid":"true",
"CommentTitle":"",
"CommentText":"",
"LanguageId":"1"
}
Response :
{
"Status": 2,
"Message": "Invalid parameters.",
"Data": null,
"ValidationMessage": [
"The CommentText field is required.",
"The CommentTitle field is required."
],
"ErrorMessage": null
}
Case-2. Success Response :
Parameter:
{
"ApiSecretKey": "h109c120l107f108j98v112z117u109",
"StoreId": "1",
"NewsItemId": "1",
"CustomerGUID":"bb862cae-5462-4622-b3ee-602a6f4b7b62",
"CaptchaValid":"true",
"CommentTitle":"API Test Title",
"CommentText":"API Test Comment Text",
"LanguageId":"1",
}
Response :
{
"Status": 1,
"Message": "News comment added successfully.",
"Data": null,
"ValidationMessage": [],
"ErrorMessage": null
}