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

ParametertypeRequiredDescription
articleIdstringyesGUID of the article
isPinnedintyesPin status of the article
positionintyesPosition of article
isSocialArticleintyesWhether the article is social or not

Response Example

{"success":1}