Exemple #1
0
    public static void Shop_AddProductVariant(string StoreName, string APIKey, string Password, long ProductID, string JsonString, out SqlInt64 VariantID)
    {
        ShopifyClient sp = new ShopifyClient(StoreName, APIKey, Password);
        VariantID = sp.AddProductVariant(ProductID, JsonString);

        if (!String.IsNullOrEmpty(sp.ErrMsg))
            RaiseErr(sp.ErrMsg);
    }
 private void AddProductVariant()
 {
     sp = new ShopifyClient(_storename, _apikey, _password);
     long success = sp.AddProductVariant(Convert.ToInt64(txtInput_Copy.Text), txtRawData_Copy.Text);
     txtRawData_Copy.Text += "\n" + sp.RawData + "|| VariantID: " + success;
 }