I'm using the shopify app gem (https://github.com/Shopify/shopify_app) to create an embedded app in my client's shopify site. I'm trying to iterate through one of our db's tables and create a new product in shopify for each row.
class ProductController < ApplicationController
around_filter :shopify_session
layout 'embedded_app'
def new
@parts = Part.all
@parts.each do |part|
@product = ShopifyAPI::Product.new
@product.title = part.style_name
@product.sku = part.sku
@product.upc = part.upc
@product.weight = part.weight
@product.product_type = "Part"
@product.vendor = part.vendor
@product.tags = "part"
@product.save
end
end
end
I am working locally and when I hit product new action I get this error: "Failed. Response code = 403. Response message = Forbidden."