Get Reviews
General Purpose
The reviews/get request returns reviews for a specific item.
Element | Description | Value |
---|---|---|
userId | User ID. | string |
docId | Record id from the PNX table. | string |
Element | Description | Value |
---|---|---|
TagsAndReviews | Root element of the XML tree. | no value |
Reviews | Element to contain one or several sub-elements. Structure: Sub-element of TagsAndReviews. | no value |
userId | User id. Structure: Sub-element of Reviews. | string |
docId | Record id from the PNX table. Structure: Sub-element of Reviews. | string |
value | The user’s review to be added. Structure: Sub-element of Reviews. | string |
rating | Rate given by the user to the Item. Structure: Sub-element of Reviews. | 1 to 10 Default: 1 |
status | status of review (0=deleted ,2= Active) | “1” to “n” |
userDisplayName | Name to be displayed with the review. Structure: Sub-element of Reviews. | string |
allowUserName | Whether user agree to display his name next to review. Structure: Sub-element of Reviews. | “false” or “true” Default: fals |
http://primo:170X/PrimoWebServices/xservice/reviews/get?userId=demo&docId=demo_voyager968394
Output Example
<TagsAndReviews xmlns="http://com/exlibris/primo/xsd/tagsAndReview/config"> <Reviews> <Review> <value>good55</value> <docId>demo_voyager968394</docId> <userId>demo</userId> <status>2</status> <rating>2</rating> <userDisplayName>Hila</userDisplayName> <allowUserName>true</allowUserName> </Review> </Reviews> </TagsAndReviews>