public ShopifyResponse<ShopifyProduct> GetProduct(ShopifyStoreAuth storeAuth, int productId)
{
if (productId < 0)
{
Logger.ErrorFormat(
"ShopifyCommunicator::GetProduct() was passed a negative productId ({0}), returning null.",
productId);
return null;
}
XmlDocument xDoc =
ShopifyGet(
(_protocol + storeAuth.StoreSubDomain + _domain + "/admin/products/" + productId + ".xml"),
HashString(_appAuth.Secret + storeAuth.StoreAuthToken));
return new ShopifyResponse<ShopifyProduct>(xDoc);
}