Thank you for you reply! I’ve tried the methods you provide, and the error of curl: (6) Could not resolve host: application has been resolved! Very appreciate it!
However, I’m still getting some errors.
I added the single quotes and removed the spaces
# With single quotes; with no spaces
curl -X POST 'https://shop-name.myshopify.com/admin/api/2023-03/graphql.json' -H 'Content-Type:application/graphql' -H 'X-Shopify-Access-Token:my-access-token' -d '{"query":"{products(first:3){edges{node{id}}}}"}'
Here’s what I got
curl: (3) URL using bad/illegal format or missing URL
Therefore, I remove the single quote to test it out
# With no single quotes or spaces
curl -X POST https://shop-name.myshopify.com/admin/api/2023-03/graphql.json -H 'Content-Type:application/graphql' -H 'X-Shopify-Access-Token:my-access-token' -d '{"query":"{products(first:3){edges{node{id}}}}"}'
Here’s what I got
{"errors":{"query":"Required parameter missing or invalid"}}
I’m assuming the error is caused by invalid query, but I’m not sure exactly. If you could tell me how to fix this issue, that would be great! Thank you again for your help!