Visual Basic 6.0
Visual Basic 6.0
Shopify Delete Product
See more Shopify Examples
Delete a product from the shop.Chilkat Visual Basic 6.0 Downloads
Dim success As Long
success = 0
Dim rest As New ChilkatRest
success = rest.SetAuthBasic("SHOPIFY_PRIVATE_API_KEY","SHOPIFY_PRIVATE_API_SECRET_KEY")
success = rest.Connect("chilkat.myshopify.com",443,1,1)
If (success <> 1) Then
Debug.Print rest.LastErrorText
Exit Sub
End If
Dim sbResponse As New ChilkatStringBuilder
success = rest.FullRequestNoBodySb("DELETE","/admin/products/#{id}.json",sbResponse)
If (success <> 1) Then
Debug.Print rest.LastErrorText
Exit Sub
End If
If (rest.ResponseStatusCode <> 200) Then
Debug.Print "Received error response code: " & rest.ResponseStatusCode
Debug.Print "Response body:"
Debug.Print sbResponse.GetAsString()
Exit Sub
End If
Debug.Print "Example Completed."