Catalogue Management Service

This Service provides a complete cloud based catalogue management. An app can keep all its items based on category on the Cloud. This service provides several utility methods to manage catalogue on the cloud. One can add items with its related information in a particular category. And there can be several categories in a catalogue. The App developer can create several catalogues if needed. The Cart service can be used along with Catalogue service to create an end to end Shopping feature for a Mobile and Web App.

Import Statement

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
import com.shephertz.app42.paas.sdk.android.App42API;
import com.shephertz.app42.paas.sdk.android.App42Response;
import com.shephertz.app42.paas.sdk.android.App42Exception;
import com.shephertz.app42.paas.sdk.android.App42BadParameterException;
import com.shephertz.app42.paas.sdk.android.App42NotFoundException;
import com.shephertz.app42.paas.sdk.android.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 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
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

Initialize

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

Required Parameters

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

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

Build Service

After initialization, developer needs to call the buildXXXService method on App42API to get the instance of the particular API that you wish to build. For example, To build an instance of 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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
CatalogueService catalogueService = App42API.buildCatalogueService(); 
CatalogueService catalogueService = App42API.BuildCatalogueService();  
CatalogueService *catalogueService = [App42API buildCatalogueService]; 
CatalogueService catalogueService = App42API.buildCatalogueService(); 
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

Create Catalogue

Creates 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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
String description = "Catalogue description";    					
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";						
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";
Catalogue *catalogue = [catalogueService createCatalogue:catalogueName catalogueDescription:description]; 
NSLog(@"catalogueName is = %@" catalogue.name);
NSLog(@"catalogueDescription is = %@",catalogue.description);
NSString *jsonResponse = [catalogue toString]; 
String catalogueName = "catalogueName";
String description = "Catalogue description";						
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";						
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
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";						
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";						
$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";						
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";    
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 

Create Category

Creates a Category for a particular Catalogue e.g. Books, Music etc.

Required Parameters
catalogueName - Name of the Catalogue for 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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String description = "description";						
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";						
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";
Catalogue *catalogue = [catalogueService createCategory:catalogueName categoryName:categoryName categoryDescription:description]; 
NSLog(@"catalogueName is = %@" catalogue.name);
NSString *jsonResponse = [catalogue toString]; 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String description = "description";
Catalogue catalogue = catalogueService.createCategory(catalogueName,categoryName,description); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String description = "description";						
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
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";						
Catalogue catalogue = catalogueService.CreateCategory(catalogueName,categoryName,description);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";
$categoryName = "categoryName";
$description = "description";						
$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";						
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"; 
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 

Add Item

Creates a Item in a Category for a particular Catalogue.

Required Parameters
catalogueName - Name of the Catalogue for which item has to be added. categoryName - Name of the Category for which item has to be added. itemData - Item Information that has to be added.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String 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);				
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);				
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;				
Catalogue *catalogue = [catalogueService addItem:catalogueName categoryName:categoryName itemData:itemData]; 
NSLog(@"catalogueName is ",  catalogue.name);
NSString *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);				
Catalogue catalogue = catalogueService.addItem(catalogueName,categoryName,itemData); 
System.out.println("catalogueName is " + catalogue.getName());
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);				
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
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);				
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.");
$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" ;
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");
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 

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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";						
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";					
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";
Catalogue *catalogue = [catalogueService getItems:catalogueName]; 
NSLog(@"catalogueName is = %@" catalogue.name);
NSString *jsonResponse = [catalogue toString]; 
String catalogueName = "catalogueName";
Catalogue catalogue = catalogueService.getItems(catalogueName); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
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
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";
Catalogue catalogue = catalogueService.getItems(catalogueName);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";					
$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";					
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"; 
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 

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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
String categoryName = "categoryName";
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";					
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";
Catalogue *catalogue = [catalogueService getItemsByCategory:catalogueName categoryName:categoryName]; 
NSLog(@"catalogueName is = %@" catalogue.name);
NSString *jsonResponse = [catalogue toString]; 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
Catalogue catalogue = catalogueService.getItemsByCategory(catalogueName,categoryName); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
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
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";
Catalogue catalogue = catalogueService.GetItemsByCategory(catalogueName,categoryName);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";	
$categoryName = "categoryName";				
$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";
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";
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 

Get Items By Category Count

Fetches 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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName  = "catalogueName ";
String categoryName  = "categoryName";
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";
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";
App42Response *response = [catalogueService getItemsCountByCategory:catalogueName categoryName:categoryName]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                         
String catalogueName  = "catalogueName ";
String categoryName  = "categoryName";
App42Response response = catalogueService.getItemsCountByCategory(catalogueName, categoryName); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
String catalogueName  = "catalogueName ";
String categoryName  = "categoryName";
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
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";
App42Response response = catalogueService.GetItemsCountByCategory(catalogueName, categoryName); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName  = "catalogueName ";
$categoryName  = "categoryName";
$response = $catalogueService->getItemsCountByCategory($catalogueName, $categoryName); 
print_r("Total Records ".$response->getTotalRecords());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
catalogueName = "catalogueName";
categoryName = "categoryName";						
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";
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 

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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
String categoryName = "categoryName";
int max = 1;
int offset = 0 ;
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 ;				
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 ;
Catalogue *catalogue = [catalogueService getItemsByCategory:catalogueName categoryName:categoryName max:max offset:offset]; 
NSLog(@"catalogueName is = %@" catalogue.name);
NSString *jsonResponse = [catalogue toString]; 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
Integer max = new Integer(1);
Integer offset = new Integer(0);  
Catalogue catalogue = catalogueService.getItemsByCategory(catalogueName,categoryName,max,offset); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
int max = 1;
int offset = 0 ;
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
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 ;
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 ;			
$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;						
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;
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 

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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
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";	
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";
Catalogue *catalogue = [catalogueService getItemById:catalogueName categoryName:categoryName itemId:itemId]; 
NSLog(@"catalogueName is = %@" catalogue.name);
NSString *jsonResponse = [catalogue toString]; 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
Catalogue catalogue = catalogueService.getItemById(catalogueName,categoryName,itemId); 
System.out.println("catalogueName is " + catalogue.getName());
String jsonResponse = catalogue.toString();
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
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
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";
Catalogue catalogue = catalogueService.GetItemById(catalogueName,categoryName,itemId);
Console.WriteLine("catalogueName is " + catalogue.GetName()); 
String jsonResponse = catalogue.ToString();
$catalogueName = "catalogueName";	
$categoryName = "categoryName";	
$itemId = "itemId";	
$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";						
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";
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 

Remove All Items

Removes 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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
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"; 
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"; 
App42Response *response = [catalogueService removeAllItems:catalogueName]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                             
String catalogueName = "catalogueName";
App42Response response = catalogueService.removeAllItems(catalogueName); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
String catalogueName = "catalogueName";
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
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";
App42Response response = catalogueService.RemoveAllItems(catalogueName); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName = "catalogueName";
$response = $catalogueService->removeAllItems($catalogueName); 
print_r("Response is ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
catalogueName = catalogueName;						
response = catalogue_service.remove_all_items(catalogueName);
success = response.is_response_success();
json_response = catalogue.to_s();
var catalogueName:String = "catalogueName";
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 

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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
String categoryName = "categoryName";
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";
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"; 
App42Response *response = [catalogueService removeItemsByCategory:catalogueName categoryName:categoryName]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                             
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42Response response = catalogueService.removeItemsByCategory(catalogueName,categoryName); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
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
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";
App42Response response = catalogueService.RemoveItemsByCategory(catalogueName,categoryName); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName = "catalogueName";
$categoryName = "categoryName";
$response = $catalogueService->removeItemsByCategory($catalogueName,$categoryName); 
print_r("Response is : ".$response->toString());
$success = $response->isResponseSuccess();
$jsonResponse = $response->toString(); 
Coming Soon
catalogueName = "catalogueName";
categoryName = "categoryName";						
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";
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 

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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
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";
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"; 
App42Response *response = [catalogueService removeItemById:catalogueName categoryName:categoryName itemId:itemId]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                             
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
App42Response response = catalogueService.removeItemById(catalogueName,categoryName,itemId); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String itemId = "itemId";
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
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";
App42Response response = catalogueService.RemoveItemById(catalogueName,categoryName,itemId); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName = "catalogueName";
$categoryName = "categoryName";
$itemId = "itemId";
$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";						
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";
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 

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 be removed.

  • create User Api for Android
  • create User Api for Windows
  • create User Api for iOS
  • create User Api for J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
String categoryName = "categoryName";
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";
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();  
	}  
}  
NSString *catalogueName = @"catalogueName"; 
NSString *categoryName = @"categoryName"; 
App42Response *response = [catalogueService deleteCategory:catalogueName categoryName:categoryName]; 
NSString *success = response.isResponseSuccess;
NSString *jsonResponse = [response toString];                             
String catalogueName = "catalogueName";
String categoryName = "categoryName";
App42Response response = catalogueService.deleteCategory(catalogueName,categoryName); 
boolean  success = response.isResponseSuccess();
String jsonResponse = response.toString(); 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
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
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";
App42Response response = catalogueService.DeleteCategory(catalogueName,categoryName); 
Boolean  success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); 
$catalogueName = "catalogueName";
$categoryName = "categoryName";
$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";
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 

Exception Handling

The functions available under Catalogue API can throw some exceptions in abnormal conditions. An example of the same has been given below. E.g. If an App 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 J2ME
  • create User Api for Java
  • create User Api for Unity
  • create User Api for JS
  • create User Api for Corona
  • create User Api for Cocos2DX
  • create User Api for .Net
  • create User Api for PHP
  • create User Api for Marmalade
  •  create User Api for Ruby
  •  create User Api for Flash
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String categoryDescription = "categoryDescription";	
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";	
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";
@try
{
	Catalogue *catalogue = [catalogueService createCategory:catalogueName categoryName:categoryName categoryDescription:categoryDescription];
} @catch(App42Exception *ex) {
	int appErrorCode = ex.appErrorCode;
	int httpErrorCode = ex.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 = ex.reason; 
} 
String catalogueName = "catalogueName";
String categoryName = "categoryName";
String categoryDescription = "categoryDescription";	
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";	
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
catalogueService.CreateCategory(catalogueName,categoryName,categoryDescription,new UnityCallBack()); 
public class UnityCallBack : App42CallBack
{
    
	public void OnException(Exception 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(); 
	}
    
    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";	
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";	
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"; 
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

Error Codes

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

1400 - BAD REQUEST - The Request parameters are invalid. 1401 - UNAUTHORIZED - Client is not authorized. 1500 - INTERNAL SERVER ERROR - Internal Server Error. Please try again. 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".