08-28-2017 07:57 AM
We are creating custom application, in which we want documents or our images to be "liked" using the like button.
Is here any exposed API of alfresco or share application that we can use in our custom application?
08-29-2017 02:12 AM
The Java API of Alfresco includes the RatingService with which you can access the "Likes" of a content item and also add/remove to them. You cannot call it from JavaScript-backed web scripts in standard Alfresco unfortunately, so you have to use a Java-backed web script.
08-29-2017 02:12 AM
The Java API of Alfresco includes the RatingService with which you can access the "Likes" of a content item and also add/remove to them. You cannot call it from JavaScript-backed web scripts in standard Alfresco unfortunately, so you have to use a Java-backed web script.
08-29-2017 12:29 PM
Hi,
In addition to Axel's reply, you might also consider using the public Node Ratings REST API (Alfresco Content Services REST API Explorer) with "likes" rating scheme id.
IIRC, this is available since Alfresco 4.2 (to 5.2) and is used by our current iOS & Android mobile clients. You can look at how they use the API or refer to some tests for some example usage.
Regards,
Jan
Explore our Alfresco products with the links below. Use labels to filter content by product module.