shopify rails 401 code example
Example: ActiveResource::UnauthorizedAccess: Failed. Response code = 401. Response message = Unauthorized ([API] Invalid API key or access token (unrecognized login or wrong password))
require 'shopify_api'
shop_url = "https://fooID:[email protected]"
ShopifyAPI::Base.site = 'https://fooStoreName.myshopify.com'
ShopifyAPI::Base.api_version = "2020-01"
# Get a specific product
product = ShopifyAPI::Product.find(14617660364)