Created
February 12, 2017 03:34
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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