I'm not sure what's different, but I'm unable to reproduce the issues on Hotcakes 03.00.01 using the example code below.
[code=csharp]using System;
using Hotcakes.CommerceDTO.v1.Client;
namespace ApiSample
{
internal class Program
{
private static void Main(string[] args)
{
Console.WriteLine("This is an API Sample Program for Hotcakes");
Console.WriteLine();
var url = "http://hcc301.loc";
var key = "1-9b2ccf0f-5642-418f-8537-cec3fb876f31";
var proxy = new Api(url, key);
var product = proxy.ProductsFindBySku("TEST0001").Content;
if (product != null)
{
Console.WriteLine("Product was found...");
Console.WriteLine("Attempting delete...");
Console.WriteLine();
try
{
proxy.ProductsDelete(product.Bvin);
Console.WriteLine("GREAT SUCCESS, YES!!");
Console.WriteLine();
}
catch (Exception ex)
{
Console.WriteLine("An error occurred!!!");
Console.WriteLine();
Console.WriteLine(ex.Message);
Console.WriteLine();
}
}
else
{
Console.WriteLine("No product found!");
}
Console.WriteLine("Done - Press a key to continue");
Console.ReadKey();
}
}
}[/code]
Will Strohl, Upendo Ventures
Hotcakes Cloud |
Get Support |
Code Support Official Cloud & Support provider for Hotcakes