EulandaXtools — Funktionsreferenz
Liest eine Liste der Custom Collections aus einem Shopify-Shop über die GraphQL Admin API.
Get-ShopifyCollectionList [-Shop] <string> [-Token] <string> [-ApiVersion] <string> [[-PageSize]
<int>] [[-MaxRetries] <int>] [[-TimeoutSec] <int>] [<CommonParameters>]Ruft Collections per GraphQL-Query ab und liefert eine Liste mit den wichtigsten Feldern: Id, Title, Handle, BodyHtml, Published.
Unterstützt Cursor-Pagination. Filtert auf collection_type:custom.
-Shop
Type: stringShopify-Shop-Domain, z.B. 'mein-shop.myshopify.com'.
-Token
Type: stringAdmin API Access Token (shpat_...) der Custom App.
-ApiVersion
Type: stringAPI-Version, z.B. '2025-01'.
-PageSize
Type: int
Default: 250Anzahl Collections pro Seite (max. 250).
-MaxRetries
Type: int
Default: 3Maximale Anzahl Wiederholungen bei Rate-Limit.
-TimeoutSec
Type: int
Default: 60HTTP Timeout in Sekunden.
pscustomobject[]# Alle Custom Collections abrufen
$collections = Get-ShopifyCollectionList -Shop 'mein-shop.myshopify.com' `
-Token 'shpat_abc123' -ApiVersion '2025-01'# Collections mit kleiner Seitengröße abrufen
$collections = Get-ShopifyCollectionList -Shop $shop -Token $token `
-ApiVersion '2025-01' -PageSize 50