api.integrations.shopify.graphql ================================ .. py:module:: api.integrations.shopify.graphql .. autoapi-nested-parse:: Shopify Admin GraphQL calls for one store. A 401 gets one retry with a fresh token (nothing was applied); a 429 is retried after Shopify's Retry-After (nothing was applied either). Anything else that fails raises, a mutation is never sent twice. Attributes ---------- .. autoapisummary:: api.integrations.shopify.graphql.logger api.integrations.shopify.graphql.TIMEOUT_SECONDS api.integrations.shopify.graphql.RATE_LIMIT_RETRIES Exceptions ---------- .. autoapisummary:: api.integrations.shopify.graphql.ShopifyError Classes ------- .. autoapisummary:: api.integrations.shopify.graphql.GraphQL Module Contents --------------- .. py:data:: logger .. py:data:: TIMEOUT_SECONDS :value: 60 .. py:data:: RATE_LIMIT_RETRIES :value: 3 .. py:exception:: ShopifyError Bases: :py:obj:`RuntimeError` A Shopify call that did not complete. .. py:class:: GraphQL(domain: str, api_version: str, token_provider: api.integrations.shopify.auth.TokenProvider = get_shopify_access_token, error: type[ShopifyError] = ShopifyError) .. py:attribute:: url .. py:attribute:: token_provider .. py:attribute:: error