Working on making a simple api call to retrieve all collections.
When I hit the following endpoint:
My code throws a 404. But when I hit the same URL with a "products", "shop", "orders" or seemingly any other endpoint, i get a 200 and my data comes through fine.
Even more strangely, if i go to the above address in my browser, I get a nice clean json object with all of my desired data. Can anybody tell me why this endpoint doesnt work?
You get a clean JSON in the browser because you are logged in. Is the key/secret for a private app or a public app?
curl -X GET https://<key>:<secret>@<shop>.myshopify.com/admin/api/2019-10/custom_collections.json -H 'Content-Type: application/json'
curl -X GET https://<key>:<secret>@<shop>.myshopify.com/admin/api/2019-10/smart_collections.json -H 'Content-Type: application/json'