Call the API in your code by using API url, set a post variable named as review and set the review to this variable.
Example test of API in php
Input review="The quality of this product is excellent"
How it works?
Calculate rating form review algorithm is a simple web API algorithm which accept a rating string from post method by API call from any programming or scripting language and return the positive and negative points of the the review, if review does not contain any negative word then the negative points will be zero and similarly if it doesn't contain any positive word than the positive points will be zero the rating points are out of 10.