Get-ShopifyCollectionList #
ÜBERSICHT #
Liest eine Liste der Custom Collections aus einem Shopify-Shop über die GraphQL Admin API.
SYNTAX #
Get-ShopifyCollectionList [-Shop] <string> [-Token] <string> [-ApiVersion] <string> [[-PageSize]
<int>] [[-MaxRetries] <int>] [[-TimeoutSec] <int>] [<CommonParameters>]
BESCHREIBUNG #
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.
PARAMETER #
-Shop #
Type: string
Shopify-Shop-Domain, z.B. ‘mein-shop.myshopify.com’.
-Token #
Type: string
Admin API Access Token (shpat_…) der Custom App.
-ApiVersion #
Type: string
API-Version, z.B. ‘2025-01’.
-PageSize #
Type: int
Default: 250
Anzahl Collections pro Seite (max. 250).
-MaxRetries #
Type: int
Default: 3
Maximale Anzahl Wiederholungen bei Rate-Limit.
-TimeoutSec #
Type: int
Default: 60
HTTP Timeout in Sekunden.
AUSGABEN #
pscustomobject[]
BEISPIELE #
# 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