Catalogue Management Service

Complete Catalogue Management service on the cloud. This service provides several utility methods to manage catalogues, categories and items. The user can add items with its related information in a particular category and there can be several categories in a catalogue. The developer can also create multiple catalogues if required for example: Catalogue for gadgets, apparels, etc. The cart service can be used along with catalogue service to create an end to end shopping feature for your app.

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.shopping.Catalogue;
import com.shephertz.app42.paas.sdk.android.shopping.CatalogueService;
import com.shephertz.app42.paas.sdk.android.shopping.ItemData;
using com.shephertz.app42.paas.sdk.windows;  
using com.shephertz.app42.paas.sdk.windows.shopping;   
#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.shopping.Catalogue;
import com.shephertz.app42.paas.sdk.java.shopping.CatalogueService;
import com.shephertz.app42.paas.sdk.java.shopping.ItemData
using com.shephertz.app42.paas.sdk.csharp;  
using com.shephertz.app42.paas.sdk.csharp.shopping;  
Not Available
Coming Soon
Coming Soon
using com.shephertz.app42.paas.sdk.csharp;  
using com.shephertz.app42.paas.sdk.csharp.shopping;  
 
include_once '../CatalogueService.php';  
include_once '../App42Log.php';   
include_once '../App42Response.php';  
include_once '../App42Exception.php';   
include_once '../App42BadParameterException.php';  
include_once '../App42NotFoundException.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.shopping.Catalogue;
import com.shephertz.app42.paas.sdk.as3.shopping.CatalogueService;
import com.shephertz.app42.paas.sdk.as3.shopping.Category;
import com.shephertz.app42.paas.sdk.as3.shopping.CategoryItem;
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.shopping.Catalogue;
import com.shephertz.app42.paas.sdk.jme.shopping.CatalogueService;
import com.shephertz.app42.paas.sdk.jme.shopping.ItemData
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");
Not Available
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 CatalogueService, buildCatalogueService() 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
CatalogueService catalogueService = App42API.buildCatalogueService(); 
CatalogueService catalogueService = App42API.BuildCatalogueService();  
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
CatalogueService catalogueService = App42API.buildCatalogueService(); 
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
Not Available
Coming Soon
Coming Soon
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
$catalogueService = App42API::buildCatalogueService();
Coming Soon
catalogue_service = api.build_catalogue_service()   
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
Coming Soon
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Create Catalogue

Create a catalogue for a particular app. Categories can be added to the catalogue.

Required Parameters

catalogueName - Name of the catalogue to be created. description - Description of the catalogue to be 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
String catalogueName = "catalogueName";
String description = "Catalogue description";    					
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.createCatalogue(catalogueName, description, new App42CallBack() {
public void onSuccess(Object response) 
{
	Catalogue catalogue = (Catalogue)response;
	System.out.println("catalogue name is"+catalogue.getName());
	System.out.println("catalogue Description is"+catalogue.getDescription());	
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());
}
});
String catalogueName = "catalogueName";
String description = "Catalogue description";						
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.CreateCatalogue(catalogueName,description,new Callback());  
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
	public void OnSuccess(Object response)  
	{  
		Catalogue catalogue = (Catalogue) response;     
		Console.WriteLine("catalogueName is " + catalogue.GetName()); 
		Console.WriteLine("description is " + catalogue.GetDescription()); 
		String jsonResponse = catalogue.ToString();
	}  
}
NSString *catalogueName = @"catalogueName";
NSString *description = @"Catalogue description";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService createCatalogue:catalogueName catalogueDescription:description completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Catalogue *catalogue = (Catalogue*)responseObj;
		NSLog(@"catalogueName is = %@", catalogue.name);
		NSLog(@"catalogueDescription is = %@",catalogue.description);
	}
	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 catalogueName = "catalogueName"
let description = "Catalogue description"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.createCatalogue(catalogueName, catalogueDescription: description, completionBlock:{ (success, response, exception) -> Void in
    if(success)
    {
        let catalogue = response as! Catalogue
        NSLog("Response=%@",catalogue.strResponse);
        NSLog("CatalogueName=%@",catalogue.name);
        NSLog("Description=%@",catalogue.description);
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
String description = "Catalogue description";						
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.createCatalogue(catalogueName,description); 
System.out.println("catalogueName is " + catalogue.getName());
System.out.println("description is " + catalogue.getDescription());
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
String description = "Catalogue description";
App42Log.SetDebug(true);    	//Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.CreateCatalogue(catalogueName,description,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		Catalogue catalogue = (Catalogue) response;   
		App42Log.Console("catalogueName is :" + catalogue.GetName());
		App42Log.Console("description is :" + catalogue.GetDescription());
	}
	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String description = "Catalogue description";						
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
Catalogue catalogue = catalogueService.CreateCatalogue(catalogueName,description);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
Console.WriteLine("description is " + catalogue.GetDescription()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";
$description = "Catalogue description";						
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$catalogue = $catalogueService->createCatalogue($catalogueName,$description);
print_r("catalogueName is " . $catalogue->getName());
print_r("description is " . $catalogue->getDescription());
$jsonResponse = $catalogue->toString(); 
Coming Soon
catalogueName = "catalogueName";
description = "Catalogue description";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
catalogue = catalogue_service.create_catalogue(catalogueName, description); 
puts "name is #{catalogue.name}";
puts "description is #{catalogue.description}";
json_response = catalogue.to_s();
var catalogueName:String = "catalogueName";  
var description:String = "Catalogue description";    
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.createCatalogue(catalogueName,description,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception is : " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		var catalogue:Catalogue = Catalogue(response);
		trace("catalogue name is"+catalogue.getName());
		trace("catalogue Description is"+catalogue.getDescription());	
	}
}
Coming Soon 
String catalogueName = "catalogueName";
String description = "Catalogue description";						
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.createCatalogue(catalogueName,description); 
System.out.println("catalogueName is " + catalogue.getName());
System.out.println("description is " + catalogue.getDescription());
String jsonResponse = catalogue.toString(); 
Create Category

Creates a category for a particular catalogue such as books, movies, etc.

Required Parameters
catalogueName - Name of the catalogue in which category has to be created. categoryName - Name of the category that has to be created. description - Description of the category to be 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
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String description = "description";						
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.createCategory(catalogueName, categoryName, description, new App42CallBack() {
public void onSuccess(Object response) 
{
	Catalogue catalogue = (Catalogue)response;
	System.out.println("catalogue name is"+catalogue.getName());
	for(int i = 0;i < catalogue.getCategoryList().size();i++)
	{
		System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
		System.out.println("category description is : " + catalogue.getCategoryList().get(i).getDescription());
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());	
}
}); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String description = "description";						
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.CreateCategory(catalogueName,categoryName,description,this);  
public class Callback : App42Callback  
{  
	public void OnSuccess(Object response)  
	{  
		Catalogue catalogue = (Catalogue) response;     
		Console.WriteLine("catalogueName is " + catalogue.GetName()); 
		String jsonResponse = catalogue.ToString();
	}  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
}
NSString *catalogueName = @"catalogueName";
NSString *categoryName = @"categoryName";
NSString *description = @"description";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService createCategory:catalogueName categoryName:categoryName categoryDescription:description completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Catalogue *catalogue = (Catalogue*)responseObj;
		NSLog(@"catalogueName is = %@" ,catalogue.name);
		NSLog(@"catalogueDescription is = %@",catalogue.description);
	}
	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 catalogueName = "catalogueName"
let description = "Catalogue description"
let categoryName = "categoryName"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.createCategory(catalogueName, categoryName: categoryName, categoryDescription: description, completionBlock:{ (success, response, exception) -> Void in
    
    if(success)
    {
        let catalogue = response as! Catalogue
        NSLog("Response=%@",catalogue.strResponse);
        NSLog("CatalogueName=%@",catalogue.name);
        
        let categoryList = catalogue.categoryListArray
        for category in categoryList 
		{
            NSLog("CategoryName = %@",category.name)
            NSLog("CategoryDescription = %@",category.description)
        }
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String description = "description";						
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.createCategory(catalogueName,categoryName,description); 
System.out.println("catalogue name is"+catalogue.getName());
for(int i = 0;i < catalogue.getCategoryList().size();i++)
{
	System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
	System.out.println("category description is : " + catalogue.getCategoryList().get(i).getDescription());
}
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String description = "description";
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.CreateCategory(catalogueName,categoryName,description,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
	public void OnSuccess(object response)
	{
		Catalogue catalogue = (Catalogue) response;   
		App42Log.Console("catalogueName is :" + catalogue.GetName());
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String description = "description";						
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
Catalogue catalogue = catalogueService.CreateCategory(catalogueName,categoryName,description);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";
$categoryName = "categoryName";
$description = "description";						
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$catalogue = $catalogueService->createCategory($catalogueName,$categoryName,$description);
print_r("catalogueName is " . $catalogue->getName().PHP_EOL);
$category = $catalogue->getCategoryList();
foreach($category as $categoryList)
{
	print_r("Category Name is:". $categoryList->getName().PHP_EOL);
	print_r("Category Description  is:". $categoryList->getDescription());
}
$jsonResponse = $catalogue->toString(); 
Coming Soon
catalogueName = "catalogueName";
category_name = "categoryName";
description = "CategoryDescription";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
catalogue = catalogue_service.create_category(catalogueName, categoryName, description);
puts "catalogueName is #{catalogue.name}";
category_list = Array.new();
category_list = catalogue.category_list();
puts "name is #{category.name}";
puts "description is #{category.description}";
json_response = catalogue.to_s();
var catalogueName:String = "catalogueName";  
var categoryName:String = "categoryName";
var description:String = "Catalogue description"; 
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.createCategory(catalogueName,categoryName,description,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		var catalogue:Catalogue = Catalogue(response);
		trace("catalogue name is : " + catalogue.getName());
		if(catalogue.getCategoryList() != null)
		{ 
			var categoryList:Array  = catalogue.getCategoryList();
			for(var i:int=0;i<categoryList.length;i++)
			{
				var category:Category = Category(categoryList[i]);
				trace("category name is : " + category.getName());
				trace("category description is : " + category.getDescription())
			}
		}
	}
}
Coming Soon 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String description = "description";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.createCategory(catalogueName,categoryName,description); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString(); 
Add Item

Creates an item in a category for a particular catalogue.

Required Parameters
catalogueName - Name of the catalogue in which item has to be added. categoryName - Name of the category in which item has to be added. itemData - Item information.

  • 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 catalogueName = "catalogueName";
String categoryName = "categoryName";
ItemData itemData = new ItemData();	
itemData.setDescription("Image Description");
itemData.setImage("Your File Path");
itemData.setItemId("abc1234007");
itemData.setName("Item");
itemData.setPrice(20.0);				
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.addItem(catalogueName, categoryName, itemData, new App42CallBack() {
public void onSuccess(Object response) 
{
	Catalogue catalogue = (Catalogue)response;
	System.out.println("catalogue name is"+catalogue.getName());
	for(int i = 0;i < catalogue.getCategoryList().size();i++)
	{
		System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
		ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
		for(int j=0;j<itemList.size();j++)
		{
			System.out.println("Item list Name:"+itemList.get(j).getName());
			System.out.println("Item List Id:"+itemList.get(j).getItemId());
			System.out.println("Item List  Description:"+itemList.get(j).getDescription());
			System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
			System.out.println("ItemList url:"+itemList.get(j).getUrl());
			System.out.println("Price:"+itemList.get(j).getPrice());
		}
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());	
}
});
String catalogueName = "catalogueName";
String categoryName = "categoryName";
ItemData itemData = new ItemData();	
itemData.SetDescription("Image Description");
itemData.SetImageInputStream("Your File Path");
itemData.SetItemId("abc1234007");
itemData.SetName("Item");
itemData.SetPrice(20.0);				
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.AddItem(catalogueName,categoryName,itemData,new Callback());  
public class Callback : App42Callback  
{  
	public void OnSuccess(Object response)  
	{  
		Catalogue catalogue = (Catalogue) response;     
		Console.WriteLine("catalogueName is " + catalogue.GetName()); 
		String jsonResponse = catalogue.ToString();
	}  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
}
NSString *catalogueName = @"catalogueName";
NSString *categoryName = @"categoryName";
ItemData *itemData = [[ItemData alloc]init];
itemData.description = @"Pic";
itemData.image = [[NSBundle mainBundle]pathForResource:@"Flowers" ofType:@"jpg"];
itemData.itemId = @"abc1234007";
itemData.name = @"Item";
itemData.price = 20.0;				
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService addItem:catalogueName categoryName:categoryName itemData:itemData completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Catalogue *catalogue = (Catalogue*)responseObj;
		NSLog(@"Response=%@",catalogue.strResponse);
		NSLog(@"CatalogueName=%@",catalogue.name);
		for (CategoryData *category in catalogue.categoryListArray)
		{
			NSLog(@"CategoryName=%@",category.name);
			for (categoryItem *item in category.itemListArray)
			{
				NSLog(@"ItemName=%@",item.name);
				NSLog(@"ItemDescription=%@",item.description);
				NSLog(@"ItemID=%@",item.itemId);
				NSLog(@"Item URL=%@",item.url);
				NSLog(@"Item Price=%lf",item.price);
				
			}
		}
	}
	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 catalogueName = "catalogueName"
let categoryName = "categoryName"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
let itemData = ItemData()
itemData.itemId = "abc1234007"
itemData.name = "Item"
itemData.image = "Image URL"
itemData.description = "Image Description"
itemData.price = 20.0

catalogueService?.addItem(catalogueName, categoryName: categoryName, itemData: itemData, completionBlock: { (success, response, exception) -> Void in
    
    if(success)
    {
        let catalogue = response as! Catalogue
        NSLog("Response=%@",catalogue.strResponse);
        NSLog("CatalogueName=%@",catalogue.name);
        
        let categoryList = catalogue.categoryListArray
        for category in categoryList {
            NSLog("CategoryName = %@",category.name)
            NSLog("CategoryDescription = %@",category.description)
        }
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
String categoryName = "categoryName";
ItemData itemData = new ItemData();	
itemData.setDescription("Image Description");
itemData.setImage("Your File Path");
itemData.setItemId("abc1234007");
itemData.setName("Item");
itemData.setPrice(20.0);				
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.addItem(catalogueName,categoryName,itemData); 
System.out.println("catalogue name is"+catalogue.getName());
for(int i = 0;i < catalogue.getCategoryList().size();i++)
{
	System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
	ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
	for(int j=0;j<itemList.size();j++)
	{
		System.out.println("Item list Name:"+itemList.get(j).getName());
		System.out.println("Item List Id:"+itemList.get(j).getItemId());
		System.out.println("Item List  Description:"+itemList.get(j).getDescription());
		System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
		System.out.println("ItemList url:"+itemList.get(j).getUrl());
		System.out.println("Price:"+itemList.get(j).getPrice());
	}
}
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
ItemData itemData = new ItemData();    
itemData.SetDescription("Image Description");
itemData.SetImage("Your File Path");
itemData.SetItemId("abc1234007");
itemData.SetName("Item");
itemData.SetPrice(20.0);	
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.AddItem(catalogueName,categoryName,itemData,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
	{
		Catalogue catalogue = (Catalogue) response;   
		App42Log.Console("catalogueName is :" + catalogue.GetName());
	}
	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
ItemData itemData = new ItemData();	
itemData.SetDescription("Image Description");
itemData.SetImage("Your File Path");
itemData.SetItemId("abc1234007");
itemData.SetName("Item");
itemData.SetPrice(20.0);				
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
Catalogue catalogue = catalogueService.AddItem(catalogueName,categoryName,itemData); 
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";
$categoryName = "categoryName";
$itemData = new ItemData();
$itemData->setItemId("ItemId01");
$itemData->setDescription("ItemDescription01");
$itemData->setName("ItemName01");
$itemData->setPrice(200);
$itemData->setImage("your local image path.");
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$catalogue = $catalogueService->addItem($catalogueName,$categoryName,$itemData);
print_r("catalogueName is " . $catalogue->getName().PHP_EOL);
$category = $catalogue->getCategoryList();
foreach ($category as $categoryList) 
{
	print_r("Category Name is:" . $categoryList->getName() . PHP_EOL);
	$items = $categoryList->getItemList();
	foreach ($items as $itemList) 
	{
		print_r("Item list Name:" . $itemList->getName() . PHP_EOL);
		print_r("Item List Id:" . $itemList->getItemId() . PHP_EOL);
		print_r("Item List  Description:" . $itemList->getDescription() . PHP_EOL);
		print_r("ItemList tiny Url:" . $itemList->getTinyUrl() . PHP_EOL);
		print_r("ItemList url:" . $itemList->getUrl() . PHP_EOL);
		print_r("Price:" . $itemList->getPrice() . PHP_EOL);
	}
}
$jsonResponse = $catalogue->toString(); 
Coming Soon
catalogueName = "catalogueName";
categoryName = "categoryName";
itemData = App42::Shopping::ItemData.new();
itemData.item_id="itemId01";
itemData.description="ItemDescription01";
itemData.name="ItemName01";
itemData.price="200";
itemData.image="your local image path" ;
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
catalogue = catalogue_service.add_item(catalogueName,categoryName, itemData);
puts "name is #{catalogue.name}";
category_list = Array.new();
category_list = catalogue.category_list();
for category in category_list do
  puts "name is #{category.name}";
  puts "description is #{category.description}";
  item_list = Array.new();
  item_list = category.item_list();
  for item in item_list do
    puts "price is #{item.price}";
    puts "itemId is #{item.item_id}" ;
    puts "name is #{item.name}";
  end
end
json_response = catalogue.to_s();
var catalogueName:String = "catalogueName";  
var categoryName:String = "categoryName";
var itemData:ItemData = new ItemData();
itemData.setItemId("abc1234007");
itemData.setDescription("Image Description");
itemData.setName("Item");
itemData.setPrice(20.0);
itemData.setImage("Your File Path");
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.addItem(catalogueName,categoryName,itemData,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		
		var catalogue:Catalogue = Catalogue(response);
		trace("catalogue name is"+catalogue.getName());
		if(catalogue.getCategoryList() != null)
		{ 
			var categoryList:Array  = catalogue.getCategoryList();
			for(var i:int=0;i<categoryList.length;i++)
			{
				var category:Category = Category(categoryList[i]);
				trace("Name is"+category.getName());
				if(category.getItemList()!=null)
				{
					var itemList:Array=category.getItemList();
					for(var j:int=0;j<itemList.length;j++)
					{
						var item:CategoryItem=CategoryItem(itemList[j]);
						trace("Item list Name:"+item.getName());
						trace("Item List Id:"+item.getItemId());
						trace("Item List  Description:"+item.getDescription())
						trace("ItemList tiny Url:"+item.getTinyUrl())
						trace("ItemList url:"+item.getUrl())
						trace("Price:"+item.getPrice());
					}
				}
			}				
		}				
	}
}
Coming Soon 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
ItemData itemData = new ItemData();	
itemData.setDescription("Image Description");
itemData.setImage("Your File Path");
itemData.setItemId("abc1234007");
itemData.setName("Item");
itemData.setPrice(20.0);				
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.addItem(catalogueName,categoryName,itemData); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString(); 
Get Items

Fetch all items for a Catalogue.

Required Parameters

catalogueName - Name of the catalogue from which item 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 catalogueName = "catalogueName";						
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.getItems(catalogueName, new App42CallBack() {
public void onSuccess(Object response) 
{
	Catalogue catalogue = (Catalogue)response;
	System.out.println("catalogue name is"+catalogue.getName());
	for(int i = 0;i < catalogue.getCategoryList().size();i++)
	{
		System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
		ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
		for(int j=0;j<itemList.size();j++)
		{
			System.out.println("Item list Name:"+itemList.get(j).getName());
			System.out.println("Item List Id:"+itemList.get(j).getItemId());
			System.out.println("Item List  Description:"+itemList.get(j).getDescription());
			System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
			System.out.println("ItemList url:"+itemList.get(j).getUrl());
			System.out.println("Price:"+itemList.get(j).getPrice());
		}
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());	
}
});
String catalogueName = "catalogueName";					
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItems(catalogueName,new Callback());  
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
	public void OnSuccess(Object response)  
	{  
		Catalogue catalogue = (Catalogue) response;     
		Console.WriteLine("catalogueName is " + catalogue.GetName()); 
		String jsonResponse = catalogue.ToString();
	}  
}
NSString *catalogueName = @"catalogueName";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService getItems:catalogueName completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Catalogue *catalogue = (Catalogue*)responseObj;
		NSLog(@"Response=%@",catalogue.strResponse);
		NSLog(@"CatalogueName=%@",catalogue.name);
		for (CategoryData *category in catalogue.categoryListArray)
		{
			NSLog(@"CategoryName=%@",category.name);
			for (categoryItem *item in category.itemListArray)
			{
				NSLog(@"ItemName=%@",item.name);
				NSLog(@"ItemDescription=%@",item.description);
				NSLog(@"ItemID=%@",item.itemId);
				NSLog(@"Item URL=%@",item.url);
				NSLog(@"Item Price=%lf",item.price);
				
			}
		}
	}
	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 catalogueName = "catalogueName"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.getItems(catalogueName, completionBlock:{ (success, response, exception) -> Void in
    if(success)
    {
        let catalogue = response as! Catalogue
        NSLog("Response=%@",catalogue.strResponse);
        NSLog("CatalogueName=%@",catalogue.name);
        
        let categoryList = catalogue.categoryListArray
        for category in categoryList {
            NSLog("CategoryName = %@",category.name)
            NSLog("CategoryDescription = %@",category.description)
        }
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.getItems(catalogueName); 
System.out.println("catalogue name is"+catalogue.getName());
for(int i = 0;i < catalogue.getCategoryList().size();i++)
{
	System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
	ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
	for(int j=0;j<itemList.size();j++)
	{
		System.out.println("Item list Name:"+itemList.get(j).getName());
		System.out.println("Item List Id:"+itemList.get(j).getItemId());
		System.out.println("Item List  Description:"+itemList.get(j).getDescription());
		System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
		System.out.println("ItemList url:"+itemList.get(j).getUrl());
		System.out.println("Price:"+itemList.get(j).getPrice());
	}
}
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItems(catalogueName,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
	{
		Catalogue catalogue = (Catalogue) response;   
		App42Log.Console("catalogueName is :" + catalogue.GetName());
        App42Log.Console("jsonResponse is :" + catalogue.ToString());
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
Catalogue catalogue = catalogueService.getItems(catalogueName);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";					
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$catalogue = $catalogueService->getItems($catalogueName);
print_r("catalogueName is " . $catalogue->getName().PHP_EOL);
$category = $catalogue->getCategoryList();
foreach ($category as $categoryList)
{
	print_r("Category Name is:" . $categoryList->getName() . PHP_EOL);
	$items = $categoryList->getItemList();
	foreach ($items as $itemList)
	{
		print_r("Item list Name:" . $itemList->getName() . PHP_EOL);
		print_r("Item List Id:" . $itemList->getItemId() . PHP_EOL);
		print_r("Item List  Description:" . $itemList->getDescription() . PHP_EOL);
		print_r("ItemList tiny Url:" . $itemList->getTinyUrl() . PHP_EOL);
		print_r("ItemList url:" . $itemList->getUrl() . PHP_EOL);
		print_r("Price:" . $itemList->getPrice() . PHP_EOL);
	}
}
$jsonResponse = $catalogue->toString(); 
Coming Soon
catalogueName = "catalogueName";					
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
catalogue = catalogue_service.get_items(catalogueName);
puts "name is #{catalogue.name}";
puts "description is #{catalogue.description}";
category_list = Array.new();
category_list = catalogue.category_list();
for category in category_list do
  puts "name is #{category.name}";
  puts "description is #{category.description}";
  item_list = Array.new();
  item_list = category.item_list();
  for item in item_list do
    puts "price is #{item.price}";
    puts "itemId is #{item.item_id}";
    puts "name is #{item.name}";
  end
end
json_response = catalogue.to_s(); 
var catalogueName:String = "catalogueName"; 
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.getItems(catalogueName,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{						
		var catalogue:Catalogue = Catalogue(response);
		trace("catalogue name is"+catalogue.getName());
		if(catalogue.getCategoryList() != null)
		{ 
			var categoryList:Array  = catalogue.getCategoryList();
			for(var i:int=0;i<categoryList.length;i++)
			{
				var category:Category = Category(categoryList[i]);
				trace("Name is"+category.getName());
				if(category.getItemList()!=null)
				{
					var itemList:Array=category.getItemList();
					for(var j:int=0;j<itemList.length;j++)
					{
						var item:CategoryItem=CategoryItem(itemList[j]);
						trace("Item list Name:"+item.getName());
						trace("Item List Id:"+item.getItemId());
						trace("Item List  Description:"+item.getDescription())
						trace("ItemList tiny Url:"+item.getTinyUrl())
						trace("ItemList url:"+item.getUrl())
						trace("Price:"+item.getPrice());
					}
				}
			}		
		}
	}
}
Coming Soon 
String catalogueName = "catalogueName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.getItems(catalogueName); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString(); 
Get Items By Category

Fetch all items in a category for a catalogue.

Required Parameters

catalogueName - Name of the catalogue from which item has to be fetched. categoryName - Name of the category from which item 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 catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.getItemsByCategory(catalogueName, categoryName, new App42CallBack() {
public void onSuccess(Object response)
{
	Catalogue catalogue = (Catalogue)response;
	System.out.println("catalogue name is"+catalogue.getName());
	for(int i = 0;i < catalogue.getCategoryList().size();i++)
	{
		System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
		ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
		for(int j=0;j<itemList.size();j++)
		{
			System.out.println("Item list Name:"+itemList.get(j).getName());
			System.out.println("Item List Id:"+itemList.get(j).getItemId());
			System.out.println("Item List  Description:"+itemList.get(j).getDescription());
			System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
			System.out.println("ItemList url:"+itemList.get(j).getUrl());
			System.out.println("Price:"+itemList.get(j).getPrice());			
		}
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());	
}
});
String catalogueName = "catalogueName";
String categoryName = "categoryName";					
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItemsByCategory(catalogueName,categoryName,new Callback());  
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
	public void OnSuccess(Object response)  
	{ 
		Catalogue catalogue = (Catalogue) response;     
		Console.WriteLine("catalogueName is " + catalogue.GetName()); 
		String jsonResponse = catalogue.ToString();
	}  
}
NSString *catalogueName = @"catalogueName";
NSString *categoryName = @"categoryName";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService getItemsByCategory:catalogueName categoryName:categoryName completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Catalogue *catalogue = (Catalogue*)responseObj;
		NSLog(@"Response=%@",catalogue.strResponse);
		NSLog(@"CatalogueName=%@",catalogue.name);
		for (CategoryData *category in catalogue.categoryListArray)
		{
			NSLog(@"CategoryName=%@",category.name);
			for (categoryItem *item in category.itemListArray)
			{
				NSLog(@"ItemName=%@",item.name);
				NSLog(@"ItemDescription=%@",item.description);
				NSLog(@"ItemID=%@",item.itemId);
				NSLog(@"Item URL=%@",item.url);
				NSLog(@"Item Price=%lf",item.price);
				
			}
		}
	}
	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 catalogueName = "catalogueName"
let categoryName = "categoryName"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.getItemsByCategory(catalogueName, categoryName: categoryName, completionBlock:{ (success, response, exception) -> Void in

    if(success)
    {
        let catalogue = response as! Catalogue
        NSLog("Response=%@",catalogue.strResponse);
        NSLog("CatalogueName=%@",catalogue.name);

        let categoryList = catalogue.categoryListArray
        for category in categoryList {
            NSLog("CategoryName = %@",category.name)
            NSLog("CategoryDescription = %@",category.description)
        }
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.getItemsByCategory(catalogueName,categoryName); 
System.out.println("catalogue name is"+catalogue.getName());
for(int i = 0;i < catalogue.getCategoryList().size();i++)
{
	System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
	ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
	for(int j=0;j<itemList.size();j++)
	{
		System.out.println("Item list Name:"+itemList.get(j).getName());
		System.out.println("Item List Id:"+itemList.get(j).getItemId());
		System.out.println("Item List  Description:"+itemList.get(j).getDescription());
		System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
		System.out.println("ItemList url:"+itemList.get(j).getUrl());
		System.out.println("Price:"+itemList.get(j).getPrice());			
	}
}
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItemsByCategory(catalogueName,categoryName,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
    {
		Catalogue catalogue = (Catalogue) response;   
		App42Log.Console("catalogueName is :" + catalogue.GetName());
        App42Log.Console("jsonResponse is :" + catalogue.ToString());
	}
	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
Catalogue catalogue = catalogueService.GetItemsByCategory(catalogueName,categoryName);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";	
$categoryName = "categoryName";				
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$catalogue = $catalogueService->getItemsByCategory($catalogueName,$categoryName);
print_r("catalogueName is " . $catalogue->getName().PHP_EOL);
$category = $catalogue->getCategoryList();
foreach ($category as $categoryList)
{
	print_r("Category Name is:" . $categoryList->getName() . PHP_EOL);
	$items = $categoryList->getItemList();
	foreach ($items as $itemList)
	{
		print_r("Item list Name:" . $itemList->getName() . PHP_EOL);
		print_r("Item List Id:" . $itemList->getItemId() . PHP_EOL);
		print_r("Item List  Description:" . $itemList->getDescription() . PHP_EOL);
		print_r("ItemList tiny Url:" . $itemList->getTinyUrl() . PHP_EOL);
		print_r("ItemList url:" . $itemList->getUrl() . PHP_EOL);
		print_r("Price:" . $itemList->getPrice() . PHP_EOL);
	}
}
$jsonResponse = $catalogue->toString(); 
Coming Soon
catalogueName = "catalogueName";
categoryName = "categoryName";
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
catalogue = catalogue_service.get_items_by_category(catalogueName, categoryName); 
puts "name is #{catalogue.name}";
category_list = Array.new();
category_list = catalogue.category_list();
for category in category_list do
  puts "name is #{category.name}";
  item_list = Array.new();
  item_list = category.item_list();
  for item in item_list do
    puts "price is #{item.price}";
    puts "itemId is #{item.item_id}";
    puts "name is #{item.name}";
  end
end
json_response = catalogue.to_s();
var catalogueName:String = "catalogueName";
var categoryName:String = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.getItemsByCategory(catalogueName,categoryName,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		
		var catalogue:Catalogue = Catalogue(response);
		trace("catalogue name is"+catalogue.getName());
		if(catalogue.getCategoryList() != null)
		{ 
			var categoryList:Array  = catalogue.getCategoryList();
			for(var i:int=0;i<categoryList.length;i++)
			{
				var category:Category = Category(categoryList[i]);
				trace("Name is"+category.getName());
				if(category.getItemList()!=null)
				{
					var itemList:Array=category.getItemList();
					for(var j:int=0;j<itemList.length;j++)
					{
						var item:CategoryItem=CategoryItem(itemList[j]);
						trace("Item list Name:"+item.getName());
						trace("Item List Id:"+item.getItemId());
						trace("Item List  Description:"+item.getDescription())
						trace("ItemList tiny Url:"+item.getTinyUrl())
						trace("ItemList url:"+item.getUrl())
						trace("Price:"+item.getPrice());
					}
				}
			}				
		}				
	}
}
Coming Soon 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.getItemsByCategory(catalogueName,categoryName); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString(); 
Get Items By Category Count

Fetche count of all items in a particular category for a catalogue.

Required Parameters

catalogueName - Name of the catalogue from which count of the item has to be fetched. categoryName - Name of the category from which count of the item 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 catalogueName  = "catalogueName ";
String categoryName  = "categoryName";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.getItemsCountByCategory(catalogueName, categoryName, 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 catalogueName  = "catalogueName ";
String categoryName  = "categoryName";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItemsCountByCategory(catalogueName, categoryName, new Callback());  
public class Callback : App42Callback  
{  
	public void OnSuccess(Object response)  
	{  
		App42Response response = (App42Response) response;     
		String jsonResponse = response.ToString();  
	}  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
}  
NSString *catalogueName  = @"catalogueName ";
NSString *categoryName  = @"categoryName";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService getItemsCountByCategory:catalogueName categoryName:categoryName 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 catalogueName = "catalogueName"
let categoryName = "categoryName"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.getItemsCountByCategory(catalogueName, categoryName: categoryName, completionBlock:{ (success, response, exception) -> Void in

    if(success)
    {
        let app42Response = response as! App42Response
        NSLog("Response=%@",app42Response.strResponse);
        NSLog("Total Items = %d", app42Response.totalRecords)
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName  = "catalogueName ";
String categoryName  = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response app42response = catalogueService.getItemsCountByCategory(catalogueName, categoryName);
System.out.println("Total Records : " + app42response.getTotalRecords()) ;
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItemsCountByCategory(catalogueName,categoryName,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
    {
    	App42Response app42Response = (App42Response) response;  
        App42Log.Console("app42Response is :" + app42Response.ToString());
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Not Available 
Coming Soon
Coming Soon
String catalogueName  = "catalogueName ";
String categoryName  = "categoryName";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
App42Response response = catalogueService.GetItemsCountByCategory(catalogueName, categoryName); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName  = "catalogueName ";
$categoryName  = "categoryName";
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$response = $catalogueService->getItemsCountByCategory($catalogueName, $categoryName); 
print_r("Total Records ".$response->getTotalRecords());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
catalogueName = "catalogueName";
categoryName = "categoryName";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
response = catalogue_service.get_items_count_by_category(catalogueName, categoryName);
success = response.is_response_success();
total_records = response.total_records();
json_response = response.to_s();
var catalogueName:String = "catalogueName";
var categoryName:String = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.getItemsCountByCategory(catalogueName,categoryName,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		var catalogue:Catalogue = Catalogue(response);
		trace("Total Records :"+catalogue.getTotalRecords())
	}
}
Coming Soon 
String catalogueName  = "catalogueName ";
String categoryName  = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response response = catalogueService.getItemsCountByCategory(catalogueName, categoryName); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
Get Items By Category Paging

Fetch all items in a category for a catalogue by paging.

Required Parameters

catalogueName - Name of the catalogue from which item has to be fetched. categoryName - Name of the category from which item has 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 catalogueName = "catalogueName";
String categoryName = "categoryName";
int max = 1;
int offset = 0 ;
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.getItemsByCategory(catalogueName, categoryName, max, offset, new App42CallBack() {
public void onSuccess(Object response) 
{
	Catalogue catalogue = (Catalogue)response;
	System.out.println("catalogue name is"+catalogue.getName());
	for(int i = 0;i < catalogue.getCategoryList().size();i++)
	{
		System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
		ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
		for(int j=0;j<itemList.size();j++)
		{
			System.out.println("Item list Name:"+itemList.get(j).getName());
			System.out.println("Item List Id:"+itemList.get(j).getItemId());
			System.out.println("Item List  Description:"+itemList.get(j).getDescription());
			System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
			System.out.println("ItemList url:"+itemList.get(j).getUrl());
			System.out.println("Price:"+itemList.get(j).getPrice());
		}
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());	
}
});
String catalogueName = "catalogueName";
String categoryName = "categoryName";	
int max = 1;
int offset = 0 ;				
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItemsByCategory(catalogueName,categoryName,max,offset,new Callback());  
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
	public void OnSuccess(Object response)  
	{ 
		Catalogue catalogue = (Catalogue) response;     
		Console.WriteLine("catalogueName is " + catalogue.GetName()); 
		String jsonResponse = catalogue.ToString();
	}  
}
NSString *catalogueName = @"catalogueName";
NSString *categoryName = @"categoryName";
int max = 1;
int offset = 0 ;
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService getItemsByCategory:catalogueName categoryName:categoryName max:max offset:offset completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Catalogue *catalogue = (Catalogue*)responseObj;
		NSLog(@"Response=%@",catalogue.strResponse);
		NSLog(@"CatalogueName=%@",catalogue.name);
		for (CategoryData *category in catalogue.categoryListArray)
		{
			NSLog(@"CategoryName=%@",category.name);
			for (categoryItem *item in category.itemListArray)
			{
				NSLog(@"ItemName=%@",item.name);
				NSLog(@"ItemDescription=%@",item.description);
				NSLog(@"ItemID=%@",item.itemId);
				NSLog(@"Item URL=%@",item.url);
				NSLog(@"Item Price=%lf",item.price);
				
			}
		}
	}
	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 catalogueName = "catalogueName"
let categoryName = "categoryName"
let max:Int32 = 5
let offset:Int32 = 0
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.getItemsByCategory(catalogueName, categoryName: categoryName, max:max, offset: offset, completionBlock:{ (success, response, exception) -> Void in

    if(success)
    {
        let catalogue = response as! Catalogue
        NSLog("Response=%@",catalogue.strResponse);
        NSLog("CatalogueName=%@",catalogue.name);

        let categoryList = catalogue.categoryListArray
        for category in categoryList {
            NSLog("CategoryName = %@",category.name)
            NSLog("CategoryDescription = %@",category.description)
        }
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
String categoryName = "categoryName";
int max = 1;
int offset = 0 ;
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.getItemsByCategory(catalogueName,categoryName,max,offset); 
System.out.println("catalogue name is"+catalogue.getName());
for(int i = 0;i < catalogue.getCategoryList().size();i++)
{
	System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
	ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
	for(int j=0;j<itemList.size();j++)
	{
		System.out.println("Item list Name:"+itemList.get(j).getName());
		System.out.println("Item List Id:"+itemList.get(j).getItemId());
		System.out.println("Item List  Description:"+itemList.get(j).getDescription());
		System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
		System.out.println("ItemList url:"+itemList.get(j).getUrl());
		System.out.println("Price:"+itemList.get(j).getPrice());
	}
}
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
int max = 1;
int offset = 0 ;
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItemsByCategory(catalogueName,categoryName,max,offset,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
    {
        Catalogue catalogue = (Catalogue) response;  
        App42Log.Console("catalogueName is :" + catalogue.GetName());
        App42Log.Console("jsonResponse is :" + catalogue.ToString());
	}

	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
int max = 1;
int offset = 0 ;
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
Catalogue catalogue = catalogueService.GetItemsByCategory(catalogueName,categoryName,max,offset);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";	
$categoryName = "categoryName";	
$max = 1;
$offset = 0 ;			
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$catalogue = $catalogueService->getItemsByCategory($catalogueName,$categoryName,$max,$offset);
print_r("catalogueName is " . $catalogue->getName().PHP_EOL);
$category = $catalogue->getCategoryList();
foreach ($category as $categoryList)
{
	print_r("Category Name is:" . $categoryList->getName() . PHP_EOL);
	$items = $categoryList->getItemList();
	foreach ($items as $itemList)
	{
		print_r("Item list Name:" . $itemList->getName() . PHP_EOL);
		print_r("Item List Id:" . $itemList->getItemId() . PHP_EOL);
		print_r("Item List  Description:" . $itemList->getDescription() . PHP_EOL);
		print_r("ItemList tiny Url:" . $itemList->getTinyUrl() . PHP_EOL);
		print_r("ItemList url:" . $itemList->getUrl() . PHP_EOL);
		print_r("Price:" . $itemList->getPrice() . PHP_EOL);
	}
}
$jsonResponse = $catalogue->toString(); 
Coming Soon
catalogueName = "catalogueName";
categoryName = "categoryName";
max = 1;
offset = 0;						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
catalogue = catalogue_service.get_items_by_category_by_paging(catalogueName, categoryName, max, offset);
puts "name is #{catalogue.name}";
category_list = Array.new();
category_list = catalogue.category_list();
for category in category_list do
  item_list = Array.new();
  item_list = category.item_list();
  for item in item_list do
    puts "price is #{item.price}";
    puts "itemId is #{item.item_id}";
    puts "name is #{item.name}";
  end
end
json_response = catalogue.to_s(); 
var catalogueName:String = "catalogueName";
var categoryName:String = "categoryName";
var max:int=1;
var offset:int=0;
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.getItemsByCategoryByPaging(catalogueName,categoryName, max, offset,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		
		var catalogue:Catalogue = Catalogue(response);
		trace("catalogue name is"+catalogue.getName());
		if(catalogue.getCategoryList() != null)
		{ 
			var categoryList:Array  = catalogue.getCategoryList();
			for(var i:int=0;i<categoryList.length;i++)
			{
				var category:Category = Category(categoryList[i]);
				trace("category name is : " + category.getName());
				if(category.getItemList()!=null)
				{
					var itemList:Array = category.getItemList();
					for(var j:int=0;j < itemList.length;j++)
					{
						var item:CategoryItem = CategoryItem(itemList[j]);
						trace("Item list Name:"+item.getName());
						trace("Item List Id:"+item.getItemId());
						trace("Item List  Description:"+item.getDescription())
						trace("ItemList tiny Url:"+item.getTinyUrl())
						trace("ItemList url:"+item.getUrl())
						trace("Price:"+item.getPrice());
					}
				}
			}				
		}				
	}
}
Coming Soon 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
Integer max = new Integer(1);
Integer offset = new Integer(0);  
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.getItemsByCategory(catalogueName,categoryName,max,offset); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString(); 
Get Item By ID

Fetch item by ID in a category for a catalogue.

Required Parameters

catalogueName - Name of the catalogue from which item has to be fetched. categoryName - Name of the category from which item has to be fetched. itemId - Item ID for which information 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 catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.getItemById(catalogueName, categoryName, itemId, new App42CallBack() {
public void onSuccess(Object response) 
{
	Catalogue catalogue = (Catalogue)response;
	System.out.println("catalogue name is"+catalogue.getName());
	for(int i = 0;i < catalogue.getCategoryList().size();i++)
	{
		System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
		ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
		for(int j=0;j<itemList.size();j++)
		{
			System.out.println("Item list Name:"+itemList.get(j).getName());
			System.out.println("Item List Id:"+itemList.get(j).getItemId());
			System.out.println("Item List  Description:"+itemList.get(j).getDescription());
			System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
			System.out.println("ItemList url:"+itemList.get(j).getUrl());
			System.out.println("Price:"+itemList.get(j).getPrice());
		}
	}
}
public void onException(Exception ex) 
{
	System.out.println("Exception Message"+ex.getMessage());	
}
}); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";	
String itemId = "itemId";	
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItemById(catalogueName,categoryName,itemId,new Callback());  
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
	public void OnSuccess(Object response)  
	{  
		Catalogue catalogue = (Catalogue) response;     
		Console.WriteLine("catalogueName is " + catalogue.GetName()); 
		String jsonResponse = catalogue.ToString();
	}  
}
NSString *catalogueName = @"catalogueName";
NSString *categoryName = @"categoryName";
NSString *itemId = @"itemId";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService getItemById:catalogueName categoryName:categoryName itemId:itemId completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Catalogue *catalogue = (Catalogue*)responseObj;
		NSLog(@"Response=%@",catalogue.strResponse);
		NSLog(@"CatalogueName=%@",catalogue.name);
		for (CategoryData *category in catalogue.categoryListArray)
		{
			NSLog(@"CategoryName=%@",category.name);
			for (categoryItem *item in category.itemListArray)
			{
				NSLog(@"ItemName=%@",item.name);
				NSLog(@"ItemDescription=%@",item.description);
				NSLog(@"ItemID=%@",item.itemId);
				NSLog(@"Item URL=%@",item.url);
				NSLog(@"Item Price=%lf",item.price);
				
			}
		}
	}
	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 catalogueName = "catalogueName"
let categoryName = "categoryName"
let itemId = "Item_ID"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.getItemById(catalogueName, categoryName: categoryName, itemId: itemId, completionBlock:{ (success, response, exception) -> Void in
    if(success)
    {
        let catalogue = response as! Catalogue
        NSLog("Response=%@",catalogue.strResponse);
        NSLog("CatalogueName=%@",catalogue.name);

        let categoryList = catalogue.categoryListArray
        for category in categoryList {
            NSLog("CategoryName = %@",category.name)
            NSLog("CategoryDescription = %@",category.description)
        }
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.getItemById(catalogueName,categoryName,itemId); 
System.out.println("catalogue name is"+catalogue.getName());
for(int i = 0;i < catalogue.getCategoryList().size();i++)
{
	System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
	ArrayList<Catalogue.Category.Item> itemList = catalogue.getCategoryList().get(i).getItemList();
	for(int j=0;j<itemList.size();j++)
	{
		System.out.println("Item list Name:"+itemList.get(j).getName());
		System.out.println("Item List Id:"+itemList.get(j).getItemId());
		System.out.println("Item List  Description:"+itemList.get(j).getDescription());
		System.out.println("ItemList tiny Url:"+itemList.get(j).getTinyUrl());
		System.out.println("ItemList url:"+itemList.get(j).getUrl());
		System.out.println("Price:"+itemList.get(j).getPrice());
	}
}
String jsonResponse = catalogue.toString();
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.GetItemById(catalogueName,categoryName,itemId,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
    {
        Catalogue catalogue = (Catalogue) response;  
        App42Log.Console("catalogueName is :" + catalogue.GetName());
        App42Log.Console("jsonResponse is :" + catalogue.ToString());
    }
	public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
Catalogue catalogue = catalogueService.GetItemById(catalogueName,categoryName,itemId);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";	
$categoryName = "categoryName";	
$itemId = "itemId";	
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$catalogue = $catalogueService->getItemById($catalogueName,$categoryName,$itemId);
print_r("catalogueName is " . $catalogue->getName().PHP_EOL);
$category = $catalogue->getCategoryList();
foreach ($category as $categoryList)
{
	print_r("Category Name is:" . $categoryList->getName() . PHP_EOL);
	$items = $categoryList->getItemList();
	foreach ($items as $itemList)
	{
		print_r("Item list Name:" . $itemList->getName() . PHP_EOL);
		print_r("Item List Id:" . $itemList->getItemId() . PHP_EOL);
		print_r("Item List  Description:" . $itemList->getDescription() . PHP_EOL);
		print_r("ItemList tiny Url:" . $itemList->getTinyUrl() . PHP_EOL);
		print_r("ItemList url:" . $itemList->getUrl() . PHP_EOL);
		print_r("Price:" . $itemList->getPrice() . PHP_EOL);
	}
}
$jsonResponse = $catalogue->toString(); 
Coming Soon
catalogueName = "catalogueName";
categoryName = "categoryName";
itemId = "ItemId01";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
catalogue = catalogue_service.get_item_by_id(catalogueName, categoryName, itemId);
puts "name is #{catalogue.name}";
category_list = Array.new();
category_list = catalogue.category_list();
for category in category_list do
  puts "name is #{category.name}";
  puts "description is #{category.description}";
  item_list = Array.new();
  item_list = category.item_list();
  for item in item_list do
    puts "price is #{item.price}";
    puts "itemId is #{item.item_id}";
    puts "name is #{item.name}";
  end
end
json_response = catalogue.to_s();
var catalogueName:String = "catalogueName";
var categoryName:String = "categoryName";
var itemId:String= "itemId";
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.getItemById(catalogueName,categoryName,itemId,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		var catalogue:Catalogue = Catalogue(response);
		trace("catalogue name is : " + catalogue.getName());
		if(catalogue.getCategoryList() != null)
		{ 
			var categoryList:Array  = catalogue.getCategoryList();
			for(var i:int=0;i<categoryList.length;i++)
			{
				var category:Category = Category(categoryList[i]);
				trace("category Name is"+ category.getName());
				if(category.getItemList()!=null)
				{
					var itemList:Array= category.getItemList();
					for(var j:int=0;j<itemList.length;j++)
					{
						var item:CategoryItem=CategoryItem(itemList[j]);
						trace("Itemlist Name : " + item.getName());
						trace("ItemList Id : " + item.getItemId());
						trace("ItemList Description : " + item.getDescription())
						trace("ItemList tiny Url : " + item.getTinyUrl())
						trace("ItemList url : " + item.getUrl())
					}
				}
			}				
		}				
	}
}
Coming Soon 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
Catalogue catalogue = catalogueService.getItemById(catalogueName,categoryName,itemId); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString();
Remove All Items

Remove all items in a catalogue.

Required Parameters

catalogueName - Name of the catalogue from which items have to be removed.

  • 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 catalogueName = "catalogueName";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.removeAllItems(catalogueName, 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 catalogueName = "catalogueName"; 
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.RemoveAllItems(catalogueName, new Callback());  
public class Callback : App42Callback  
{  
	public void OnSuccess(Object response)  
	{  
		App42Response response = (App42Response) response;     
		String jsonResponse = response.ToString();  
	} 
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}   
}  
NSString *catalogueName = @"catalogueName"; 
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService removeAllItems:catalogueName 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 catalogueName = "catalogueName"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.removeAllItems(catalogueName, completionBlock:{ (success, response, exception) -> Void in
    if(success)
    {
        let app42Response = response as! App42Response
        NSLog("Response=%@",app42Response.strResponse);
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response app42response = catalogueService.removeAllItems(catalogueName); 
System.out.println("response is " + app42response) ; 
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String catalogueName = "catalogueName";
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.RemoveAllItems(catalogueName,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
    {
        App42Response app42Response = (App42Response) response;  
        App42Log.Console("App42Response is :" + app42Response.ToString());
    }
    public void OnException(Exception e)
	{
		App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
App42Response response = catalogueService.RemoveAllItems(catalogueName); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName = "catalogueName";
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$response = $catalogueService->removeAllItems($catalogueName); 
print_r("Response is ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
catalogueName = catalogueName;						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
response = catalogue_service.remove_all_items(catalogueName);
success = response.is_response_success();
json_response = catalogue.to_s();
var catalogueName:String = "catalogueName";
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.removeAllItems(catalogueName,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		var app42response :App42Response= App42Response(response);      
		trace("response is " + app42response)   	
	}
} 
Coming Soon 
String catalogueName = "catalogueName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response response = catalogueService.removeAllItems(catalogueName); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
Remove Items By Category

Removes all the items in a category for a catalogue.

Required Parameters

catalogueName - Name of the catalogue from which item has to be removed. categoryName - Name of the category from which item has to be removed.

  • 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 catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.removeItemsByCategory(catalogueName, categoryName,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 catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.RemoveItemsByCategory(catalogueName,categoryName, new Callback());  
public class Callback : App42Callback  
{  
	public void OnSuccess(Object response)  
	{  
		App42Response response = (App42Response) response;     
		String jsonResponse = response.ToString();  
	}  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
}  
NSString *catalogueName = @"catalogueName"; 
NSString *categoryName = @"categoryName"; 
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService removeItemsByCategory:catalogueName categoryName:categoryName 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 catalogueName = "catalogueName"
let categoryName = "categoryName"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.removeItemsByCategory(catalogueName, categoryName: categoryName, completionBlock:{ (success, response, exception) -> Void in
    if(success)
    {
        let app42Response = response as! App42Response
        NSLog("Response=%@",app42Response.strResponse);
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response app42response = catalogueService.removeItemsByCategory(catalogueName,categoryName);
System.out.println("response is " + app42response) ;   
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.RemoveItemsByCategory(catalogueName,categoryName,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
    {
        App42Response app42Response = (App42Response) response;  
        App42Log.Console("App42Response is :" + app42Response.ToString());
    }

    public void OnException(Exception e)
    {
		App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
App42Response response = catalogueService.RemoveItemsByCategory(catalogueName,categoryName); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName = "catalogueName";
$categoryName = "categoryName";
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$response = $catalogueService->removeItemsByCategory($catalogueName,$categoryName); 
print_r("Response is : ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
catalogueName = "catalogueName";
categoryName = "categoryName";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
response = catalogue_service.remove_items_by_category(catalogueName, categoryName);
success = response.is_response_success();
json_response = catalogue.to_s();
var catalogueName:String = "catalogueName";
var categoryName:String = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.removeItemsByCategory(catalogueName,categoryName,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		var app42response :App42Response= App42Response(response);      
		trace("response is " + app42response)   	
	}
} 
Coming Soon 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response response = catalogueService.removeItemsByCategory(catalogueName,categoryName); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
Remove Items By ID

Remove Item by ID in a particular category for a catalogue.

Required Parameters

catalogueName - Name of the catalogue from which item has to be removed. categoryName - Name of the category from which item has to be removed. itemId - Item ID which has to be removed.

  • 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 catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.removeItemById(catalogueName, categoryName, itemId, 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 catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.RemoveItemById(catalogueName,categoryName, itemId,new Callback());  
public class Callback : App42Callback  
{ 
	public void OnSuccess(Object response)  
	{ 
		App42Response response = (App42Response) response;     
		String jsonResponse = response.ToString();  
	}   
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
}  
NSString *catalogueName = @"catalogueName"; 
NSString *categoryName = @"categoryName"; 
NSString *itemId = @"itemId"; 
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService removeItemById:catalogueName categoryName:categoryName itemId: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 catalogueName = "catalogueName"
let categoryName = "categoryName"
let itemId = "Item_ID"
App42API.initializeWithAPIKey("API_KEY", andSecretKey:"SECRET_KEY")    
let catalogueService = App42API.buildCatalogueService() as? CatalogueService
catalogueService?.removeItemById(catalogueName, categoryName: categoryName, itemId: itemId, completionBlock:{ (success, response, exception) -> Void in
    if(success)
    {
        let app42Response = response as! App42Response
        NSLog("Response=%@",app42Response.strResponse);
    }
    else
    {
        NSLog("%@", exception.reason!)
        NSLog("%d", exception.appErrorCode)
        NSLog("%d", exception.httpErrorCode)
        NSLog("%@", exception.userInfo!)
    }
})
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response app42response = catalogueService.removeItemById(catalogueName,categoryName,itemId);
System.out.println("response is " + app42response) ;   
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.RemoveItemById(catalogueName,categoryName,itemId,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
    {
        App42Response app42Response = (App42Response) response;  
        App42Log.Console("App42Response is :" + app42Response.ToString());
    }

    public void OnException(Exception e)
    {
    	App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
App42Response response = catalogueService.RemoveItemById(catalogueName,categoryName,itemId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName = "catalogueName";
$categoryName = "categoryName";
$itemId = "itemId";
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$response = $catalogueService->removeItemById($catalogueName,$categoryName,$itemId); 
print_r("Response is : ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
catalogueName = "catalogueName";
categoryName = "categoryName";
itemId = "ItemId01";						
api = App42::ServiceAPI.new("API_KEY","SECRET_KEY") 
catalogue_service = api.build_catalogue_service()   
response = catalogue_service.remove_item_by_id(catalogueName, categoryName, itemId);
success = response.is_response_success();
json_response = catalogue.to_s();
var catalogueName:String = "catalogueName";
var categoryName:String = "categoryName";
var itemId:String= "itemId";
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.removeItemById(catalogueName,categoryName,itemId,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		var app42response :App42Response= App42Response(response);      
		trace("response is " + app42response)   	
	}
}  
Coming Soon 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response response = catalogueService.removeItemById(catalogueName,categoryName,itemId); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
Delete Category

Delete a category from a particular catalogue.

Required Parameters

catalogueName - Name of the catalogue from which catalogue has to be removed. categoryName - Name of the category which you have to remove.

  • 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 catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.deleteCategory(catalogueName,categoryName,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 catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.DeleteCategory(catalogueName,categoryName, new Callback());  
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
	}  
	public void OnSuccess(Object response)  
	{  
		App42Response response = (App42Response) response;     
		String jsonResponse = response.ToString();  
	}  
}  
Coming Soon                            
coming soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response app42response = catalogueService.deleteCategory(catalogueName,categoryName); 
System.out.println("response is " + app42response) ; 
boolean  success = app42response.isResponseSuccess();
String jsonResponse = app42response.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.DeleteCategory(catalogueName,categoryName,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    public void OnSuccess(object response)
    {
        App42Response app42Response = (App42Response) response;  
        App42Log.Console("App42Response is :" + app42Response.ToString());
    }

    public void OnException(Exception e)
    {
        App42Log.Console("Exception : " + e);
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
App42Response response = catalogueService.DeleteCategory(catalogueName,categoryName); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName = "catalogueName";
$categoryName = "categoryName";
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
$response = $catalogueService->deleteCategory($catalogueName,$categoryName); 
print_r("Response is : ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
Coming Soon
var catalogueName:String = "catalogueName";
var categoryName:String = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.deleteCategory(catalogueName,categoryName,new callback());
class callback implements App42CallBack
{	
	public function onException(exception:App42Exception):void
	{
		trace("Exception Message " + exception);
	}
	public function onSuccess(response:Object):void
	{					
		var app42response :App42Response= App42Response(response);      
		trace("response is " + app42response)   	
	}
}
Coming Soon 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
App42Response response = catalogueService.deleteCategory(catalogueName,categoryName); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
Exception Handling

The functions available under Catalogue API can throw some exceptions in abnormal conditions. For example, if a developer is creating a category under the catalogue which is not in a database, the function will throw the App42Exception (as shown below) with the message as “Not Found” and the appErrorCode as “3401” and the details as “Catalogue by the name ‘@catalogueName’ does 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 catalogueName = "catalogueName";
String categoryName = "categoryName";
String categoryDescription = "categoryDescription";	
App42API.initialize("ANDROID_APPLICATION_CONTEXT","API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
catalogueService.createCategory(catalogueName, categoryName, categoryDescription, new App42CallBack() {
public void onSuccess(Object response) 
{
	Catalogue catalogue = (Catalogue)response;
	System.out.println("catalogue name is"+catalogue.getName());
	for(int i = 0;i < catalogue.getCategoryList().size();i++)
	{
		System.out.println("category name is : " + catalogue.getCategoryList().get(i).getName());
		System.out.println("category description is : " + catalogue.getCategoryList().get(i).getDescription());
	}
}
public void onException(Exception ex) 
{
	App42Exception exception = (App42Exception)ex;
	int appErrorCode = exception.getAppErrorCode();
	int httpErrorCode = exception.getHttpErrorCode();
	if(appErrorCode == 3401)
	{
	// Handle here for Not Found (Catalogue by the name '@catalogueName' does not exist.)
	}
	else if(appErrorCode  == 3402)
	{
	// Handle here for Bad Request (The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@categoryName' already exists.)
	}
	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 catalogueName = "catalogueName";
String categoryName = "categoryName";
String categoryDescription = "categoryDescription";	
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.CreateCategory(catalogueName,categoryName,categoryDescription, new Callback());  
public class Callback : App42Callback  
{  
	public void OnException(App42Exception exception)  
	{  
		Console.WriteLine("Exception Message : " + exception);  
		int appErrorCode = exception.GetAppErrorCode();
		int httpErrorCode = exception.GetHttpErrorCode();
		if(appErrorCode == 3401)
		{
			// Handle here for Not Found (Catalogue by the name '@catalogueName' does not exist.)
		}
		else if(appErrorCode  == 3402)
		{
			// Handle here for Bad Request (The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@categoryName' already exists.)
		}
		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(); 
	}  
	public void OnSuccess(Object response)  
	{ 
		Catalogue catalogue = (Catalogue) response;
		String jsonResponse = catalogue.ToString();  
	} 
}  
					
NSString *catalogueName =  @"catalogueName"; 
NSString *categoryName =  @"categoryName"; 
NSString *categoryDescription =  @"categoryDescription";
[App42API initializeWithAPIKey:@"APP_KEY" andSecretKey:@"SECRET_KEY"]; 
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
[catalogueService createCategory:catalogueName categoryName:categoryName categoryDescription:categoryDescription completionBlock:^(BOOL success, id responseObj, App42Exception *exception) 
{
	if (success)
	{
		Catalogue *catalogue = (Catalogue*)responseObj;
		NSLog(@"catalogueName is = %@", catalogue.name);
		NSLog(@"catalogueDescription is = %@",catalogue.description);
	}
	else
	{
		int appErrorCode = exception.appErrorCode;
		int httpErrorCode = exception.httpErrorCode;
		if(appErrorCode == 3401)
		{
			// Handle here for Not Found (Catalogue by the name '@catalogueName' does not exist.)
		}
		else if(appErrorCode  == 3402)
		{
			// Handle here for Bad Request (The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@categoryName' already exists.)
		}
		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 catalogueName = "catalogueName";
String categoryName = "categoryName";
String categoryDescription = "categoryDescription";	
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
try
{
	Catalogue catalogue = catalogueService.createCategory(catalogueName,categoryName,categoryDescription);
}
catch( App42Exception ex )
{
	int appErrorCode = ex.getAppErrorCode();
	int httpErrorCode = ex.getHttpErrorCode();
	if(appErrorCode == 3401)
	{
		// Handle here for Not Found (Catalogue by the name '@catalogueName' does not exist.)
	}
	else if(appErrorCode  == 3402)
	{
		// Handle here for Bad Request (The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@categoryName' already exists.)
	}
	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 catalogueName = "catalogueName";
String categoryName = "categoryName";
String categoryDescription = "categoryDescription";    
App42Log.SetDebug(true);        //Prints output in your editor console
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
catalogueService.CreateCategory(catalogueName,categoryName,categoryDescription,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    
	public void OnException(Exception e)
	{
		App42Exception ex = (App42Exception)e;
		int appErrorCode = ex.GetAppErrorCode();
        int httpErrorCode = ex.GetHttpErrorCode();
	if(appErrorCode == 3401)
	{
		// Handle here for Not Found (Catalogue by the name '@catalogueName' does not exist.)
	}
	else if(appErrorCode  == 3402)
	{
		// Handle here for Bad Request (The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@categoryName' already exists.)
	}
	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(); 
	}
    
    public void OnSuccess(object response)
    {
		App42Log.Console("Response is :" + response.ToString());
	}
}
Not Available
Coming Soon
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String categoryDescription = "categoryDescription";	
App42API.Initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.BuildCatalogueService(); 
try
{
	Catalogue catalogue = catalogueService.CreateCategory(catalogueName,categoryName,categoryDescription);
}
catch( App42Exception ex )
{
	int appErrorCode = ex.GetAppErrorCode();
	int httpErrorCode = ex.GetHttpErrorCode();
	if(appErrorCode == 3401)
	{
		// Handle here for Not Found (Catalogue by the name '@catalogueName' does not exist.)
	}
	else if(appErrorCode  == 3402)
	{
		// Handle here for Bad Request (The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@categoryName' already exists.)
	}
	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(); 
} 
$catalogueName = "catalogueName";
$categoryName = "categoryName";
$categoryDescription = "categoryDescription";	
App42API::initialize("API_KEY","SECRET_KEY");
$catalogueService = App42API::buildCatalogueService();
try
{
	$catalogue = $catalogueService->createCategory($catalogueName,$categoryName,$categoryDescription);
}
catch(App42Exception $ex )
{
	$appErrorCode = $ex->getAppErrorCode();
	$httpErrorCode = $ex->getHttpErrorCode();
	if($appErrorCode == 3401)
	{
		// Handle here for Not Found (Catalogue by the name '@catalogueName' does not exist.)
	}
	else if($appErrorCode  == 3402)
	{
		// Handle here for Bad Request (The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@categoryName' already exists.)
	}
	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(); 
} 
Coming Soon
Coming Soon
var catalogueName:String = "catalogueName";  
var categoryName:String = "categoryName";
var categoryDescription:String = "Catalogue description"; 
App42API.initialize("API_KEY","SECRET_KEY"); 
var catalogueService:CatalogueService = App42API.buildCatalogueService(); 
catalogueService.createCategory(catalogueName,categoryName,categoryDescription,new callback());
public class callback implements App42CallBack  
{   
	public function onSuccess(response:Object):void  
	{  
		var catalogue:Catalogue = Catalogue(response);
		trace("Response is " + catalogue) 
	}  
	public function onException(exception:App42Exception):void  
	{  
		var appErrorCode:int = exception.getAppErrorCode();  
		var httpErrorCode:int = exception.getHttpErrorCode();  
		if(appErrorCode == 3401)
		{
			// Handle here for Not Found (Catalogue by the name '@catalogueName' does not exist.)
		}
		else if(appErrorCode  == 3402)
		{
			// Handle here for Bad Request (The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@categoryName' already exists.)
		}
		else if(appErrorCode == 1401)
		{
			// handle here for Client is not authorized
		}
		else if(appErrorCode == 1500)
		{
			// handle here for Internal Server Error
		}
	}  	
}  
Coming Soon
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String categoryDescription = "categoryDescription";	
App42API.initialize("API_KEY","SECRET_KEY");
CatalogueService catalogueService = App42API.buildCatalogueService(); 
try
{
	Catalogue catalogue = catalogueService.createCategory(catalogueName,categoryName,categoryDescription);
}
catch( App42Exception ex )
{
	int appErrorCode = ex.getAppErrorCode();
	int httpErrorCode = ex.getHttpErrorCode();
	if(appErrorCode == 3401)
	{
		// Handle here for Not Found (Catalogue by the name '@catalogueName' does not exist.)
	}
	else if(appErrorCode  == 3402)
	{
		// Handle here for Bad Request (The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@categoryName' already exists.)
	}
	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 Catalogue API might throw exceptions with following HTTP and Application Error Codes (along with their descriptions):

1400 - BAD REQUEST - The requested parameters are invalid. 1401 - UNAUTHORIZED - Client is not authorized. 1500 - INTERNAL SERVER ERROR - Internal Server Error. Please try again. 3400 - BAD REQUEST - The request parameters are invalid. Catalogue by the name '@catalogueName' already exists. 3401 - NOT FOUND - Catalogue by the name '@catalogueName' does not exist. 3402 - BAD REQUEST - The request parameters are invalid. Category by the name '@categoryName' for the Catalogue by the name '@catalogueName' already exists. 3403 - NOT FOUND - Category by the name '@categoryName' for the Catalogue by the name '@catalogueName' does not exist. 3404 - BAD REQUEST - The request parameters are invalid. The Item with the id '@itemId' for the Category by the name '@categoryName' and Catalogue by the name '@catalogueName' already exists. 3405 - NOT FOUND - Item with the id '@itemId' for the Category by the name '@categoryName' and Catalogue by the name '@catalogueName' does not exist. 3406 - NOT FOUND - Item with the id '@itemId' does not exist. 3407 - NOT FOUND - The number of items for Category by the name '@categoryName' for Catalogue by the name '@catalogueName' is less than the specified : + "offset".