Skip to content

getVariant(__queryItems_)

mauryaratan edited this page Feb 5, 2023 · 1 revision

getVariant(_:queryItems:)

Get a single variant by ID.

public func getVariant(_ variantId: Variant.ID, queryItems: [URLQueryItem] = [])

Parameters

  • variantId: The ID of the variant you'd like to retrieve.
  • queryItems: An array of URLQueryItem, passed as query parameters.

Returns

A response object containing the requested Variant.

Types
Global Functions
Clone this wiki locally