(client: NonNullable<Shopify["_client"]>)
| 14 | constructor(private runTask: ShopifyRunTask) {} |
| 15 | |
| 16 | #apiUrl(client: NonNullable<Shopify["_client"]>) { |
| 17 | const { apiVersion, hostName } = client.config; |
| 18 | return new URL(`/admin/api/${apiVersion}/`, `https://${hostName}`); |
| 19 | } |
| 20 | |
| 21 | // just an example using raw fetch with error handling |
| 22 | #createWithFetch( |