Review & Rating Service

This module enables you to manage reviews and ratings for App items. The item can be anything having an id e.g. App on an App store/ marketplace, items in a catalogue, articles, blogs etc. It manages the review comments and their respective ratings. It also provides various methods to find average, highest and lowest reviews. Reviews can be also be muted or un-muted if they reflect any objectionable content.

Initialize

In order to use various the functions available in a specific API, a developer has to initialize with App42API by passing the apiKey and secretKey which will be created after the app creation from AppHQ dashboard.

Required Parameters

apiKey - The Application key given when the application was created. secretKey - The secret key corresponding to the application key given when the application was created.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
App42API.Initialize("API_KEY","SECRET_KEY");
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
App42API.initialize("API_KEY","SECRET_KEY");
App42API.initialize("API_KEY","SECRET_KEY");
App42API.Initialize("API_KEY","SECRET_KEY");
App42.initialize("API_KEY","SECRET_KEY");
Coming Soon
Coming Soon
App42API.Initialize("API_KEY","SECRET_KEY");
App42API::initialize("API_KEY","SECRET_KEY");
Coming Soon
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
App42API.initialize("API_KEY","SECRET_KEY");
Coming Soon

Build Service

After initialization, developer needs to call the buildXXXService method on App42API to get the instance of the particular API that you wish to build. For example, To build an instance of Review Service, buildReviewService() method needs to be called.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
ReviewService reviewService = App42API.buildReviewService(); 
ReviewService reviewService = App42API.BuildReviewService();  
ReviewService *reviewService = [App42API buildReviewService]; 
ReviewService reviewService = App42API.buildReviewService(); 
ReviewService reviewService = App42API.buildReviewService(); 
ReviewService reviewService = App42API.BuildReviewService(); 
var reviewService  = new App42Review();
Coming Soon
Coming Soon
ReviewService reviewService = App42API.BuildReviewService(); 
$reviewService = App42API::buildReviewService();
Coming Soon
reviewService = api.buildReviewService();
var reviewService:ReviewService = App42API.buildReviewService();
Coming Soon

Import Statement

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
import com.shephertz.app42.paas.sdk.android.App42API;
import com.shephertz.app42.paas.sdk.android.App42Response;
import com.shephertz.app42.paas.sdk.android.App42Exception;
import com.shephertz.app42.paas.sdk.android.App42BadParameterException;
import com.shephertz.app42.paas.sdk.android.App42NotFoundException;
import com.shephertz.app42.paas.sdk.android.review.Review;
import com.shephertz.app42.paas.sdk.android.review.ReviewService;
using com.shephertz.app42.paas.sdk.windows;  
using com.shephertz.app42.paas.sdk.windows.review;   
#import "Shephertz_App42_iOS_API/Shephertz_App42_iOS_API.h"   
import com.shephertz.app42.paas.sdk.jme.App42API;
import com.shephertz.app42.paas.sdk.jme.App42Response;
import com.shephertz.app42.paas.sdk.jme.App42Exception;
import com.shephertz.app42.paas.sdk.jme.App42BadParameterException;
import com.shephertz.app42.paas.sdk.jme.App42NotFoundException;
import com.shephertz.app42.paas.sdk.jme.review.Review;
import com.shephertz.app42.paas.sdk.jme.review.ReviewService;
import com.shephertz.app42.paas.sdk.java.App42API;
import com.shephertz.app42.paas.sdk.java.App42Response;
import com.shephertz.app42.paas.sdk.java.App42Exception;
import com.shephertz.app42.paas.sdk.java.App42BadParameterException;
import com.shephertz.app42.paas.sdk.java.App42NotFoundException;
import com.shephertz.app42.paas.sdk.java.review.Review;
import com.shephertz.app42.paas.sdk.java.review.ReviewService;
using com.shephertz.app42.paas.sdk.csharp;  
using com.shephertz.app42.paas.sdk.csharp.review;
<script type="text/javascript" src="App42-all-x.x.x.min.js">
Coming Soon
Coming Soon
using com.shephertz.app42.paas.sdk.csharp;  
using com.shephertz.app42.paas.sdk.csharp.review;  
 
include_once '../App42Response.php';  
include_once '../App42Exception.php';  
include_once '../App42BadParameterException.php';  
include_once '../App42NotFoundException.php';
include_once '../App42Log.php';  
include_once '../ReviewService.php'; 
Coming Soon
require 'App42_Ruby_API'
import com.shephertz.app42.paas.sdk.as3.App42API;
import com.shephertz.app42.paas.sdk.as3.App42Response;
import com.shephertz.app42.paas.sdk.as3.App42Exception;
import com.shephertz.app42.paas.sdk.as3.App42BadParameterException;
import com.shephertz.app42.paas.sdk.as3.App42NotFoundException;
import com.shephertz.app42.paas.sdk.as3.review.Review;
import com.shephertz.app42.paas.sdk.as3.review.ReviewService;
Coming Soon

Create Review

Creates review for the specified item with comment and rating on that item.

Required Parameters

userID - The user who created the review. itemID - The item for which the review has to be created. reviewComment - Comment on review. reviewRating - Rating on the item.e.g 1,2 or etc

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String userID = "Nick";
String itemID = "itemID";
String reviewComment = "reviewComment";
double reviewRating = 3;					
reviewService.createReview(userID, itemID, reviewComment, reviewRating, new App42CallBack() {
public void onSuccess(Object response) 
{
	Review review  = (Review)response;
	System.out.println("userId is :" + review.getUserId());  
	System.out.println("itemId is " + review.getItemId());  
	System.out.println("comment is :" + review.getComment());  
	System.out.println("rating is :" + review.getRating()); 
	System.out.println("Review Id :"+review.getReviewId());
	System.out.println("CreatedOn is :"+review.getCreatedOn());
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
}); 
  
String userID = "Nick";
String itemID = "itemID";
String reviewComment = "reviewComment";
double reviewRating = 3;					
reviewService.CreateReview(userID,itemID,reviewComment,reviewRating,new Callback());
public class Callback : App42Callback  
{
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		Review review = (Review) response;   
		Console.WriteLine("userId is " + review.GetUserId());
		Console.WriteLine("itemId is " + review.GetItemId());  
		String jsonResponse = review.ToString();    
	}  
}  
NSString NSString *userID = @"Nick";
NSString *itemID = @"itemID";
NSString *reviewComment = @"reviewComment";
double reviewRating = 3;					
Review *review = [reviewService createReview:userID itemID:itemID reviewComment:reviewComment reviewRating:reviewRating]; 
NSLog(@"userId =%@", review.userId);
NSLog(@"itemId =%@", review.itemId);
NSString *jsonResponse = [review toString];
String userID = "Nick";
String itemID = "itemID";
String reviewComment = "reviewComment";
double reviewRating = 3;					
Review review = reviewService.createReview(userID,itemID,reviewComment,reviewRating);  
System.out.println("userId is " + review.getUserId());
System.out.println("itemId is " + review.getItemId());
String jsonResponse = review.toString(); 
String userID = "Nick";
String itemID = "itemID";
String reviewComment = "reviewComment";
double reviewRating = 3;					
Review review = reviewService.createReview(userID,itemID,reviewComment,reviewRating);  
System.out.println("userId is :" + review.getUserId());  
System.out.println("itemId is " + review.getItemId());  
System.out.println("comment is :" + review.getComment());  
System.out.println("rating is :" + review.getRating()); 
System.out.println("Review Id :"+review.getReviewId());
System.out.println("CreatedOn is :"+review.getCreatedOn());
String jsonResponse = review.toString(); 
String userID = "Nick";
String itemID = "itemID";
String reviewComment = "reviewComment";
double reviewRating = 3;
App42Log.SetDebug(true);		//Print output in your editor console					
reviewService.CreateReview(userID, itemID, reviewComment, reviewRating, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		Review review = (Review) response;   
		App42Log.Console("userId is " + review.GetUserId());
		App42Log.Console("itemId is " + review.GetItemId());
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var userID = "Nick",
itemID = "itemID",
reviewComment = "reviewComment",
reviewRating = 3,
response ;  
reviewService.createReview(userID,itemID,reviewComment,reviewRating,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews.review;
		console.log("userId is " + response.userId)
		console.log("itemId is " + response.itemId)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String userID = "Nick";
String itemID = "itemID";
String reviewComment = "reviewComment";
double reviewRating = 3;					
Review review = reviewService.CreateReview(userID,itemID,reviewComment,reviewRating); 
Console.WriteLine("userId is " + review.GetUserId());
Console.WriteLine("itemId is " + review.GetItemId());  
String jsonResponse = review.ToString();    
$userID = "Nick";
$itemID = "itemID";
$reviewComment = "reviewComment";
$reviewRating = 3;	
$review = $reviewService->createReview($userID, $itemID, $reviewComment,$reviewRating); 
print_r("UserId is : ".$review->getUserId().PHP_EOL);
print_r("ItemId is :".$review->getItemId().PHP_EOL);
print_r("Review Id is :".$review->getReviewId().PHP_EOL);
print_r("Comment is:  ".$review->getComment().PHP_EOL);
print_r("Ranking is : ".$review->getRating().PHP_EOL);
print_r("CreatedOn is :".$review->getCreatedOn().PHP_EOL);     
$jsonResponse = $review->toString();
Coming Soon
userID = "Nick";
itemID = "itemID";
reviewComment = "reviewComment";
reviewRating = 3;						
review = review_service.create_review(userID, itemID, reviewComment, reviewRating); 
puts "userId is #{review.userID}";
puts "itemId is #{review.itemID}";
puts "comment #{review.comment}";
puts "rating #{review.rating}";
json_response = review.to_s();
var userID:String = "Nick";
var itemID:String = "itemID";	
var reviewComment:String="reviewComment";
var reviewRating:Number = 3;
reviewService.createReview(userID, itemID, reviewComment, reviewRating, new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
}
Coming Soon 

Get All Reviews

Fetches all reviews in the App.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
reviewService.getAllReviews(new App42CallBack() {
public void onSuccess(Object response) 
{
	ArrayList<Review> review = (ArrayList<Review>)response;
	for(int i = 0;i < review.size();i++)
	{
		System.out.println("userId is " + review.get(i).getUserId());  
		System.out.println("itemId is " + review.get(i).getItemId());  
		System.out.println("comment is :" + review.get(i).getComment());  
		System.out.println("rating is :" + review.get(i).getRating()); 
		System.out.println("Review Id :"+review.get(i).getReviewId());
		System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
reviewService.GetAllReviews(new Callback());
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		IList<Review> review = (List<Review>) response; 
		for(int i=0;i<review.Count;i++){
			Console.WriteLine("userId is " + review[i].GetUserId());
			Console.WriteLine("itemId is " + review[i].GetItemId()); 
		}
	}  
}  
NSArray *review = [reviewService getAllReviews];
NSLog(@"userId =%@", [[review objectAtIndex:0] userId]);
NSLog(@"itemId =%@", [[review objectAtIndex:0] itemId);
NSString *jsonResponse = [review toString]; 
Vector reviewList = reviewService.getAllReviews(); 
for(int i=0;i < reviewList.size();i++)  
{ 
	Review review = (Review)reviewList.elementAt(i);  
	System.out.println("userId is " + review.getUserId());
	System.out.println("itemId is " + review.getItemId());
}         
ArrayList<Review> review = reviewService.getAllReviews(); 
for(int i = 0;i < review.size();i++)
{
	System.out.println("userId is " + review.get(i).getUserId());  
	System.out.println("itemId is " + review.get(i).getItemId());  
	System.out.println("comment is :" + review.get(i).getComment());  
	System.out.println("rating is :" + review.get(i).getRating()); 
	System.out.println("Review Id :"+review.get(i).getReviewId());
	System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
}
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetAllReviews(new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		IList<Review> review = (List<Review>) response; 
		for(int i=0;i<review.Count;i++){
			App42Log.Console("userId is " + review[i].GetUserId());
			App42Log.Console("itemId is " + review[i].GetItemId()); 
		}
	}


	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var response ;  
reviewService.getAllReviews({  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews;
		console.log("response is " + response)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
IList<Review> review = reviewService.GetAllReviews();
for(int i=0;i<review.Count;i++){
	Console.WriteLine("userId is " + review[i].GetUserId());
	Console.WriteLine("itemId is " + review[i].GetItemId()); 
}
$reviewResponse = $reviewService->getAllReviews(); 
foreach ($reviewResponse as $review) 
{
	print_r("UserId is " . $review->getUserId() );
	print_r("ItemId is " . $review->getItemId() );
	print_r("Review Id " . $review->getReviewId() );
	print_r("Status is " . $review->getStatus() );
	print_r("Comment is " . $review->getComment() );
	print_r("Ranking " . $review->getRating() );
	print_r("CreatedOn  is " . $review->getCreatedOn() );
}
$jsonResponse = $reviewResponse[0]->toString();
Coming Soon
review_list = Array.new();
review_list = review_service.get_all_reviews(); 
for review in review_list do
  puts "userId is #{review.user_id}";
  puts "itemId is #{review.item_id}";
  puts "comment #{review.comment}";
  puts "rating #{review.rating}";
end
json_response = review_list.to_s();
reviewService.getAllReviews(new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get All Reviews Count

Fetches count of all reviews in the App.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
reviewService.getAllReviewsCount(new App42CallBack() {
public void onSuccess(Object response) 
{
	App42Response app42response = (App42Response)response;      
	System.out.println("Total Records :  " + app42response.getTotalRecords());
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
}); 
reviewService.GetAllReviewsCount(new Callback()); 
public class Callback : App42Callback  
{   
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}  
}  
App42Response *response = [reviewService getAllReviewsCount]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                             
App42Response response = reviewService.getAllReviewsCount(); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
App42Response app42response = reviewService.getAllReviewsCount(); 
System.out.println("Total Records :  " + app42response.getTotalRecords()) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetAllReviewsCount(new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var response ;  
reviewService.getAllReviewsCount({  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response;
		console.log("success is " + response.success)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
App42Response response = reviewService.GetAllReviewsCount(); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$response = $reviewService->getAllReviewsCount(); 
print_r("Total Records :".$response->getTotalRecords());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
response = review_service.get_all_reviews_count();   
success = response.is_response_success();
total_records = response.total_records();
json_response = response.to_s();
reviewService.getAllReviewsCount(new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get All Reviews Paging

Fetches all reviews in the App by Paging.

Required Parameters

max - Maximum number of records to be fetched. offset - From where the records are to be fetched.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
int max = 1;
int offset = 0 ;
reviewService.getAllReviews(max,offset, new App42CallBack() {
public void onSuccess(Object response) 
{
	ArrayList<Review> review = (ArrayList<Review>)response;
	for(int i = 0;i < review.size();i++)
	{
		System.out.println("userId is " + review.get(i).getUserId());  
		System.out.println("itemId is " + review.get(i).getItemId());  
		System.out.println("Review Id :"+review.get(i).getReviewId());
		System.out.println("comment is :" + review.get(i).getComment());  
		System.out.println("rating is :" + review.get(i).getRating()); 
		System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
int max = 1;
int offset = 0 ;
reviewService.GetAllReviews(max,offset,new Callback());
public class Callback : App42Callback  
{  
	public voidOnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public voidOnSuccess(Object response)  
	{  
		IList<Review> review = (List<Review>) response;   
		for(int i=0;i<review.Count;i++){
			Console.WriteLine("userId is " + review[i].GetUserId());
			Console.WriteLine("itemId is " + review[i].GetItemId()); 
		}
	}  
}  
int max = 1;
int offset = 0 ;
NSArray *review = [reviewService getAllReviews:max offset:offset];
NSLog(@"userId =%@", [[review objectAtIndex:0] userId]);
NSLog(@"itemId =%@", [[review objectAtIndex:0] itemId);
NSString *jsonResponse = [review toString]; 
Integer max = new Integer(1);
Integer offset = new Integer(0);  
Vector reviewList = reviewService.getAllReviews(max,offset); 
for(int i=0;i < reviewList.size();i++)  
{ 
	Review review = (Review)reviewList.elementAt(i);  
	System.out.println("userId is " + review.getUserId());
	System.out.println("itemId is " + review.getItemId());
}         
int max = 1;
int offset = 0 ;
ArrayList<Review> review = reviewService.getAllReviews(max,offset);
for(int i = 0;i < review.size();i++)
{
	System.out.println("userId is " + review.get(i).getUserId());  
	System.out.println("itemId is " + review.get(i).getItemId());  
	System.out.println("Review Id :"+review.get(i).getReviewId());
	System.out.println("comment is :" + review.get(i).getComment());  
	System.out.println("rating is :" + review.get(i).getRating()); 
	System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
}
int max = 1;
int offset = 0 ;
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetAllReviews(max, offset,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		IList<Review> review = (List<Review>) response; 
		for(int i=0;i<review.Count;i++){
			App42Log.Console("userId is " + review[i].GetUserId());
			App42Log.Console("itemId is " + review[i].GetItemId()); 
		}
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var max = 1;
var offset = 0 ;
var response ;  
reviewService.getAllReviewsWithPaging(max,offset,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews;
		console.log("response is " + response)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
int max = 1;
int offset = 0 ;
IList<Review> review = reviewService.GetAllReviews(max,offset); 
for(int i=0;i<review.Count;i++){
	Console.WriteLine("userId is " + review[i].GetUserId());
	Console.WriteLine("itemId is " + review[i].GetItemId()); 
}
$max = 1;
$offset = 0 ;
$reviewResponse = $reviewService->getAllReviews($max,$offset); 
foreach ($reviewResponse as $review) 
{
	print_r("UserId is " . $review->getUserId() );
	print_r("ItemId is " . $review->getItemId() );
	print_r("Review Id " . $review->getReviewId() );
	print_r("Status is " . $review->getStatus() );
	print_r("Comment is " . $review->getComment() );
	print_r("Ranking " . $review->getRating() );
	print_r("CreatedOn  is " . $review->getCreatedOn() );
}
$jsonResponse = $reviewResponse[0]->toString();
Coming Soon
max = 1;
offset = 0;				
review_list = Array.new();
review_list = review_service.get_all_reviews_by_paging(max, offset);
for review in review_list do
  puts "userId is #{review.user_id}";
  puts "itemId is #{review.item_id}";
  puts "comment #{review.comment}";
  puts "rating #{review.rating}";
end
json_response = review_list.to_s();
var max:int=1;
var offset:int=1;
reviewService.getAllReviewsWithPaging(max, offset,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get Reviews By Item

Fetches All Reviews based on the itemId.

Required Parameters

itemId - The item id for which reviews have to be fetched.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String itemId = "itemId";
reviewService.getReviewsByItem(itemId, new App42CallBack() {
public void onSuccess(Object response) 
{
	ArrayList<Review> review = (ArrayList<Review>)response;
	for(int i = 0;i < review.size();i++)
	{
		System.out.println("userId is " + review.get(i).getUserId());  
		System.out.println("itemId is " + review.get(i).getItemId());  
		System.out.println("Review Id :"+review.get(i).getReviewId());
		System.out.println("comment is :" + review.get(i).getComment());  
		System.out.println("rating is :" + review.get(i).getRating()); 
		System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String itemId = "itemId";
reviewService.GetReviewsByItem(itemId,new Callback());
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		IList<Review> review = (List<Review>) response;   
		for(int i=0;i<review.Count;i++){
			Console.WriteLine("userId is " + review[i].GetUserId());
			Console.WriteLine("itemId is " + review[i].GetItemId()); 
		}
	}  
}  
NSString *itemId = @"itemId";
NSArray *review = [reviewService getReviewsByItem:itemId];
NSLog(@"userId =%@", [[review objectAtIndex:0] userId]);
NSLog(@"itemId =%@", [[review objectAtIndex:0] itemId);
NSString *jsonResponse = [review toString]; 
String itemId = "itemId";
Vector reviewList = reviewService.getReviewsByItem(itemId); 
for(int i=0;i < reviewList.size();i++)  
{ 
	Review review = (Review)reviewList.elementAt(i);  
	System.out.println("userId is " + review.getUserId());
	System.out.println("itemId is " + review.getItemId());
}         
String itemId = "itemId";
ArrayList<Review> review = reviewService.getReviewsByItem(itemId);
for(int i = 0;i < review.size();i++)
{
	System.out.println("userId is " + review.get(i).getUserId());  
	System.out.println("itemId is " + review.get(i).getItemId());  
	System.out.println("Review Id :"+review.get(i).getReviewId());
	System.out.println("comment is :" + review.get(i).getComment());  
	System.out.println("rating is :" + review.get(i).getRating()); 
	System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
}
String itemId = "itemId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetReviewsByItem(itemId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		IList<Review> review = (IList<Review>)response;
		for(int i=0;i<review.Count;i++){
			App42Log.Console("userId is " + review[i].GetUserId());
			App42Log.Console("itemId is " + review[i].GetItemId()); 
		}
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var itemId = "itemId";
var response ;  
reviewService.getReviewsByItem(itemId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews;
		console.log("response is " + response)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String itemId = "itemId";
IList<Review> review = reviewService.GetReviewsByItem(itemId); 
for(int i=0;i<review.Count;i++){
	Console.WriteLine("userId is " + review[i].GetUserId());
	Console.WriteLine("itemId is " + review[i].GetItemId()); 
}
$itemId = "itemId";
$reviewResponse = $reviewService->getReviewsByItem($itemId); 
foreach ($reviewResponse as $review)
{
	print_r("UserId is " . $review->getUserId() );
	print_r("ItemId is " . $review->getItemId() );
	print_r("Review Id " . $review->getReviewId() );
	print_r("Status is " . $review->getStatus() );
	print_r("Comment is " . $review->getComment() );
	print_r("Ranking " . $review->getRating() );
	print_r("CreatedOn  is " . $review->getCreatedOn() );
}
$jsonResponse = $reviewResponse[0]->toString();
Coming Soon
itemId = "itemId";				
review_list = Array.new();
review_list = review_service.get_reviews_by_item(itemId);
for review in review_list do
  puts "userId is #{review.user_id}";
  puts "itemId is #{review.itemId}";
  puts "comment #{review.comment}";
  puts "rating #{review.rating}";
end
json_response = review_list.to_s();
var itemId:String="itemId";
reviewService.getReviewsByItem(itemId, new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get Reviews Count By Item

Fetches the count of All Reviews based on the itemId.

Required Parameters

itemId - The item id for which count of reviews has to be fetched.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String itemId = "itemId";
reviewService.getReviewsCountByItem(itemId, new App42CallBack() {
public void onSuccess(Object response) 
{
	App42Response app42response = (App42Response)response;      
	System.out.println("Total Records : " + app42response.getTotalRecords()) ;
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
}); 
String itemId = "itemId";
reviewService.GetReviewsCountByItem(itemId,new Callback()); 
public class Callback : App42Callback  
{   
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}  
}  
NSString *itemId = @"itemId";
App42Response *response = [reviewService getReviewsCountByItem:itemId]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                             
String itemId = "itemId";
App42Response response = reviewService.getReviewsCountByItem(itemId); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
String itemId = "itemId";
App42Response app42response = reviewService.getReviewsCountByItem(itemId); 
System.out.println("Total Records : " + app42response.getTotalRecords()) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String itemId = "itemId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetReviewsCountByItem(itemId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var itemId = "itemId";
var response ;  
reviewService.getReviewsCountByItem(itemId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response;
		console.log("totalRecords is " + response.totalRecords)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String itemId = "itemId";
App42Response response = reviewService.GetReviewsCountByItem(itemId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$itemId = "itemId";
$response = $reviewService->getReviewsCountByItem($itemId); 
print_r("Total Records is : ".$response->getTotalRecords());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
itemId = "itemId";						
response = review_service.get_reviews_count_by_item(itemId);
success = response.is_response_success();
total_records = response.total_records();
json_response = response.to_s();
var itemId:String="itemId";
reviewService.getReviewsCountByItem(itemId,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get Reviews By Item Paging

Fetch All Reviews based on the itemId by paging.

Required Parameters

itemId - The item for which reviews have to be fetched. max - Maximum number of records to be fetched. offset - From where the records are to be fetched.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String itemId = "itemId";
int max = 1;
int offset= 0;
reviewService.getReviewsByItem(itemId, max, offset, new App42CallBack() {
public void onSuccess(Object response) 
{
	ArrayList<Review> review = (ArrayList<Review>)response;
	for(int i = 0;i < review.size();i++)
	{
		System.out.println("userId is " + review.get(i).getUserId());  
		System.out.println("itemId is " + review.get(i).getItemId());  
		System.out.println("comment is :" + review.get(i).getComment());  
		System.out.println("rating is :" + review.get(i).getRating());
		System.out.println("Review Id :"+review.get(i).getReviewId());		
		System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String itemId = "itemId";
int max = 1;
int offset= 0;
reviewService.GetReviewsByItem(itemId,max,offset,new Callback());
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		IList<Review> review = (List<Review>) response;   
		for(int i=0;i<review.Count;i++){
			Console.WriteLine("userId is " + review[i].GetUserId());
			Console.WriteLine("itemId is " + review[i].GetItemId()); 
		}
	}  
}  
NSString *itemId = @"itemId";
int max = 1;
int offset= 0;
NSArray *review = [reviewService getReviewsByItem:itemId max:max offset:offset];
NSLog(@"userId =%@", [[review objectAtIndex:0] userId]);
NSLog(@"itemId =%@", [[review objectAtIndex:0] itemId);
NSString *jsonResponse = [review toString]; 
String itemId = "itemId";
Integer max = new Integer(1);
Integer offset = new Integer(0);  
Vector reviewList = reviewService.getReviewsByItem(itemId,max,offset); 
for(int i=0;i < reviewList.size();i++)  
{ 
	Review review = (Review)reviewList.elementAt(i);  
	System.out.println("userId is " + review.getUserId());
	System.out.println("itemId is " + review.getItemId());
}         
String itemId = "itemId";
int max = 1;
int offset= 0;
ArrayList<Review> review = reviewService.getReviewsByItem(itemId,max,offset); 
for(int i = 0;i < review.size();i++)
{
	System.out.println("userId is " + review.get(i).getUserId());  
	System.out.println("itemId is " + review.get(i).getItemId());  
	System.out.println("comment is :" + review.get(i).getComment());  
	System.out.println("rating is :" + review.get(i).getRating());
	System.out.println("Review Id :"+review.get(i).getReviewId());		
	System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
}
String itemId = "itemId";
int max = 1;
int offset= 0;
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetReviewsByItem(itemId,max,offset, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		IList<Review> review = (IList<Review>)response;
		for(int i=0;i<review.Count;i++){
			App42Log.Console("userId is " + review[i].GetUserId());
			App42Log.Console("itemId is " + review[i].GetItemId()); 
		}
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var itemId = "itemId",
max = 1,
offset= 0,
response ;  
reviewService.getReviewsByItemByPaging(itemId,max,offset,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews;
		console.log("response is " + response)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String itemId = "itemId";
int max = 1;
int offset= 0;
IList<Review> review = reviewService.GetReviewsByItem(itemId,max,offset); 
for(int i=0;i<review.Count;i++){
	Console.WriteLine("userId is " + review[i].GetUserId());
	Console.WriteLine("itemId is " + review[i].GetItemId()); 
}
$itemId = "itemId";
$max = 1;
$offset= 0;
$reviewResponse = $reviewService->getReviewsByItem($itemId,$max,$offset); 
foreach ($reviewResponse as $review)
{
	print_r("UserId is " . $review->getUserId() );
	print_r("ItemId is " . $review->getItemId() );
	print_r("Review Id " . $review->getReviewId() );
	print_r("Status is " . $review->getStatus() );
	print_r("Comment is " . $review->getComment() );
	print_r("Ranking " . $review->getRating() );
	print_r("CreatedOn  is " . $review->getCreatedOn() );
}
$jsonResponse = $reviewResponse[0]->toString();
Coming Soon
itemId = "itemId";
max = 1;	
offset = 0;							
review_list = Array.new();
review_list = review_service.get_review_by_item_by_paging(itemId, max, offset); 
for review in review_list do
  puts "userId is #{review.user_id}";
  puts "itemId is #{review.item_id}";
  puts "comment #{review.comment}";
  puts "rating #{review.rating}";
end
json_response = review_list.to_s();
var itemId:String="itemId";
var max:int=1;
var offset:int=0;
reviewService.getReviewsByItemByPaging(itemId, max, offset,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get Highest Review By Item

Fetch the highest review for the specified itemId.

Required Parameters

itemId - The item id for which the highest review has to be fetched.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String itemId = "itemId";
reviewService.getHighestReviewByItem(itemId, new App42CallBack() {
public void onSuccess(Object response) 
{
	Review review  = (Review)response;
	System.out.println("itemId is " + review.getItemId());  
	System.out.println("rating is " + review.getRating());  
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String itemId = "itemId";
reviewService.GetHighestReviewByItem(itemId,new Callback());
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		Review review = (Review) response;   
		Console.WriteLine("rating is " + review.GetRating());
		Console.WriteLine("itemId is " + review.GetItemId());  
		String jsonResponse = review.ToString();    
	}  
}  
NSString *itemId = @"itemId";
Review *review = [reviewService getHighestReviewByItem:itemId];
NSLog(@"rating is =%@", review.rating]);
NSLog(@"itemId is =%@", review.itemId);
NSString *jsonResponse = [review toString]; 
String itemId = "itemId";
Review review = reviewService.getHighestReviewByItem(itemId); 
System.out.println("rating is " + review.getRating());
System.out.println("itemId is " + review.getItemId());
String jsonResponse = review.toString();
String itemId = "itemId";
Review review = reviewService.getHighestReviewByItem(itemId); 
System.out.println("itemId is " + review.getItemId());  
System.out.println("rating is " + review.getRating());  
String jsonResponse = review.toString();
String itemId = "itemId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetHighestReviewByItem(itemId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		Review review = (Review) response;   
		App42Log.Console("rating is " + review.GetRating());
		App42Log.Console("itemId is " + review.GetItemId());  
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var itemId = "itemId";
var response ;  
reviewService.getHighestReviewByItem(itemId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews.review;
		console.log("rating is " + response.rating)
		console.log("itemId is " + response.itemId)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String itemId = "itemId";
Review review = reviewService.GetHighestReviewByItem(itemId); 
Console.WriteLine("rating is " + review.GetRating());
Console.WriteLine("itemId is " + review.GetItemId());  
String jsonResponse = review.ToString();    
$itemId = "itemId";
$review = $reviewService->getHighestReviewByItem($itemId); 
print_r("ItemId is : ".$review->getItemId().PHP_EOL);
print_r("rating is : ".$review->getRating().PHP_EOL);
$jsonResponse = $review->toString();
Coming Soon
itemId = "itemId";
review = reviewService.get_highest_review_by_item(itemId); /* returns the Review object. */   
puts "userId is #{review.userId}";
puts "rating is #{review.rating}"; 
jsonResponse = review.to_s();
var itemId:String="itemId";
reviewService.getHighestReviewByItem(itemId, new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get Lowest Review By Item

Fetch the lowest review for the specified itemId.

Required Parameters

itemId - The item id for which the lowest review has to be fetched.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String itemId = "itemId";
reviewService.getLowestReviewByItem(itemId, new App42CallBack() {
public void onSuccess(Object response) 
{
	Review review  = (Review)response;
	System.out.println("itemId is " + review.getItemId());  
	System.out.println("rating is " + review.getRating());  
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String itemId = "itemId";
reviewService.GetLowestReviewByItem(itemId,new Callback());
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		Review review = (Review) response;   
		Console.WriteLine("rating is " + review.GetRating());
		Console.WriteLine("itemId is " + review.GetItemId());  
		String jsonResponse = review.ToString();    
	}  
}  
NSString *itemId = @"itemId";
Review *review = [reviewService getLowestReviewByItem:itemId];
NSLog(@"rating is =%@", review.rating]);
NSLog(@"itemId is =%@", review.itemId);
NSString *jsonResponse = [review toString]; 
String itemId = "itemId";
Review review = reviewService.getLowestReviewByItem(itemId); 
System.out.println("rating is " + review.getRating());
System.out.println("itemId is " + review.getItemId());
String jsonResponse = review.toString();
String itemId = "itemId";
Review review = reviewService.getLowestReviewByItem(itemId); 
System.out.println("itemId is " + review.getItemId());  
System.out.println("rating is " + review.getRating());  
String jsonResponse = review.toString();
String itemId = "itemId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetLowestReviewByItem(itemId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		Review review = (Review) response;   
		App42Log.Console("rating is " + review.GetRating());
		App42Log.Console("itemId is " + review.GetItemId());  
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var itemId = "itemId";
var response ;  
reviewService.getLowestReviewByItem(itemId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews.review;
		console.log("rating is " + response.rating)
		console.log("itemId is " + response.itemId)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String itemId = "itemId";
Review review = reviewService.GetLowestReviewByItem(itemId); 
Console.WriteLine("rating is " + review.GetRating());
Console.WriteLine("itemId is " + review.GetItemId());  
String jsonResponse = review.ToString();    
$itemId = "itemId";
$review = $reviewService->getLowestReviewByItem($itemId); 
print_r("ItemId is " . $review->getItemId() );
print_r("rating is " . $review->getRating() );
$jsonResponse = $review->toString();
Coming Soon
itemId = "itemId";						
review = review_service.get_lowest_review_by_item(itemId);   
puts "itemId is #{review.itemId}";
puts "comment #{review.comment}";
puts "rating #{review.rating}";  
json_response = review.to_s();
var itemId:String="itemId";
reviewService.getLowestReviewByItem(itemId,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get Average Review By Item

Fetch the average review for the specified itemId.

Required Parameters

itemId - The item for which the average review has to be fetched.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String itemId = "itemId";
reviewService.getAverageReviewByItem(itemId, new App42CallBack() {
public void onSuccess(Object response) 
{
	Review review  = (Review)response;
	System.out.println("itemId is " + review.getItemId());  
	System.out.println("rating is " + review.getRating());  
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String itemId = "itemId";
reviewService.GetAverageReviewByItem(itemId,new Callback());
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		Review review = (Review) response;   
		Console.WriteLine("rating is " + review.GetRating());
		Console.WriteLine("itemId is " + review.GetItemId());  
		String jsonResponse = review.ToString();    
	}  
}  
NSString *itemId = @"itemId";
Review *review = [reviewService getAverageReviewByItem:itemId];
NSLog(@"rating is =%@", review.rating]);
NSLog(@"itemId is =%@", review.itemId);
NSString *jsonResponse = [review toString]; 
String itemId = "itemId";
Review review = reviewService.getAverageReviewByItem(itemId); 
System.out.println("rating is " + review.getRating());
System.out.println("itemId is " + review.getItemId());
String jsonResponse = review.toString();
String itemId = "itemId";
Review review = reviewService.getAverageReviewByItem(itemId); 
System.out.println("itemId is " + review.getItemId());  
System.out.println("rating is " + review.getRating());  
String jsonResponse = review.toString();
String itemId = "itemId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetAverageReviewByItem(itemId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		Review review = (Review) response;   
		App42Log.Console("rating is " + review.GetRating());
		App42Log.Console("itemId is " + review.GetItemId());  
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var itemId = "itemId";
var response ;  
reviewService.getAverageReviewByItem(itemId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews.review;
		console.log("rating is " + response.rating)
		console.log("itemId is " + response.itemId)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String itemId = "itemId";
Review review = reviewService.GetAverageReviewByItem(itemId); 
Console.WriteLine("rating is " + review.GetRating());
Console.WriteLine("itemId is " + review.GetItemId());  
String jsonResponse = review.ToString();    
$itemId = "itemId";
$review = $reviewService->getAverageReviewByItem($itemId); 
print_r("rating is " . $review->getRating());
print_r("itemId is " . $review->getItemId());
$jsonResponse = $review->toString();
Coming Soon
itemId = "itemId";						
review = review_service.get_average_review_by_item(itemId);    
puts "userId is #{review.user_id}";
puts "rating is #{review.rating}";  
json_response = review.to_s();
var itemId:String="itemId";
reviewService.getAverageReviewByItem(itemId,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get Reviews Count By Item And Rating

Fetches count of All Reviews based on the itemId and rating.

Required Parameters

itemId - The item id for which count of reviews has to be fetched. rating - Rating for which count of reviews has to be fetched.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String itemId = "itemId";
double rating = 4;
reviewService.getReviewsCountByItemAndRating(itemId, rating, new App42CallBack() {
public void onSuccess(Object response) 
{
	App42Response app42response = (App42Response)response;      
	System.out.println("Total Records : " + app42response.getTotalRecords());
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String itemId = "itemId";
double rating = 4;
reviewService.GetReviewsCountByItemAndRating(itemId,rating,new Callback());  
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}  
}  
Coming Soon                           
String itemId = "itemId";
double rating = 4;
App42Response response = reviewService.getReviewsCountByItemAndRating(itemId,rating); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
String itemId = "itemId";
double rating = 4;
App42Response app42response = reviewService.getReviewsCountByItemAndRating(itemId,rating); 
System.out.println("Total Records : " + app42response.getTotalRecords()) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String itemId = "itemId";
double rating = 4;
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetReviewsCountByItemAndRating(itemId,rating, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}
	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var itemId = "itemId";
var rating = 4;
var response ;  
reviewService.getReviewsCountByItemAndRating(itemId,rating,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response;
		console.log("totalRecords is " + response.totalRecords)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String itemId = "itemId";
double rating = 4;
App42Response response = reviewService.GetReviewsCountByItemAndRating(itemId,rating); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$itemId = "itemId";
$rating = 4;
$response = $review->getReviewsCountByItemAndRating($itemId, $rating);
print_r("Total Records is : ".$response->getTotalRecords());
$jsonResponse = $response->toString();
Coming Soon
Coming Soon
var itemId:String="itemId";
var rating:Number=4;
reviewService.getReviewsCountByItemAndRating(itemId,rating,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Add Comment

Add a review comment for the existing itemId of the user.

Required Parameters

userId - User who want to add the comment. itemId - Item for which the comment has to be added. comment - Comment for the review.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String userId = "userId";
String itemId = "itemId";
String comment = "comment";
reviewService.addComment(userId, itemId, comment, new App42CallBack() {
public void onSuccess(Object response) 
{
	Review review  = (Review)response;
	System.out.println("userId is " + review.getUserId());  
	System.out.println("itemId is " + review.getItemId());  
	System.out.println("comment is :" + review.getComment()); 
	System.out.println("CreatedOn is :"+review.getCreatedOn());  
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String userId = "userId";
String itemId = "itemId";
String comment = "comment";
reviewService.AddComment(userId,itemId,comment,new Callback());
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		Review review = (Review) response;   
		Console.WriteLine("userId is " + review.GetUserId());
		Console.WriteLine("itemId is " + review.GetItemId());  
		String jsonResponse = review.ToString();    
	}  
}  
NSString *userId = @"userId";
NSString *itemId = @"itemId";
NSString *comment = @"comment";
App42Response *response = [reviewService addComment:comment byUser:userId forItem:itemId]; 
NSLog(@"userId  is %@", review.userId);
NSLog(@"itemId  is %@", review.itemId);
NSString *jsonResponse = [review toString];
String userId = "userId";
String itemId = "itemId";
String comment = "comment";
Review review = reviewService.addComment(userId,itemId,comment); 
System.out.println("userId is " + review.getUserId());
System.out.println("itemId is " + review.getItemId());
String jsonResponse = review.toString();
String userId = "userId";
String itemId = "itemId";
String comment = "comment";
Review review = reviewService.addComment(userId,itemId,comment); 
System.out.println("userId is " + review.getUserId());  
System.out.println("itemId is " + review.getItemId());  
System.out.println("comment is :" + review.getComment()); 
System.out.println("CreatedOn is :"+review.getCreatedOn());  
String jsonResponse = review.toString();
String userId = "userId";
String itemId = "itemId";
String comment = "comment";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.AddComment(userId,itemId,comment, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		Review review = (Review) response;   
		App42Log.Console("userId is " + review.GetUserId());
		App42Log.Console("comment is " + review.GetComment()); 
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var userId = "userId",
itemId = "itemId",
comment = "comment",
response ;
reviewService.addComment(userId,itemId,comment,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews.review;
		console.log("userId is " + response.userId)
		console.log("itemId is " + response.itemId)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String userId = "userID";
String itemId = "itemId";
String comment = "comment";
Review review = reviewService.AddComment(userId,itemId,comment); 
Console.WriteLine("userId is " + review.GetUserId());
Console.WriteLine("itemId is " + review.GetItemId());  
String jsonResponse = review.ToString();    
$userId = "userID";
$itemId = "itemId";
$comment = "comment";
$review = $reviewService->addComment($userID, $itemId,$comment);
print_r("UserId is : ".$review->getUserId().PHP_EOL);
print_r("ItemId is : ".$review->getItemId().PHP_EOL);
print_r("Comment Id ".$review->getCommentId().PHP_EOL);
print_r("Comment is :".$review->getComment().PHP_EOL);
print_r("CreatedOn is : ".$review->getCreatedOn().PHP_EOL);
$jsonResponse = $review->toString();
Coming Soon
Coming Soon
var userId:String = "userId";
var itemId:String="itemId";
var comment:String = "comment";
reviewService.addComment(userId, itemId, comment,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get Comments By Item

Fetch the review comment for the item.

Required Parameters

itemId - The item for which the comment has to be fetched.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String itemId = "itemId";
reviewService.getCommentsByItem(itemId, new App42CallBack() {
public void onSuccess(Object response) 
{
	ArrayList<Review> review = (ArrayList<Review>)response;
	for(int i = 0;i < review.size();i++)
	{
		System.out.println("userId is " + review.get(i).getUserId());  
		System.out.println("itemId is " + review.get(i).getItemId());  
		System.out.println("comment is :" + review.get(i).getComment()); 
		System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
		System.out.println("Status is :"+review.get(i).getStatus());
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String itemId = "itemId";
reviewService.GetCommentsByItem(itemId,new Callback());
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		IList<Review> review = (List<Review>) response;   
		for(int i=0;i<review.Count;i++){
			Console.WriteLine("userId is " + review[i].GetUserId());
			Console.WriteLine("comment is " + review[i].GetComment()); 
		}
	}  
}  
NSString *itemId = @"itemId";
NSArray *reviewList = [reviewService getCommentsByItem:itemId]; 
for(Review *review in reviewList) 
{  
	NSLog(@"userId  is %@", review.userId);
	NSLog(@"itemId  is %@", review.itemId);
}  
String itemId = "itemId";
Vector reviewList = reviewService.getCommentsByItem(itemId); 
for(int i=0;i < reviewList.size();i++)  
{ 
	Review review = (Review)reviewList.elementAt(i);  
	System.out.println("userId is " + review.getUserId());
	System.out.println("comment is " + review.getComment());
}         
String itemId = "itemId";
ArrayList<Review> review = reviewService.getCommentsByItem(itemId); 
for(int i = 0;i < review.size();i++)
{
	System.out.println("userId is " + review.get(i).getUserId());  
	System.out.println("itemId is " + review.get(i).getItemId());  
	System.out.println("comment is :" + review.get(i).getComment()); 
	System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
	System.out.println("Status is :"+review.get(i).getStatus());
}
String itemId = "itemId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetCommentsByItem(itemId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		IList<Review> review = (IList<Review>)response;
		for(int i=0;i<review.Count;i++){
			App42Log.Console("userId is " + review[i].GetUserId());
			App42Log.Console("comment is " + review[i].GetComment()); 
		}
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var itemId = "itemId";
var response ;  
reviewService.getCommentsByItem(itemId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews;
		console.log("response is " + response)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String itemId = "itemId";
IList<Review> review = reviewService.GetCommentsByItem(itemId); 
for(int i=0;i<review.Count;i++)
{
	Console.WriteLine("userId is " + review[i].GetUserId());
	Console.WriteLine("comment is " + review[i].GetComment()); 
}
$itemId = "itemId";
$reviewResponse = $review->getCommentsByItem($itemId);
foreach ($reviewResponse as $review) 
{
	print_r("UserId is :" . $review->getUserId() );
	print_r("ItemId is : " . $review->getItemId() );
	print_r("Status is : " . $review->getStatus() );
	print_r("Comment is" . $review->getComment() );
	print_r("Comment Id is  " . $review->getCommentId() );
	print_r("CreatedOn  is " . $review->getCreatedOn() );
}
$jsonResponse = $reviewResponse->toString();
Coming Soon
Coming Soon
var itemId:String = "itemId";
reviewService.getCommentsByItem(itemId,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Mute

Mute the specified review.

Required Parameters

reviewId - The Id of the review which has to be muted.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String reviewId = "reviewId";
reviewService.mute(reviewId, new App42CallBack() {
public void onSuccess(Object response) 
{
	App42Response app42response = (App42Response)response;      
	System.out.println("Response  is:  " + app42response);
}
public void onException(Exception ex)
{
	System.out.println("Exception Message"+ex.getMessage());
}
}); 
String reviewId = "reviewId";
reviewService.Mute(reviewId,new Callback()); 
public class Callback : App42Callback  
{   
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}  
}  
NSString *reviewId = @"reviewId";
App42Response *response = [reviewService mute:reviewId]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                             
String reviewId = "reviewId";
App42Response response = reviewService.mute(reviewId); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
String reviewId = "reviewId";
App42Response app42response = reviewService.mute(reviewId); 
System.out.println("Response  is:  " + app42response);
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String reviewId = "reviewId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.Mute(reviewId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}
	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var reviewId = "reviewId";
var response ;  
reviewService.mute(reviewId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response;
		console.log("totalRecords is " + response.totalRecords)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String reviewId = "reviewId";
App42Response response = reviewService.Mute(reviewId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$reviewId = "reviewId";
$response = $reviewService->mute($reviewId); 
print_r("Review Id".$response->getReviewId().PHP_EOL);
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
reviewId = "reviewId";					
response = review_service.mute(reviewId);  
success = response.is_response_success();  
json_response = response.to_s();
var reviewId:String = "reviewId";
reviewService.mute(reviewId,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
}  
Coming Soon 

Unmute

Unmute the specified review.

Required Parameters

reviewId - The Id of the review which has to be unmuted.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String reviewId = "reviewId";
reviewService.unmute(reviewId, new App42CallBack() {
public void onSuccess(Object response) 
{
	App42Response app42response = (App42Response)response;      
	System.out.println("Response  is:  " + app42response);
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
 
String reviewId = "reviewId";
reviewService.Unmute(reviewId,new Callback());  
public class Callback : App42Callback  
{ 
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}  
}  
NSString *reviewId = @"reviewId";
App42Response *response = [reviewService unmute:reviewId]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                             
String reviewId = "reviewId";
App42Response response = reviewService.unmute(reviewId); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
String reviewId = "reviewId";
App42Response app42response = reviewService.unmute(reviewId); 
System.out.println("Response  is:  " + app42response) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String reviewId = "reviewId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.Unmute(reviewId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var reviewId = "reviewId";
var response ;  
reviewService.unmute(reviewId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response;
		console.log("totalRecords is " + response.totalRecords)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String reviewId = "reviewId";
App42Response response = reviewService.Unmute(reviewId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$reviewId = "reviewId";
$response = $reviewService->unmute($reviewId); 
print_r("Review Id".$response->getReviewId().PHP_EOL);	   
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
reviewId = "reviewId";						
response = review_service.unmute(reviewId);  
success = response.is_response_success();  
json_response = response.to_s(); 
var reviewId:String = "reviewId";
reviewService.unmute(reviewId,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Delete Review By Review Id

Delete the specific review based on review id.

Required Parameters

reviewId - The Id of the review which has to be deleted.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String reviewId = "reviewId";
reviewService.deleteReviewByReviewId(reviewId, new App42CallBack() {
public void onSuccess(Object response) 
{
	App42Response app42response = (App42Response)response;      
	System.out.println("Response  is:  " + app42response) ;
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String reviewId = "reviewId";
reviewService.DeleteReviewByReviewId(reviewId, new Callback());  
public class Callback : App42Callback  
{ 
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}  
}  
NSString *reviewId = @"reviewId";
App42Response *response = [reviewService deleteReviewByReviewId:reviewId]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                                
String reviewId = "reviewId";
App42Response app42response = reviewService.deleteReviewByReviewId(reviewId); 
System.out.println("Response  is:  " + app42response) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String reviewId = "reviewId";
App42Response app42response = reviewService.deleteReviewByReviewId(reviewId); 
System.out.println("Response  is:  " + app42response) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String reviewId = "reviewId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.DeleteReviewByReviewId(reviewId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Coming Soon 
Coming Soon
Coming Soon
String reviewId = "reviewId";
App42Response response = reviewService.DeleteReviewByReviewId(reviewId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$reviewId = "reviewId";
$response = $reviewService->deleteReviewByReviewId($reviewId);
print_r("Response is : ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
Coming Soon
var reviewId:String = "reviewId";
reviewService.deleteReviewByReviewId(reviewId,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Delete Comment By Comment Id

Delete the specific comment by comment id.

Required Parameters

commentId - The Id of the comment which has to be deleted.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String commentId = "commentId";
reviewService.deleteCommentByCommentId(commentId, new App42CallBack() {
public void onSuccess(Object response) 
{
	App42Response app42response = (App42Response)response;      
	System.out.println("Response  is:  " + app42response) ;
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
 
String commentId = "commentId";
rreviewService.DeleteCommentByCommentId(commentId, new Callback());  
public class Callback : App42Callback  
{ 
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception); 
	}  
	public void OnSuccess(Object response)  
	{  
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}  
}  
NSString *commentId = @"commentId";
App42Response *response = [reviewService deleteCommentByCommentId:commentId]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                                 
String commentId = "commentId";
App42Response app42response = reviewService.deleteCommentByCommentId(commentId); 
System.out.println("Response  is:  " + app42response) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String commentId = "commentId";
App42Response app42response = reviewService.deleteCommentByCommentId(commentId); 
System.out.println("Response  is:  " + app42response) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String commentId = "commentId";
App42Log.SetDebug(true);		//Print output in your editor console
rreviewService.DeleteCommentByCommentId(commentId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		App42Response success = (App42Response) response;     
		String jsonResponse = success.ToString();  
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception :" + e);
	}
}
Coming Soon 
Coming Soon
Coming Soon
String commentId = "commentId";
App42Response response = reviewService.DeleteCommentByCommentId(commentId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$commentId = "commentId";
$response = $reviewService->deleteCommentByCommentId($commentId);
print_r("Response is : ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
Coming Soon
var commentId:String = "commentId";
reviewService.deleteCommentByCommentId(commentId,new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		var review:Review = Review(response);
		trace("response is : " + review);
	}  
} 
Coming Soon 

Get All Reviews By User

Fetch all reviews created by user.

Required Parameters

userID - User who wants to retrieve all his reviews.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String userID = "userID";
reviewService.getAllReviewsByUser(userID, new App42CallBack() {
public void onSuccess(Object response) 
{
	ArrayList<Review> review = (ArrayList<Review>)response;
	for(int i = 0;i < review.size();i++)
	{
		System.out.println("userId is " + review.get(i).getUserId());  
		System.out.println("itemId is " + review.get(i).getItemId());  
		System.out.println("Review Id :"+review.get(i).getReviewId());
		System.out.println("comment is :" + review.get(i).getComment());  
		System.out.println("rating is :" + review.get(i).getRating()); 
		System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
Coming Soon 
NSString *userId = @"UserID";
NSArray *reviews = [reviewService getAllReviewsByUser:userId];
for (Review *review in reviews)
{
    NSLog(@"userId=%@",review.userId);
    NSLog(@"itemId=%@",review.itemId);
    NSLog(@"reviewId=%@",review.reviewId);
    NSLog(@"comment=%@",review.comment);
    NSLog(@"rating=%lf",review.rating);
    NSLog(@"createdOn=%@",review.createdOn);
}
Coming Soon       
String userID = "userID";
ArrayList<Review> review = reviewService.getAllReviewsByUser(userID);
for(int i = 0;i < review.size();i++)
{
	System.out.println("userId is " + review.get(i).getUserId());  
	System.out.println("itemId is " + review.get(i).getItemId());  
	System.out.println("Review Id :"+review.get(i).getReviewId());
	System.out.println("comment is :" + review.get(i).getComment());  
	System.out.println("rating is :" + review.get(i).getRating()); 
	System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
}
Coming Soon
Coming Soon
Coming Soon
Coming Soon
Coming Soon
$userID = "userID";
$reviewResponse = $reviewService->getAllReviewsByUser($userID); 
foreach ($reviewResponse as $review)
{
	print_r("UserId is " . $review->getUserId());
	print_r("ItemId is " . $review->getItemId());
	print_r("Review Id " . $review->getReviewId());
	print_r("Status is " . $review->getStatus());
	print_r("Comment is " . $review->getComment());
	print_r("Ranking " . $review->getRating());
	print_r("CreatedOn  is " . $review->getCreatedOn());
}
$jsonResponse = $reviewResponse[0]->toString();
Coming Soon
Coming Soon
var userID:String="userID";
reviewService.getAllReviewsByUser(userID, new callback());
public class callback implements App42CallBack  
{ 
	public function onException(excption:App42Exception):void  
	{  
		trace("Exception Message");  
	}  
	public function onSuccess(response:Object):void  
	{  
		for(var i:int = 0;i < response.length;i++)
		{
			var review:Review = Review(response[i]);
			trace("Response : "+review)
			trace("UserId is  " + review.getUserId());
			trace("ItemId is : " + review.getItemId());
			trace("ReviewId is " + review.getReviewId());
			trace("Rating  is : " + review.getRating());
			trace("Comment is " + review.getComment());
			trace("Status  is : " + review.getStatus());
			trace("createdOn  " +review.getCreatedOn());
		}
	}  
} 
Coming Soon 

Exception Handling

The functions available under Review and Rating Service API can throw some exceptions in abnormal conditions. Example of the same has been given below. E.g. If App developer is trying to get review item with item id and that item id does not exist, the function will throw the App42Exception (as shown below) with message as “Not Found” and the appErrorCode as “3100” and the details as “Reviews for the Item with Id ‘@itemid’ do not exist”.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String itemId = "itemId";
reviewService.getReviewsByItem(itemId, new App42CallBack() {
public void onSuccess(Object response) 
{
	ArrayList<Review> review = (ArrayList<Review>)response;
	for(int i = 0;i < review.size();i++)
	{
		System.out.println("userId is " + review.get(i).getUserId());  
		System.out.println("itemId is " + review.get(i).getItemId());  
		System.out.println("comment is :" + review.get(i).getComment());  
		System.out.println("rating is :" + review.get(i).getRating()); 
		System.out.println("Review Id :"+review.get(i).getReviewId());
		System.out.println("CreatedOn is :"+review.get(i).getCreatedOn());
	}
}
public void onException(Exception ex) 
{
	App42Exception exception = (App42Exception)ex;
	int appErrorCode = exception.getAppErrorCode();
	int httpErrorCode = exception.getHttpErrorCode();
	if(appErrorCode == 3100)
	{
	// Handle here for Not Found (Reviews for the Item with Id '@itemid' do not exist.)
	}
	else if(appErrorCode == 1401)
	{
	// handle here for Client is not authorized
	}
	else if(appErrorCode == 1500)
	{
	// handle here for Internal Server Error
	}
	String jsonText = ex.getMessage(); 
	}
});	       
	
NSString *itemId = @"itemId";
@try
{
Review *review = [reviewService getReviewsByItem:itemId]; 
} 
@catch(App42Exception *ex) {
int appErrorCode = ex.appErrorCode;
int httpErrorCode = ex.httpErrorCode;
if(appErrorCode == 3100)
	{
		// Handle here for Not Found (Reviews for the Item with Id '@itemid' do not exist.)
	}
	else if(appErrorCode == 1401)
	{
		// handle here for Client is not authorized
	}
	else if(appErrorCode == 1500)
	{
		// handle here for Internal Server Error
	}
NSString *jsonText = ex.reason; 
}                                              
String itemId = "itemId";
try
{
	Review review = reviewService.getReviewsByItem(itemId);
}
catch(App42Exception ex) 
{
	int appErrorCode = ex.getAppErrorCode();
	int httpErrorCode = ex.getHttpErrorCode();
	if(appErrorCode == 3100)
	{
		// Handle here for Not Found (Reviews for the Item with Id '@itemid' do not exist.)
	}
	else if(appErrorCode == 1401)
	{
		// handle here for Client is not authorized
	}
	else if(appErrorCode == 1500)
	{
		// handle here for Internal Server Error
	}
	String jsonText = ex.getMessage(); 
}
String itemId = "itemId";
try
{
	Review review = reviewService.getReviewsByItem(itemId);
}
catch(App42Exception ex) 
{
	int appErrorCode = ex.getAppErrorCode();
	int httpErrorCode = ex.getHttpErrorCode();
	if(appErrorCode == 3100)
	{
		// Handle here for Not Found (Reviews for the Item with Id '@itemId' do not exist.)
	}
	else if(appErrorCode == 1401)
	{
		// handle here for Client is not authorized
	}
	else if(appErrorCode == 1500)
	{
		// handle here for Internal Server Error
	}
	String jsonText = ex.getMessage(); 
}
String itemId = "itemId";
App42Log.SetDebug(true);		//Print output in your editor console
reviewService.GetReviewsByItem(itemId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		App42Log.Console("response is : " + response); 
	}
	public void OnException(Exception e)
	{	
		App42Exception exception = (App42Exception)e;
		int appErrorCode = exception.GetAppErrorCode();
		int httpErrorCode = exception.GetHttpErrorCode();
		if(appErrorCode == 3100)
		{
			// Handle here for Not Found (Reviews for the Item with Id '@itemid' do not exist.)
		}
		else if(appErrorCode == 1401)
		{
			// handle here for Client is not authorized
		}
		else if(appErrorCode == 1500)
		{
			// handle here for Internal Server Error
		}
		String jsonText = exception.GetMessage(); 
	}
}
var itemId = "itemId";
var appErrorCode ;
reviewService.getReviewsByItem(itemId,{
	success: function(object) {
	},
	error: function(error) 
	{
		var reviewObj = JSON.parse(error);
		appErrorCode = reviewObj.app42Fault.appErrorCode;
		if(appErrorCode == 3100)
		{
			// Handle here for Not Found (Reviews for the Item with Id '@itemId' do not exist.)
		}
		else if(appErrorCode == 1401)
		{
			// handle here for Client is not authorized
		}
		else if(appErrorCode == 1500)
		{
			// handle here for Internal Server Error
		}	
	}
});
Coming Soon
Coming Soon
String itemId = "itemId";
try
{
	Review review = reviewService.GetReviewsByItem(itemId);
}
catch(App42Exception ex) 
{
	int appErrorCode = ex.GetAppErrorCode();
	int httpErrorCode = ex.GetHttpErrorCode();
	if(appErrorCode == 3100)
	{
		// Handle here for Not Found (Reviews for the Item with Id '@itemid' do not exist.)
	}
	else if(appErrorCode == 1401)
	{
		// handle here for Client is not authorized
	}
	else if(appErrorCode == 1500)
	{
		// handle here for Internal Server Error
	}
	String jsonText = ex.GetMessage(); 
}  
$itemId = "itemId";
try
{
	$review = $reviewService->getReviewsByItem($itemId);
} 
catch(App42Exception $ex) 
{
	$appErrorCode = $ex->getAppErrorCode();
	$httpErrorCode = $ex->getHttpErrorCode();
	if($appErrorCode == 3100)
	{
		// Handle here for Not Found (Reviews for the Item with Id '@itemid' do not exist.)
	}
	else if($appErrorCode == 1401)
	{
		// handle here for Client is not authorized
	}
	else if($appErrorCode == 1500)
	{
		// handle here for Internal Server Error
	}
	$jsonText = $ex->getMessage(); 
}                          
Coming Soon
Coming Soon
Coming Soon 
Coming Soon

Error Codes

Functions in Session API might throw exceptions with following HTTP and Application Error Codes (along with their descriptions):

1400 - BAD REQUEST - The Request parameters are invalid 1401 - UNAUTHORIZED - Client is not authorized 1500 - INTERNAL SERVER ERROR - Internal Server Error. Please try again 3100 - NOT FOUND - Reviews for the Item with Id '@itemId' do not exist. 3101 - NOT FOUND - Review with the Id '@reviewId' does not exist. 3102 - BAD REQUEST - Reviews for the User with Id '@userId' and Item with Id '@itemId' already exists. 3103 - NOT FOUND - Reviews do not exist. 3104 - NOT FOUND - The number of reviews are less than the specified offset : + "offset". 3105 - NOT FOUND - The number of reviews for the Item with Id '@itemId' are less than the specified offset : + "offset". 3106 - BAD REQUEST - The request parameters are invalid. Comment with UserId '@userId' and ItemId '@itemId' already exists . 3107 - NOT FOUND - Comments for the Item with Id '@itemId' do not exist. 3108 - NOT FOUND - Comment with the Id '@commentId' does not exist 3109 - NOT FOUND - Comment with the Id '@commentId' does not exist