App42 Cloud API

Windows Phone Cloud SDK

Catalogue

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

In order to use the various functions available under a particular API, a developer will have to create an instance of ServiceAPI by passing the apiKey and the secretKey which has been received while creating an app.

ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>");   

After initialization, developer needs to call the BuildXXXService method on ServiceAPI instance 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.

	CatalogueService catalogueService = api.BuildCatalogueService();

Once the API instance has been retrieved, You are ready to use the functions available for that particular API.

The Windows Phone API's work in an asynchronous mode that means the response will not be available immediately and all the API methods would not return any value and have return type as void. The response will be returned in callback methods which the caller will provide to the calling method.
As mentioned above that the response will be returned in callback methods, every API method is taking instance of App42Callback (as the last parameter) which will have the implementation of 2 methods: OnSuccess & OnException.(as shown below)

public class CallBack : App42Callback
{
public override void OnSuccess(Object obj)
{
	Catalogue catalogue = (Catalogue) obj;
	//Do whatever you want with the user object
}
public override void OnException(App42Exception e)
{
	//Do whatever you want with the exception
}
}

The callback methods will return the response in the form of Object which will have to be type cast to the object domain object (e.g. App42Response / Catalogue in this case) The Domain object have the accessor / mutator to access the available properties for that object. You can get the response in the form of JSON as well. We have provided the JSON response with every function detail which can be retrieved by calling the ToString() on the returned object.

public override void OnSuccess(Object obj)
{
Catalogue catalogue = (Catalogue) obj;
Console.WriteLine("userName is " + catalogue.GetName());
Console.WriteLine(("emailId is " + catalogue.GetDescription());
String jsonResponse = catalogue.ToString(); /* returns the response in JSON format. */ 
}

The functions available under Catalogue API can throw some exceptions in abnormal conditions. Example of the same has been given below.

E.g. If App developer is creating a category under the catalogue which is not in database, the function will throw the App42Exception (as shown below) with message as "Not Found" and the appErrorCode as "3401" and the details as "Catalogue by the name '<catalogueName>' does not exist".

public override void OnException(App42Exception ex)
{
int appErrorCode = ex.GetAppErrorCode();
int httpErrorCode = ex.GetHttpErrorCode();
String jsonText = ex.GetMessage(); /* returns the Exception text in JSON format. (as shown below)*/	
}
                            
	{
		"app42Fault": {
			"httpErrorCode": 404,
			"appErrorCode": 3401,
			"message": "Not Found",
			"details": "Catalogue by the name 'CatalogueName01' does not exist"
		}
	}

Below are the HTTP Error Codes and their description, the function under the Catalogue API can throw.

							
/*
1400 - BAD REQUEST - The Request parameters are invalid
1401 - UNAUTHORIZED - Client is not authorized
1500 - INTERNAL SERVER ERROR - Internal Server Error. Please try again	
*/						

Below are the Application Error Codes and their description, the function under the Catalogue API can throw.

/*
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. 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>' are less than the specified offset : <offset>.
*/								

Various functions available under Catalogue API has been explained below.

public Catalogue CreateCatalogue(String catalogueName,String catalogueDescription,App42Callback requestCallback)

Creates a Catalogue for a particular App. Categories can be added to the Catalogue.

Parameters:

catalogueName - Name of the Catalogue to be created
catalogueDescription - Description of the catalogue to be created
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

Catalogue object

Response: Catalogue Object

Exception:

This method throws following exception.
/*
3400 - BAD REQUEST - The request parameters are invalid. Catalogue by the name '<catalogueName>' already exists.
*/ 			  
        
For more details click Exception
String catalogueName = "CatalogueName01";
String catalogueDescription = "CatalogueName";

catalogueService.CreateCatalogue(catalogueName,catalogueDescription,requestCallback); /* returns the Catalogue object. */ 
OnSuccess(Object obj){
Catalogue catalogue = (Catalogue) obj;
Console.WriteLine("name is " + catalogue.GetName());
Console.WriteLine("description is " + catalogue.GetDescription());
String jsonResponse = catalogue.ToString(); /* returns the response in JSON format. (as shown below)*/
}
                            
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "CatalogueName01",
                    "description": "CatalogueName"
                }
            }
        }
    }
}
public void CreateCategory(String catalogueName, String categoryName,String categoryDescription, App42Callback requestCallback)

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

Parameters:

catalogueName - Name of the Catalogue for which Category has to be created
categoryName - Name of the Category that has to be created
categoryDescription - Description of the category to be created
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

Catalogue object containing created category information

Response: Catalogue Object

Exception:

This method throws following exception.
/*
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.
*/ 		      
For more details click Exception
String catalogueName = "CatalogueName01";
String categoryName = "CategoryName01";
String categoryDescription = "CategoryDescription";

catalogueService.CreateCategory(catalogueName,categoryName,categoryDescription,requestCallback); /* returns the Catalogue object. */ 
OnSuccess(Object obj){
Catalogue catalogue = (Catalogue) obj;
String name = catalogue.GetName();  
IList <Catalogue.Category> categoryList = catalogue.GetCategoryList();
for(int i = 0; i < categoryList.Count; i++)  
{        
Console.WriteLine("name is " +categoryList[i].GetName());
Console.WriteLine("description is " + categoryList[i].GetDescription());			
}
String jsonResponse = catalogue.ToString(); /* returns the response in JSON format. (as shown below)*/
}
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "CatalogueName01",
                    "categories": {
                        "category": {
                            "name": "CategoryName01",
                            "description": "CategoryDescription"
                        }
                    }
                }
            }
        }
    }
}
public void AddItem(String catalogueName, String categoryName, ItemData itemData, App42Callback requestCallback)

Creates a Item in a Category for a particular Catelogue.

Parameters:

catalogueName - Name of the Catalogue to which item has to be added
categoryName - Name of the Category to which item has to be added
itemData - Item Information that has to be added
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

Catalogue object containing added item.

Response: Catalogue Object

Exception:

This method throws following exception.
/*
3401 - NOT FOUND - Catalogue by the name '<catalogueName>' does not exist.
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. Item with the id '<itemId>' for the Category by the name '<categoryName>' and Catalogue by the name '<catalogueName>' already exists.
*/  		 
For more details click Exception
String catalogueName = "CatalogueName01";
String categoryName = "CategoryName01";
ItemData itemData = new ItemData();	
itemData.setDescription("ItemDescription01");
itemData.setImage(Stream stream);
itemData.setItemId("ItemId01");
itemData.setName("ItemName01");
itemData.setPrice(200);

catalogueService.AddItem(catalogueName,categoryName,itemData,requestCallback); /* returns the Catalogue object. */ 
OnSuccess(Object obj){
Catalogue catalogue = (Catalogue) obj;
String name =  catalogue.GetName();
IList <Catalogue.Category> categoryList = catalogue.GetCategoryList();
for(int i = 0; i < categoryList.Count; i++)  
{  
Console.WriteLine("name is " + categoryList[i].GetName());
Console.WriteLine("description is " + categoryList[i].GetDescription());
IList<Catalogue.Category.Item>  itemList = categoryList[i].GetItemList();
for (int j = 0; j < itemList.Count; j++)
{
Console.WriteLine("price is " + itemList[j].getPrice());
Console.WriteLine("itemId is " + itemList[j].getItemId());
Console.WriteLine("name is " + itemList[j].getName());
}
}
String jsonResponse = catalogue.ToString(); /* returns the response in JSON format. (as shown below)*/
}
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "CatalogueName01",
                    "categories": {
                        "category": {
                            "name": "CategoryName01",
                            "items": {
                                "item": {
                                    "itemId": "ItemId01",
                                    "name": "ItemName01",
                                    "description": "ItemDescription01",
                                    "url": "http://XXXXX.jpg",
                                    "tinyUrl": "http://tinyurl.com/cgjm9c7",
                                    "price": 200
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
public void GetItems(String catalogueName, App42Callback requestCallback)

Fetches all items for a Catalogue.

Parameters:

catalogueName - Name of the Catalogue from which item has to be fetched
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

Catalogue object containing all Items

Response: Catalogue Object

Exception:

This method throws following exception.
/*
3401 - NOT FOUND - Catalogue by the name '<catalogueName>' does not exist.
*/ 		       
For more details click Exception
String catalogueName = "CatalogueName01";
						
Catalogue catalogue = catalogueService.GetItems(catalogueName,requestCallback); /* returns the Catalogue object. */ 
OnSuccsess(Object obj){
Catalogue catalogue = (Catalogue) obj;
String name =  catalogue.GetName();
IList<Catalogue.Category> categoryList = catalogue.GetCategoryList();
for(int i = 0; i < categoryList.Count; i++)  
{  
Console.WriteLine("name is " + categoryList[i].GetName());
Console.WriteLine("description is " + categoryList[i].GetDescription());
IList<Catalogue.Category.Item>  itemList = categoryList[i].GetItemList();
for (int j = 0; j < itemList.Count; j++)
{
Console.WriteLine("price is " + itemList[j].getPrice());
Console.WriteLine("itemId is " + itemList[j].getItemId());
Console.WriteLine("name is " + itemList[j].getName());
}
}
String jsonResponse = catalogue.ToString(); /* returns the response in JSON format. (as shown below)*/
}
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "CatalogueName01",
                    "categories": {
                        "category": {
                            "name": "CategoryName01",
                            "items": {
                                "item": [
                                    {
                                        "itemId": "ItemId01",
                                        "name": "ItemName01",
                                        "description": "ItemDescription01",
                                        "url": "http://XXXXX.jpg",
                                        "tinyUrl": "http://tinyurl.com/bqhj3c9",
                                        "price": 200
                                    },
                                    {
                                        "itemId": "Item4",
                                        "name": "ItemName02",
                                        "description": "Description",
                                        "url": "http://XXXXX.jpg",
                                        "tinyUrl": "http://tinyurl.com/cbhorhl",
                                        "price": 20
                                    }
                                ]
                            }
                        }
                    }
                }
            }
        }
    }
}
public void GetItemsByCategory(String catalogueName, String categoryName, App42Callback requestCallback)

Fetches all items for a Catalogue and Category.

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
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

Catalogue object

Response: Catalogue Object

Exception:

This method throws following exception.
/*
3401 - NOT FOUND - Catalogue by the name '<catalogueName>' does not exist.
3403 - NOT FOUND - Category by the name '<categoryName>' for the Catalogue by the name '<catalogueName>' does not exist.
*/  		        
For more details click Exception
String catalogueName = "CatalogueName01";
String categoryName = "CategoryName01";	

Catalogue catalogue = catalogueService.GetItemsByCategory(catalogueName,categoryName,requestCallback); /* returns the Catalogue object. */ 
OnSuccess(Object obj){
Catalogue catalogue =(Catalogue) obj;
String name =  catalogue.GetName();
IList <Catalogue.Category> categoryList = catalogue.GetCategoryList();
for(int i = 0; i < categoryList.Count; i++)  
{  
Console.WriteLine("name is " + categoryList[i].GetName());
Console.WriteLine("description is " + categoryList[i].GetDescription());
IList<Catalogue.Category.Item>  itemList = categoryList[i].GetItemList();
for (int j = 0; j < itemList.Count; j++)
{
Console.WriteLine("price is " + itemList[j].getPrice());
Console.WriteLine("itemId is " + itemList[j].getItemId());
Console.WriteLine("name is " + itemList[j].getName());
}
}
String jsonResponse = catalogue.ToString(); /* returns the response in JSON format. (as shown below)*/
}
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "CatalogueName01",
                    "categories": {
                        "category": {
                            "name": "CategoryName01",
                            "items": {
                                "item": [
                                    {
                                        "itemId": "ItemId01",
                                        "name": "ItemName01",
                                        "description": "ItemDescription01",
                                        "url": "http://XXXXX.jpg",
                                        "tinyUrl": "http://tinyurl.com/brrh7dr",
										"price": 200
                                    },
                                    {
                                        "itemId": "Item4",
                                        "name": "ItemName02",
                                        "description": "Description",
                                        "url": "http://XXXXX.jpg",
                                        "tinyUrl": "http://tinyurl.com/berc7dr",
										"price": 20
                                    }
                                ]
                            }
                        }
                    }
                }
            }
        }
    }
}

public void GetItemsCountByCategory(String catalogueName, String categoryName, App42Callback requestCallback)

Fetches count of all items for a Catalogue and Category

Parameters:

catalogueName - Name of the Catalogue from which item has to be fetched
categoryNmae - Name of the Category from which item has to be fetched
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

App42Response object

Response: App42Response Object

Exception:

This method throws following exception.
/*
3401 - NOT FOUND - Catalogue by the name '<catalogueName>' does not exist.
3403 - NOT FOUND - Category by the name '<categoryName>' for the Catalogue by the name '<catalogueName>' does not exist.
*/		       
For more details click Exception
String catalogueName = "CatalogueName01";
String categoryName = "CategoryName01";

catalogueService.GetItemsCountByCategory(catalogueName,categoryName,requestCallback); /* returns the App42Response object. */ 
OnSuccess(Object obj){
App42Response response = (App42Response) obj;
Boolean success = response.IsResponseSuccess();
int totalRecords = response.GetTotalRecords();
String jsonResponse = response.ToString(); /* returns the response in JSON format. (as shown below)*/
}
{
    "app42": {
        "response": {
            "success": true,
            "totalRecords": 3
        }
    }
}
public void GetItemsByCategory(String catalogueName, String categoryName,int max ,int offset, App42Callback requestCallback)

Fetches all items for a Catalogue and Category by paging.

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
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

Catalogue object

Response: Catalogue Object

Exception:

This method throws following exception.
/*
3401 - NOT FOUND - Catalogue by the name '<catalogueName>' does not exist.
3403 - NOT FOUND - Category by the name '<categoryName>' for the Catalogue by the name '<catalogueName>' does not exist.
3407 - NOT FOUND - The number of items for category by the name '<categoryName>' for Catalogue by the name '<catalogueName>' are less than the specified offset : <offset>.
*/  		       
For more details click Exception
String catalogueName = "catalogueName12341338890353836";
String categoryName = "categoryName21341338890353836";
int max = 1;
int offset = 0;

Catalogue catalogue = catalogueService.GetItemsByCategory(catalogueName,categoryName,max,offset,requestCallback); /* returns the Catalogue object. */   
OnSuccess(Object obj){
Catalogue catalogue = (Catalogue) obj;
String name =  catalogue.GetName();  
IList <Catalogue.Category> categoryList = catalogue.GetCategoryList();  
for(int i = 0; i < categoryList.Count; i++)  
{  
Console.WriteLine("name is " + categoryList[i].GetName());
Console.WriteLine("description is " + categoryList[i].GetDescription());
IList<Catalogue.Category.Item>  itemList = categoryList[i].GetItemList();
for (int j = 0; j < itemList.Count; j++)
{
	Console.WriteLine("price is " + item.getPrice());
	Console.WriteLine("itemId is " + item.getItemId());
	Console.WriteLine("name is " + item.getName());
}
}
} 
String jsonResponse = catalogue.ToString(); /* returns the response in JSON format. (as shown below)*/                         
}
     
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "catalogueName12341338890353836",
                    "categories": {
                        "category": {
                            "name": "categoryName21341338890353836",
                            "items": {
                                "item": {
                                    "itemId": "iiiiiiiii",
                                    "name": "Item",
                                    "description": "Description 1",
                                    "url": "http://XXXXX.jpg",
                                    "price": 20
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
public void GetItemById(String catalogueName, String categoryName, String itemId, App42Callback requestCallback)

Fetches Item by id for a Catalogue and Category.

Parameters:

catalogueName - Name of the catalogue
categoryNmae - Name of the category
itemId - item id for which information has to be fetched
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

Catalogue object

Response: Catalogue Object

Exception:

This method throws following exception.
/*
3401 - NOT FOUND - Catalogue by the name '<catalogueName>' does not exist.
3403 - NOT FOUND - Category by the name '<categoryName>' for the Catalogue by the name '<catalogueName>' does not exist.
3405 - NOT FOUND - Item with the id '<itemId>' for the Category by the name '<categoryName>' and Catalogue by the name '<catalogueName>' does not exist.
*/ 		      
For more details click Exception
String catalogueName = "CatalogueName01";
String categoryName = "CategoryName01";
String itemId = "ItemId01";

Catalogue catalogue = catalogueService.GetItemsById(catalogueName,categoryName,itemId,requestCallback); /* returns the Catalogue object. */ 
OnSuccess(Object obj){
Catalogue catalogue = (Catalogue) obj;
String name =  catalogue.GetName();
IList <Catalogue.Category> categoryList = catalogue.GetCategoryList();
for(int i = 0; i < categoryList.Count; i++)  
{  
Console.WriteLine("name is " + categoryList[i].GetName());
Console.WriteLine("description is " + categoryList[i].GetDescription());
IList<Catalogue.Category.Item>  itemList = categoryList[i].GetItemList();
for (int j = 0; j < itemList.Count; j++)
{
	Console.WriteLine("price is " + itemList[j].getPrice());
	Console.WriteLine("itemId is " + itemList[j].getItemId());
	Console.WriteLine("name is " + itemList[j].getName());
}
}
String jsonResponse = catalogue.ToString(); /* returns the response in JSON format. (as shown below)*/
}
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "CatalogueName01",
                    "categories": {
                        "category": {
                            "name": "CategoryName01",
                            "items": {
                                "item": {
                                    "itemId": "ItemId01",
                                    "name": "ItemName01",
                                    "description": "ItemDescription01",
                                    "url": "http://XXXXX.jpg",
                                    "price": 200
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

public void RemoveAllItems(String catalogueName, App42Callback requestCallback)

Removes all Items in a Catalogue.

Parameters:

catalogueName - Name of the Catalogue from which item has to be removed
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

App42Response if removed successfully

Response: App42Response Object

Exception:

This method throws following exception.
/*
3401 - NOT FOUND - Catalogue by the name '<catalogueName>' does not exist.
*/ 	       
For more details click Exception
catalogueService.RemoveAllItems(catalogueName,requestCallback); /* returns the App42Response object. */ 
OnSuccess(Object obj){
Catalogue catalogue = (Catalogue) obj;
App42Response response = (App42Response) catalogue;
Boolean success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); /* returns the response in JSON format. (as shown below)*/
}
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "CatalogueName01",
                    "description": "CatalogueName"
                }
            }
        }
    }
}
public void RemoveItemsByCategory(String catalogueName, String categoryName, App42Callback requestCallback)

Removes all Items from a Catalogue and Category.

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
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

App42Response if removed successfully

Response: App42Response Object

Exception:

This method throws following exception.
/*
3401 - NOT FOUND - Catalogue by the name '<catalogueName>' does not exist.
3403 - NOT FOUND - Category by the name '<categoryName>' for the Catalogue by the name '<catalogueName>' does not exist.
*/ 	        
For more details click Exception
String catalogueName = "CatalogueName01";
String categoryName = "CategoryName01";	

catalogueService.RemoveItemsByCategory(catalogueName,categoryName,requestCallback); /* returns the App42Response object. */ 
OnSuccess(Object obj)
{
App42Response response = (App42Response) obj;
Boolean success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); /* returns the response in JSON format. (as shown below)*/
}
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "CatalogueName01",
                    "categories": {
                        "category": {
                            "name": "CategoryName01",
                            "items": {
                                "item": {
                                    "itemId": "Item4",
                                    "name": "ItemName02",
                                    "description": "Description",
                                    "url": "http://XXXXX.jpg",
                                    "tinyUrl": "http://tinyurl.com/cwzuxpc",
                                    "price": 20
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
public void RemoveItemById(String catalogueName, String categoryName, String itemId, App42Callback requestCallback)

Removes Item by Id.

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
requestCallback - Callback instance that will have the implementation of OnSuccess & OnException of App42Callback.

Returns:

App42Response if removed successfully

Response: App42Response Object

Exception:

This method throws following exception.
/*
3401 - NOT FOUND - Catalogue by the name '<catalogueName>' does not exist.
3403 - NOT FOUND - Category by the name '<categoryName>' for the Catalogue by the name '<catalogueName>' does not exist.
3406 - NOT FOUND - Item with the id '<itemId>' does not exist.
*/ 		       
For more details click Exception
String catalogueName = "CatalogueName01";
String categoryName = "CategoryName01";
String itemId =	"ItemId01";

catalogueService.RemoveItemById(catalogueName,categoryName,itemId,requestCallback); /* returns the App42Response object. */ 
OnSuccess(Object obj)
{
App42Response response = (App42Response) obj;
Boolean success = response.IsResponseSuccess();
String jsonResponse = response.ToString(); /* returns the response in JSON format. (as shown below)*/
}
{
    "app42": {
        "response": {
            "success": true,
            "catalogues": {
                "catalogue": {
                    "name": "CatalogueName01",
                    "categories": {
                        "category": {
                            "name": "CategoryName01",
                            "items": {
                                "item": {
                                    "itemId": "ItemId01",
                                    "name": "ItemName01",
                                    "description": "ItemDescription01",
                                    "url": "http://XXXXX.jpg",
                                    "tinyUrl": "http://tinyurl.com/c3gd7om",
                                    "price": 200
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}