String catalogueName = "CatalogueName01"; String catalogueDescription = "CatalogueName"; App42Callback requestCallback = this; /* This function used the App42Callback interface */ ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.BuildCatalogueService(); catalogueService.CreateCatalogue(catalogueName,catalogueDescription,requestCallback); OnSuccess(Object obj) { Catalogue catalogue = (Catalogue) obj; String jsonResponse = catalogue.ToString(); } public class CallBack : App42Callback { public override void OnSuccess(Object obj) { Catalogue catalogue = (Catalogue) obj; //Do whatever you want with the object } public override void OnException(App42Exception e) { //Do whatever you want with the exception } }
String catalogueName = "CatalogueName01"; String catalogueDescription = "CatalogueName"; ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.buildCatalogueService(); Catalogue catalogue = catalogueService.createCatalogue(catalogueName,catalogueDescription); String jsonResponse = catalogue.toString();
String catalogueName = "CatalogueName01"; String catalogueDescription = "CatalogueName"; ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.buildCatalogueService(); Catalogue catalogue = catalogueService.createCatalogue(catalogueName,catalogueDescription); String jsonResponse = catalogue.toString();
NSString *catalogueName = @"CatalogueName01"; String catalogueDescription = "CatalogueName"; serviceAPIObj.apiKey = @"<API_KEY>"; serviceAPIObj.secretKey = @"<SECRET_KEY>"; CatalogueService *catalogueService = [serviceAPIObj buildCatalogueService]; Catalogue *catalogue = [catalogueService createCatalogue:catalogueName catalogueDescription:catalogueDescription]; NSString *jsonResponse = [catalogue toString];
String catalogueName = "CatalogueName01"; String catalogueDescription = "CatalogueName"; ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.buildCatalogueService(); Catalogue catalogue = catalogueService.createCatalogue(catalogueName,catalogueDescription); String jsonResponse = catalogue.toString();
String catalogueName = "CatalogueName01"; String catalogueDescription = "CatalogueName"; ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.BuildCatalogueService(); Catalogue catalogue = catalogueService.CreateCatalogue(catalogueName,catalogueDescription); String jsonResponse = catalogue.ToString();
catalogueName = "CatalogueName01"; catalogueDescription = "CatalogueName"; api = App42::ServiceAPI.new("<API_KEY>","<SECRET_KEY>") catalogueService = api.buildCatalogueService(); catalogue = catalogueService.create_catalogue(catalogueName,catalogueDescription); jsonResponse = catalogue.to_s();
The request format for createCatalogue is URL : https://api.shephertz.com/cloud/1.0/catalogue Method : POST QueryParam : apiKey=<apiKey>&signature=<signature>&version=<version>×tamp=<UTC_FORMATED_TIME_STAMP> Accept : application/json Content-Type : application/json Body : {"app42": {"catalogue": {"name": "CatalogueName01","description": "Catalogue Description"}}}
Coming Soon...
$catalogueName = "CatalogueName01"; $catalogueDescription = "CatalogueName"; $api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); $catalogueService = $api->buildCatalogueService(); $catalogue = $catalogueService->createCatalogue($catalogueName,$catalogueDescription); $jsonResponse = $catalogue->toString();
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); App42Callback requestCallback = this; /* This function used the App42Callback interface */ ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.BuildCatalogueService(); catalogueService.AddItem(catalogueName,categoryName,itemData,requestCallback); OnSuccess(Object obj) { Catalogue catalogue = (Catalogue) obj; String jsonResponse = catalogue.ToString(); } public class CallBack : App42Callback { public override void OnSuccess(Object obj) { Catalogue catalogue = (Catalogue) obj; //Do whatever you want with the object } public override void OnException(App42Exception e) { //Do whatever you want with the exception } }
String catalogueName = "CatalogueName01"; String categoryName = "CategoryName01"; ItemData itemData = new ItemData(); itemData.setDescription("ItemDescription01"); itemData.setImage(null); /* get inputStream from your source. */ itemData.setItemId("ItemId01"); itemData.setName("ItemName01"); itemData.setPrice(200); ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.buildCatalogueService(); Catalogue catalogue = catalogueService.addItem(catalogueName,categoryName,itemData); String jsonResponse = catalogue.toString();
String catalogueName = "CatalogueName01"; String categoryName = "CategoryName01"; ItemData itemData = new ItemData(); itemData.setDescription("Pic"); itemData.setImage("Your local image path."); itemData.setItemId("abc1234007"); itemData.setName("Item"); itemData.setPrice(20.0); ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.buildCatalogueService(); Catalogue catalogue = catalogueService.addItem(catalogueName,categoryName,itemData); String jsonResponse = catalogue.toString();
NSString *catalogueName = @"CatalogueName01"; NSString *categoryName = @"CategoryName01"; 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; serviceAPIObj.apiKey = @"<API_KEY>"; serviceAPIObj.secretKey = @"<SECRET_KEY>"; CatalogueService *catalogueService = [serviceAPIObj buildCatalogueService]; Catalogue *catalogue = [catalogueService addItem:catalogueName categoryName:categoryName itemData:itemData]; NSString *jsonResponse = [catalogue toString];
String catalogueName = "CatalogueName01"; String categoryName = "CategoryName01"; ItemData itemData = new ItemData(); itemData.setDescription("Pic"); itemData.setImage("C:/Flowers.jpg"); itemData.setItemId("abc1234007"); itemData.setName("Item"); itemData.setPrice(20.0); ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.buildCatalogueService(); Catalogue catalogue = catalogueService.addItem(catalogueName,categoryName,itemData); String jsonResponse = catalogue.toString();
String catalogueName = "CatalogueName01"; String categoryName = "CategoryName01"; ItemData itemData = new ItemData(); itemData.SetDescription("Pic"); itemData.SetImage("Local File Path"); itemData.SetItemId("abc1234007"); itemData.SetName("Item"); itemData.SetPrice(20.0); ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.BuildCatalogueService(); Catalogue catalogue = catalogueService.AddItem(catalogueName,categoryName,itemData); String jsonResponse = catalogue.ToString();
catalogueName = "CatalogueName01"; categoryName = "CategoryName01"; itemData = App42::Shopping::ItemData.new(); itemData.itemId="itemId01"; itemData.description="ItemDescription01"; itemData.name="ItemName01"; itemData.price="200"; itemData.image="your local image path" ; api = App42::ServiceAPI.new("<API_KEY>","<SECRET_KEY>") catalogueService = api.buildCatalogueService(); catalogue = catalogueService.add_item(catalogueName,categoryName,itemData); jsonResponse = catalogue.to_s();
The request format for addItem is URL : https://api.shephertz.com/cloud/1.0/catalogue/{catalogueName}/{categoryName}/item Method : MULTIPART QueryParam : apiKey=<apiKey>&signature=<signature>&version=<version>×tamp=<UTC_FORMATED_TIME_STAMP> Accept : application/json Content-Type : application/json
Coming Soon...
$catalogueName = "CatalogueName01"; $categoryName = "CategoryName01"; $itemData = new ItemData(); $itemData->setItemId("ItemId01"); $itemData->setDescription("ItemDescription01"); $itemData->setName("ItemName01"); $itemData->setPrice(200); $itemData->setImage("your local image path."); $api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); $catalogueService = $api->buildCatalogueService(); $catalogue = $catalogueService->addItem($catalogueName,$categoryName,$itemData); $jsonResponse = $catalogue->toString();
String catalogueName = "CatalogueName01"; App42Callback requestCallback = this; /* This function used the App42Callback interface */ ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.BuildCatalogueService(); catalogueService.GetItems(catalogueName,requestCallback); OnSuccsess(Object obj) { Catalogue catalogue = (Catalogue) obj; String jsonResponse = catalogue.ToString(); } public class CallBack : App42Callback { public override void OnSuccess(Object obj) { Catalogue catalogue = (Catalogue) obj; //Do whatever you want with the object } public override void OnException(App42Exception e) { //Do whatever you want with the exception } }
String catalogueName = "CatalogueName01"; ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.buildCatalogueService(); Catalogue catalogue = catalogueService.getItems(catalogueName); String jsonResponse = catalogue.toString();
String catalogueName = "CatalogueName01"; ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.buildCatalogueService(); Catalogue catalogue = catalogueService.getItems(catalogueName); String jsonResponse = catalogue.toString();
NSString *catalogueName = @"CatalogueName01"; serviceAPIObj.apiKey = @"<API_KEY>"; serviceAPIObj.secretKey = @"<SECRET_KEY>"; CatalogueService *catalogueService = [serviceAPIObj buildCatalogueService]; Catalogue *catalogue = [catalogueService getItems:catalogueName]; NSString *jsonResponse = [catalogue toString];
String catalogueName = "CatalogueName01"; ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.buildCatalogueService(); Catalogue catalogue = catalogueService.getItems(catalogueName); String jsonResponse = catalogue.toString();
String catalogueName = "CatalogueName01"; ServiceAPI api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); CatalogueService catalogueService = api.BuildCatalogueService(); Catalogue catalogue = catalogueService.GetItems(catalogueName); String jsonResponse = catalogue.ToString();
catalogueName = "CatalogueName01"; api = App42::ServiceAPI.new("<API_KEY>","<SECRET_KEY>") catalogueService = api.buildCatalogueService(); catalogue = catalogueService.get_items(catalogueName); jsonResponse = catalogue.to_s();
The request format for getItems is URL : https://api.shephertz.com/cloud/1.0/catalogue/{catalogueName} Method : GET QueryParam : apiKey=<apiKey>&signature=<signature>&version=<version>×tamp=<UTC_FORMATED_TIME_STAMP> Accept : application/json Content-Type : application/json
Coming Soon...
$catalogueName = "CatalogueName01"; $api = new ServiceAPI("<API_KEY>","<SECRET_KEY>"); $catalogueService = $api->buildCatalogueService(); $catalogue = $catalogueService->getItems($catalogueName); $jsonResponse = $catalogue->toString();