This is an example application which uses Shopify API to create webhooks
-
Create a partner account here http://www.shopify.com/partners
-
Create a new public application in you partner's administration interface
-
Provide the API key and secret of your application (edit the
shopify.php
config file) -
Run
composer update -o
-
Create a new database, configure database access and run migrations
-
Run
artisan serve --port 8080
and you should be able to test the application
-
Create a development store in the partner's administration interface
-
Open the application (http://localhost:8080 or whatever you have configured for this) and click "Create a new store"
-
Provide the store's name and click "Submit". You will be asked to grant access for the Shopify application
-
Once you have created the new store, click to its name
-
Here you can see a list of webhooks of the selected store
-
Click "Create a new webhook", fill the form and click "Submit"
-
You can also remove stores and webhooks
-
Webhook topics are not being validated and response exceptions are not being processed properly
-
If you delete a store, webhooks of this store won't be deleted (no specification provided for this case)