I am creating an app in ruby on rails for shopify stores and in that app I want to sync shopify products, I have done that for now using webhooks on product creation event.
But Is there any other way other than webhooks to sync shopify products to Ruby on Rails application? as I don’t want my customers to do any manual setting for this.
Just one more thing, can we create webhooks in shopify stores at the time of installation of app via api and thus merchants won’t require to do that manually?
I tried creating webhooks using APIs only so that there will not be any manual work for merchants but I can’t see webhooks got created in shopify stores.
setup: ->(env) {
request = Rack::Request.new(env)
site = if request.params[‘shop’]
“https://#{request.params[‘shop’]}”
else
‘’
end
env[‘omniauth.strategy’].options[:client_options][:site] = site
}
end