Skip to content

Instantly share code, notes, and snippets.

@jonniesweb
Created February 12, 2017 03:34
Show Gist options
  • Save jonniesweb/bd08607fc3c44efcc94ec190d5bec2d2 to your computer and use it in GitHub Desktop.
Save jonniesweb/bd08607fc3c44efcc94ec190d5bec2d2 to your computer and use it in GitHub Desktop.
Code for a shopify_app controller to synchronize the needed webhooks with the Shopify API
class WebhookRefreshController < ShopifyApp::AuthenticatedController
def index
webhooks = ShopifyApp.configuration.webhooks
ShopifyApp::WebhooksManager.new(webhooks).create_webhooks
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment