Review & Rating System

Manage reviews and ratings for any app items. The item can be anything having a unique ID such as an app on app store/marketplace, items in a catalogue, articles, blogs, etc. It also manages the review comments and their respective ratings. It provides various methods to find average, highest and lowest rated reviews. Reviews can also be muted or unmuted if they have any objectionable content.

Import Statement
  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for Swift
  • 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 "Shephertz_App42_iOS_API/Shephertz_App42_iOS_API.h"  
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
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;
Initialize

In order to use the various functions available in a specific API, the developer has to initialize with App42API by passing the apiKey and the secretKey which will become available 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 Swift
  • 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.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")        
App42API.initialize("API_KEY","SECRET_KEY");
App42API.Initialize("API_KEY","SECRET_KEY");
App42.initialize("API_KEY","SECRET_KEY");
App42API:initialize("API_KEY","SECRET_KEY");
App42API::Initialize("API_KEY", "SECRET_KEY");
App42API.Initialize("API_KEY","SECRET_KEY");
App42API::initialize("API_KEY","SECRET_KEY"); 
App42API::Initialize("API_KEY", "SECRET_KEY");
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY")   
App42API.initialize("API_KEY","SECRET_KEY");
Coming Soon
App42API.initialize("API_KEY","SECRET_KEY");
Build Service

After initialization, the developer will have to call the buildXXXService method on App42API to get the instance of the particular API that they 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 Swift
  • 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]; 
let reviewService = App42API.buildReviewService() as? ReviewService  
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
ReviewService reviewService = App42API.buildReviewService(); 
Create Review

Create 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 of the item.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for Swift
  • 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;					
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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;					
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 *userID = @"Nick";
NSString *itemID = @"itemID";
NSString *reviewComment = @"reviewComment";
double reviewRating = 3;					
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService createReview:userID itemID:itemID reviewComment:reviewComment reviewRating:reviewRating completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Review *review = (Review*)responseObj;
		NSLog(@"userId =%@", review.userId);
		NSLog(@"itemId =%@", review.itemId);
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let userID = "Nick"
let itemID = "itemID"
let reviewComment = "reviewComment"
let reviewRating = 3
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService 
reviewService?.createReview(userId, itemID:itemId, reviewComment:reviewComment, reviewRating:reviewRating, completionBlock: { (success, response, exception) -> Void in
	if(success)
        {
                let review = response as! Review
                NSLog("%@", review.userID)
                NSLog("%@", review.itemID)
				
        }
    else
        {
                NSLog("%@", exception.reason!)
                NSLog("%d", exception.appErrorCode)
                NSLog("%d", exception.httpErrorCode)
                NSLog("%@", exception.userInfo!)
        }
    })
String userID = "Nick";
String itemID = "itemID";
String reviewComment = "reviewComment";
double reviewRating = 3;					
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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					
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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;					
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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;	
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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;						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
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;
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String userID = "Nick";
String itemID = "itemID";
String reviewComment = "reviewComment";
double reviewRating = 3;					
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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(); 
Get All Reviews

Fetch all reviews in the App.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for Swift
  • 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");
ReviewService reviewService = App42API.buildReviewService(); 
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());
}
});
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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()); 
		}
	}  
}  
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getAllReviews:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		NSArray *reviewList = (NSArray*)responseObj;
		for(Review *review in reviewList){ 
			NSLog(@"userId =%@", review.userId);
			NSLog(@"itemId =%@", review.itemId);
		}
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
	App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
	let reviewService = App42API.buildReviewService() as? ReviewService 
	reviewService?.getAllReviews( { (success, response, exception) -> Void in
        if(success)
            {
               let list = response as! NSArray
                for review in list 
				{
                    NSLog("%@", review.userId)
                    NSLog("%@", review.itemId)
                }
            }
        else
            {
                NSLog("%@", exception.reason!)
                NSLog("%d", exception.appErrorCode)
                NSLog("%d", exception.httpErrorCode)
                NSLog("%@", exception.userInfo!)
            }
        })
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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()); 
}
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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();
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
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();
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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());
}         
Get All Reviews Count

Fetch 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 Swift
  • 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");
ReviewService reviewService = App42API.buildReviewService(); 
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());
}
}); 
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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();  
	}  
}  
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getAllReviewsCount:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		App42Response *response = (App42Response*)responseObj; 
		NSString *success = response.isResponseSuccess;
		NSString *jsonResponse = [response toString]; 
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];            
	App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
	let reviewService = App42API.buildReviewService() as? ReviewService 
	reviewService?.getAllReviewsCount( { (success, response, exception) -> Void in
    if(success)
        {
            let review = response as! App42Response
            NSLog("%@", review.strResponse)
            NSLog("%d", review.totalRecords)
        }
	else
	{
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
	}
  })

App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
App42Response response = reviewService.GetAllReviewsCount(); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$response = $reviewService->getAllReviewsCount(); 
print_r("Total Records :".$response->getTotalRecords());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
response = review_service.get_all_reviews_count();   
success = response.is_response_success();
total_records = response.total_records();
json_response = response.to_s();
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
App42Response response = reviewService.getAllReviewsCount(); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
Get All Reviews Paging

Fetch 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 Swift
  • 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 ;
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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 ;
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getAllReviews:max offset:offset completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		NSArray *reviewList = (NSArray*)responseObj;
		for(Review *review in reviewList){ 
			NSLog(@"userId =%@", review.userId);
			NSLog(@"itemId =%@", review.itemId);
		}
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let max:Int32 = 1
let offset:Int32 = 0 
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService 
reviewService?.getAllReviews(max, offset:offset, completionBlock: { (success, response, exception) -> Void in
    if(success)
        {
               let list = response as! NSArray
                for review in list 
                {
                    NSLog("%@", review.userId)
                    NSLog("%@", review.itemId)
                }
        }
    else
        {
                NSLog("%@", exception.reason!)
                NSLog("%d", exception.appErrorCode)
                NSLog("%d", exception.httpErrorCode)
                NSLog("%@", exception.userInfo!)
        }
        })
int max = 1;
int offset = 0 ;
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
reviewService.getAllReviewsByPaging(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 ;
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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();
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
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;
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
Integer max = new Integer(1);
Integer offset = new Integer(0);  
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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());
}         
Get Reviews By Item

Fetch 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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getReviewsByItem:itemId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		NSArray *reviewList = (NSArray*)responseObj;
		for(Review *review in reviewList){ 
			NSLog(@"userId =%@", review.userId);
			NSLog(@"itemId =%@", review.itemId);
		}
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let  itemID = "itemId";   
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService   
reviewService?.getAverageReviewByItem(itemID, completionBlock: { (success, response, exception) -> Void in  
    if (success)  
        {
            let list = response as! NSArray
            for review in list 
            {
            NSLog("%@", review.userId)
            NSLog("%@", review.itemId)
            }
       }
    else
        {
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
        }
    })
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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();
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
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";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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());
}         
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getReviewsCountByItem:itemId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		App42Response *response = (App42Response*)responseObj; 
		NSString *success = response.isResponseSuccess;
		NSString *jsonResponse = [response toString]; 
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];   
let  itemID = "itemId"   
	App42API.initializeWithAPIKey("API_KEY" andSecretKey:"SECRET_KEY")
	let reviewService = App42API.buildReviewService() as? ReviewService    
	reviewService?.getReviewsCountByItem(itemId, completionBlock: { (success, response, exception) -> Void in  
		if (success)  
			{  
				let  review = response as! App42Response
				NSLog("%@", review.strResponse)
				NSLog("%d", review.totalRecords)  
			}         
        else
            {
                NSLog("%@", exception.reason!)
                NSLog("%d", exception.appErrorCode)
                NSLog("%d", exception.httpErrorCode)
                NSLog("%@", exception.userInfo!)
            }
    })
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
App42Response response = reviewService.GetReviewsCountByItem(itemId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$itemId = "itemId";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$response = $reviewService->getReviewsCountByItem($itemId); 
print_r("Total Records is : ".$response->getTotalRecords());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
itemId = "itemId";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
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";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
App42Response response = reviewService.getReviewsCountByItem(itemId); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
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 Swift
  • 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;
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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;
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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;
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getReviewsByItem:itemId max:max offset:offset completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		NSArray *reviewList = (NSArray*)responseObj;
		for(Review *review in reviewList){ 
			NSLog(@"userId =%@", review.userId);
			NSLog(@"itemId =%@", review.itemId);
		}
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let  itemID = "itemId"
let max:Int32 = 1
let offset:Int32 = 0 
App42API.initializeWithAPIKey("API_KEY" andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService    
reviewService?.getReviewsByItem(itemID, max:max, offset:offset, completionBlock: { (success, response, exception) -> Void in  
    if(success)
        {
           let list = response as! NSArray
            for review in list {
            NSLog("%@", review.userId)
            NSLog("%@", review.itemId)
            }
        }
    else
        {
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
        }
    })
String itemId = "itemId";
int max = 1;
int offset= 0;
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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;
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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;
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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();
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
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;
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String itemId = "itemId";
Integer max = new Integer(1);
Integer offset = new Integer(0);  
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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());
}         
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getHighestReviewByItem:itemId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Review *review = (Review*)responseObj;
		NSLog(@"userId =%@", review.userId);
		NSLog(@"itemId =%@", review.itemId);
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let  itemID = "itemId"  
	App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
	let reviewService = App42API.buildReviewService() as? ReviewService  
	reviewService?.getHighestReviewByItem(itemId, completionBlock: { (success, response, exception) -> Void in   
    if (success)  
    {  
        let review = response as! Review
        NSLog("%@", review.userId)
        NSLog("%@", review.itemId)
    }  
	else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
  })
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
Review review = reviewService.GetHighestReviewByItem(itemId); 
Console.WriteLine("rating is " + review.GetRating());
Console.WriteLine("itemId is " + review.GetItemId());  
String jsonResponse = review.ToString();    
$itemId = "itemId";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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";
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
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";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
Review review = reviewService.getHighestReviewByItem(itemId); 
System.out.println("rating is " + review.getRating());
System.out.println("itemId is " + review.getItemId());
String jsonResponse = review.toString();
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getLowestReviewByItem:itemId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Review *review = (Review*)responseObj;
		NSLog(@"userId =%@", review.userId);
		NSLog(@"itemId =%@", review.itemId);
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let  itemID = "itemId"  
	App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
	let reviewService = App42API.buildReviewService() as? ReviewService  
	reviewService?.getLowestReviewByItem(itemID, completionBlock: { (success, response, exception) -> Void in  
    if (success)  
    {  
        let review = response as! Review
        NSLog("%@", review.userId)
        NSLog("%@", review.itemId)
    }  
	else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
		NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
  })
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
Review review = reviewService.GetLowestReviewByItem(itemId); 
Console.WriteLine("rating is " + review.GetRating());
Console.WriteLine("itemId is " + review.GetItemId());  
String jsonResponse = review.ToString();    
$itemId = "itemId";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$review = $reviewService->getLowestReviewByItem($itemId); 
print_r("ItemId is " . $review->getItemId() );
print_r("rating is " . $review->getRating() );
$jsonResponse = $review->toString();
Coming Soon
itemId = "itemId";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
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";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
Review review = reviewService.getLowestReviewByItem(itemId); 
System.out.println("rating is " + review.getRating());
System.out.println("itemId is " + review.getItemId());
String jsonResponse = review.toString();
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getAverageReviewByItem:itemId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Review *review = (Review*)responseObj;
		NSLog(@"userId =%@", review.userId);
		NSLog(@"itemId =%@", review.itemId);
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let  itemID = "itemId"  
	App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
	let reviewService = App42API.buildReviewService() as? ReviewService  
	reviewService?.getAverageReviewByItem(itemID, completionBlock: { (success, response, exception) -> Void in  
    if (success)  
    {  
        let review = response as! Review
        NSLog("%@", review.userId)
        NSLog("%@", review.itemId)
    }  
	else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
		NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
  })
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
Review review = reviewService.GetAverageReviewByItem(itemId); 
Console.WriteLine("rating is " + review.GetRating());
Console.WriteLine("itemId is " + review.GetItemId());  
String jsonResponse = review.ToString();    
$itemId = "itemId";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$review = $reviewService->getAverageReviewByItem($itemId); 
print_r("rating is " . $review->getRating());
print_r("itemId is " . $review->getItemId());
$jsonResponse = $review->toString();
Coming Soon
itemId = "itemId";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
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";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
Review review = reviewService.getAverageReviewByItem(itemId); 
System.out.println("rating is " + review.getRating());
System.out.println("itemId is " + review.getItemId());
String jsonResponse = review.toString();
Get Reviews Count By Item And Rating

Fetch 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 Swift
  • 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;
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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;
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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                           
let  itemID = "itemId";  
let rating = 4.00;   
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService    
reviewService?.getReviewsCountByItem(itemID, andRating:rating, completionBlock: { (success, response, exception) -> Void in
   if (success)  
        {  
            let  review = response as! App42Response
            NSLog("%@", review.strResponse)
            NSLog("%d", review.totalRecords)  
        }         
    else
        {
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
        }
    })
String itemId = "itemId";
double rating = 4;
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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;
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
App42Response response = reviewService.GetReviewsCountByItemAndRating(itemId,rating); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$itemId = "itemId";
$rating = 4;
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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;
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String itemId = "itemId";
double rating = 4;
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
App42Response response = reviewService.getReviewsCountByItemAndRating(itemId,rating); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService addComment:comment byUser:userId forItem:itemId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Review *review = (Review*)responseObj;
		NSLog(@"userId =%@", review.userId);
		NSLog(@"itemId =%@", review.itemId);
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let userID = "userId",  
let  itemID = "itemId",  
let comment = "comment",   
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService   
reviewService?.addComment(comment, byUser:userID, forItem:itemID, completionBlock: { (success, response, exception) -> Void in
if (success)  
    {  
        let review = response as! Review
        NSLog("%@", review.userId)
        NSLog("%@", review.itemId)
    }          
else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
    })
String userId = "userId";
String itemId = "itemId";
String comment = "comment";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String userId = "userId";
String itemId = "itemId";
String comment = "comment";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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();
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getCommentsByItem:itemId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		NSArray *reviewList = (NSArray*)responseObj;
		for(Review *review in reviewList){ 
			NSLog(@"userId =%@", review.userId);
			NSLog(@"itemId =%@", review.itemId);
		}
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let  itemID = "itemId" 
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService  
reviewService?.getCommentsByItem(itemID, completionBlock: { (success, response, exception) -> Void in  
    if(success)
        {
           let list = response as! NSArray
            for review in list 
            {
                NSLog("%@", review.userId)
                NSLog("%@", review.itemId)
            }
        }
    else
        {
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
        }
    })
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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());
}         
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService mute:reviewId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		App42Response *response = (App42Response*)responseObj; 
		NSString *success = response.isResponseSuccess;
		NSString *jsonResponse = [response toString]; 
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];                   
let reviewId = "reviewId"  
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService  
reviewService?.mute(reviewID, completionBlock: { (success, response, exception) -> Void in  
    if (success)  
        {  
            let  review = response as! App42Response
            NSLog("%@", review.strResponse)
            NSLog("%d", review.totalRecords)  
        }         
    else
        {
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
        }
    })
String reviewId = "reviewId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
reviewService.mute(reviewId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews.review;
		console.log("Review Id is " + response.reviewId)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String reviewId = "reviewId";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
App42Response response = reviewService.Mute(reviewId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$reviewId = "reviewId";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$response = $reviewService->mute($reviewId); 
print_r("Review Id".$response->getReviewId().PHP_EOL);
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
reviewId = "reviewId";					
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
response = review_service.mute(reviewId);  
success = response.is_response_success();  
json_response = response.to_s();
var reviewId:String = "reviewId";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String reviewId = "reviewId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
App42Response response = reviewService.mute(reviewId); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService unmute:reviewId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		App42Response *response = (App42Response*)responseObj; 
		NSString *success = response.isResponseSuccess;
		NSString *jsonResponse = [response toString]; 
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];                 
let reviewID = "reviewId" 
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService  
reviewService?.unmute(reviewID, completionBlock: { (success, response, exception) -> Void in  
    if (success)  
        {  
            let  review = response as! App42Response
            NSLog("%@", review.strResponse)
            NSLog("%d", review.totalRecords)  
        }         
    else
        {
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
        }
    })
String reviewId = "reviewId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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 ;  
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
reviewService.unmute(reviewId,{  
	success: function(object) 
	{  
		var review = JSON.parse(object);  
		response = review.app42.response.reviews.review;
		console.log("Review Id is " + response.reviewId)
	},  
	error: function(error) {  
	}  
}); 
Coming Soon
Coming Soon
String reviewId = "reviewId";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
App42Response response = reviewService.Unmute(reviewId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$reviewId = "reviewId";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$response = $reviewService->unmute($reviewId); 
print_r("Review Id".$response->getReviewId().PHP_EOL);	   
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
reviewId = "reviewId";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
reviewService = api.buildReviewService();
response = review_service.unmute(reviewId);  
success = response.is_response_success();  
json_response = response.to_s(); 
var reviewId:String = "reviewId";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String reviewId = "reviewId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
App42Response response = reviewService.unmute(reviewId); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService deleteReviewByReviewId:reviewId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		App42Response *response = (App42Response*)responseObj; 
		NSString *success = response.isResponseSuccess;
		NSString *jsonResponse = [response toString]; 
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}]; 
let reviewId = "reviewId";  
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService  
reviewService?.deleteReviewByReviewId(reviewId, completionBlock: { (success, response, exception) -> Void in  
    if (success)  
        {  
            let  review = response as! App42Response
            NSLog("%@", review.strResponse)
            NSLog("%d", review.totalRecords)  
        }         
    else
        {
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
        }
    })
String reviewId = "reviewId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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);
	}
}
var reviewId = "reviewId";
var response;
App42.initialize("API_KEY", "SECRET_KEY");
var reviewService = new App42Review();
reviewService.deleteReviewByReviewId(reviewId, {
	success: function (object) {
		var review = JSON.parse(object);
		response = review.app42.response.success;
		console.log("App42Response Success : " + response)
	},
	error: function (error) {
	}
});
Coming Soon
Coming Soon
String reviewId = "reviewId";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
App42Response response = reviewService.DeleteReviewByReviewId(reviewId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$reviewId = "reviewId";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$response = $reviewService->deleteReviewByReviewId($reviewId);
print_r("Response is : ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
Coming Soon
var reviewId:String = "reviewId";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String reviewId = "reviewId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
App42Response app42response = reviewService.deleteReviewByReviewId(reviewId); 
System.out.println("Response  is:  " + app42response) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService deleteCommentByCommentId:commentId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		App42Response *response = (App42Response*)responseObj; 
		NSString *success = response.isResponseSuccess;
		NSString *jsonResponse = [response toString]; 
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}]; 
let commentId = "commentId"  
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService  
reviewService?.deleteCommentByCommentId(commentId, completionBlock: { (success, response, exception) -> Void in  
       if (success)  
        {  
            let  review = response as! App42Response
            NSLog("%@", review.strResponse)
            NSLog("%d", review.totalRecords)  
        }         
        else
        {
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
        }
    })
String commentId = "commentId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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);
	}
}
var commentId = "commentId";
var response;
App42.initialize("API_KEY", "SECRET_KEY");
var reviewService = new App42Review();
reviewService.deleteCommentByCommentId(commentId, {
	success: function (object) {
		var review = JSON.parse(object);
		response = review.app42.response.success;
		console.log("App42Response Success : " + response)
	},
	error: function (error) {
	}
});
Coming Soon
Coming Soon
String commentId = "commentId";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
App42Response response = reviewService.DeleteCommentByCommentId(commentId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$commentId = "commentId";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$response = $reviewService->deleteCommentByCommentId($commentId);
print_r("Response is : ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
Coming Soon
var commentId:String = "commentId";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
String commentId = "commentId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
App42Response app42response = reviewService.deleteCommentByCommentId(commentId); 
System.out.println("Response  is:  " + app42response) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getAllReviewsByUser:userId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		NSArray *reviewList = (NSArray*)responseObj;
		for(Review *review in reviewList){ 
			NSLog(@"userId =%@", review.userId);
			NSLog(@"itemId =%@", review.itemId);
		}
	}
	else
	{
		NSLog(@"Exception = %@",[exception reason]);
		NSLog(@"HTTP error Code = %d",[exception httpErrorCode]);
		NSLog(@"App Error Code = %d",[exception appErrorCode]);
		NSLog(@"User Info = %@",[exception userInfo]);
	}
}];
let userID = "userID"  
App42API.initializeWithAPIKey("API_KEY" andSecretKey:"SECRET_KEY")
let reviewService = App42API.buildReviewService() as? ReviewService  
reviewService?.getAllReviewsByUser(userID, completionBlock: { (success, response, exception) -> Void in  
       if (success)  
        {  
            let list = response as! NSArray
            for review in list 
            {
                NSLog("%@", review.userId)
                NSLog("%@", review.itemId) 
            }
        }         
        else
        {
            NSLog("%@", exception.reason!)
            NSLog("%d", exception.appErrorCode)
            NSLog("%d", exception.httpErrorCode)
            NSLog("%@", exception.userInfo!)
        }
    })
String userID = "userID";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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());
}
String userId = "userId";
App42Log.SetDebug(true);		//Print output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
reviewService.GetAllReviewsByUser(userId, 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("ReviewId is " + review[i].GetReviewId());
		}
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
var userID = "userID";
var response;
App42.initialize("API_KEY", "SECRET_KEY");
var reviewService = new App42Review();
reviewService.getAllReviewsByUser(userID, {
	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
Coming Soon
$userID = "userID";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
$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";
App42API.initialize("API_KEY","SECRET_KEY");
var reviewService:ReviewService = App42API.buildReviewService();
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 
Coming Soon       
Exception Handling

The functions available under Review and Rating Service API can throw some exceptions in abnormal conditions. For example, a 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 Swift
  • 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";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"];
ReviewService *reviewService = [App42API buildReviewService]; 
[reviewService getReviewsByItem:itemId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Review *review = (Review*)responseObj;
		NSLog(@"userId =%@", review.userId);
		NSLog(@"itemId =%@", review.itemId);
	}
	else
	{
		int appErrorCode = exception.appErrorCode;
		int httpErrorCode = exception.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 = exception.reason; 
	} 
}];		
Coming Soon
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService();
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
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
reviewService.GetReviewsByItem(itemId, new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		App42Log.Console("response is : " + response.ToString()); 
	}
	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 ;
App42.initialize("API_KEY","SECRET_KEY");
var reviewService  = new App42Review();
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";
App42API.Initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.BuildReviewService(); 
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";
App42API::initialize("API_KEY","SECRET_KEY");
$reviewService = App42API::buildReviewService();
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
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
ReviewService reviewService = App42API.buildReviewService(); 
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(); 
}
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.