Sample code for 30+ languages & platforms
PowerShell

Shopware Digest Authentication

See more Shopware Examples

Demonstrates using Digest access authentication for Shopware.

Chilkat PowerShell Downloads

PowerShell
Add-Type -Path "C:\chilkat\ChilkatDotNet47-x64\ChilkatDotNet47.dll"

$success = $false

# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.

$http = New-Object Chilkat.Http

# To use HTTP Digest Authentication, set the login and password, and also indicate that DigestAuth should be used.
$http.Login = "api_username"
$http.Password = "api_key"
$http.DigestAuth = $true

$sbResponseBody = New-Object Chilkat.StringBuilder
$success = $http.QuickGetSb("https://my-shopware-shop.com/api/articles?limit=2",$sbResponseBody)
if ($success -eq $false) {
    $($http.LastErrorText)
    exit
}

$jResp = New-Object Chilkat.JsonObject
$jResp.LoadSb($sbResponseBody)
$jResp.EmitCompact = $false

$("Response Body:")
$($jResp.Emit())