VB.NET
VB.NET
Shopify Delete Product
See more Shopify Examples
Delete a product from the shop.Chilkat VB.NET Downloads
Dim success As Boolean = False
Dim rest As New Chilkat.Rest
rest.SetAuthBasic("SHOPIFY_PRIVATE_API_KEY","SHOPIFY_PRIVATE_API_SECRET_KEY")
success = rest.Connect("chilkat.myshopify.com",443,True,True)
If (success <> True) Then
Debug.WriteLine(rest.LastErrorText)
Exit Sub
End If
Dim sbResponse As New Chilkat.StringBuilder
success = rest.FullRequestNoBodySb("DELETE","/admin/products/#{id}.json",sbResponse)
If (success <> True) Then
Debug.WriteLine(rest.LastErrorText)
Exit Sub
End If
If (rest.ResponseStatusCode <> 200) Then
Debug.WriteLine("Received error response code: " & rest.ResponseStatusCode)
Debug.WriteLine("Response body:")
Debug.WriteLine(sbResponse.GetAsString())
Exit Sub
End If
Debug.WriteLine("Example Completed.")