pinUnpinArticle
Function used to pin or unpin and article.
Example Usage
$.fn.pinUnpinArticle({
articleId: 1,
isPinned: 1,
position: 4,
isSocialArticle: 0,
onSuccess: function (data) {
// handle the response as per your requirements
},
beforeSend: function (obj) {
}
});
Parameters
Parameter | type | Required | Description |
---|---|---|---|
articleId | string | yes | GUID of the article |
isPinned | int | yes | Pin status of the article |
position | int | yes | Position of article |
isSocialArticle | int | yes | Whether the article is social or not |
Response Example
{"success":1}
Updated over 7 years ago