AutoIt
AutoIt
Shopify Basic Authentication: Get List of Products
See more Shopify Examples
Demonstrates how to send a simple HTTP GET request with Basic authentication to get a list of products.Chilkat AutoIt Downloads
; This example requires the Chilkat API to have been previously unlocked.
; See Global Unlock Sample for sample code.
$oHttp = ObjCreate("Chilkat.Http")
; Use your Shopify store's Admin API key and password.
$oHttp.Login = "admin3_api_key"
$oHttp.Password = "admin3_password"
$oHttp.BasicAuth = True
Local $sJsonStr = $oHttp.QuickGetStr("https://mystore.myshopify.com/admin/api/2020-07/products.json")
If ($oHttp.LastMethodSuccess <> True) Then
ConsoleWrite($oHttp.LastErrorText & @CRLF)
Exit
EndIf
ConsoleWrite("Response status code: " & $oHttp.LastStatus & @CRLF)
ConsoleWrite("JSON response:" & @CRLF)
ConsoleWrite($sJsonStr & @CRLF)