Getting a 401 unauthorized access error with the below code. What am I missing here?
url = ‘https://.myshopify.com/admin/api/2022-01/products/count.json’
header = {
‘X-Shopify-Storefront-Access-Token’: <access_token>,
‘Content-Type’: ‘application/json’
}
r = requests.get(url, headers=header)