We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I need to POST to /admin/webhooks.json. I use
shopify.Webhook.post('',json.dumps(json_data)) which uses _class_post which uses this url format -
shopify.Webhook.post('',json.dumps(json_data))
_class_post
'%(prefix)s/%(plural)s/%(method_name)s.%(format)s%(query)s' (_custom_method_collection_url)
'%(prefix)s/%(plural)s/%(method_name)s.%(format)s%(query)s'
However for POST request needed is '%(prefix)s/%(plural)s.%(format)s%(query)s' (_collection_path)
The text was updated successfully, but these errors were encountered:
You shouldn't need to be calling post() methods directly - try instantiating a new Webhook instance then calling save, something like this:
post()
save
new_webhook = shopify.Webhook() new_webhook.address = 'https://www.example.com' new_webhook.topic = 'orders/create' new_webhook.save()
Sorry, something went wrong.
You shouldn't need to be calling post() methods directly - try instantiating a new Webhook instance then calling save, something like this: new_webhook = shopify.Webhook() new_webhook.address = 'https://www.example.com' new_webhook.topic = 'orders/create' new_webhook.save()
It shouldn't take a dive into Issues to find these four lines of code. This library, while powerful, is criminally under-documented.
No branches or pull requests
I need to POST to /admin/webhooks.json. I use
shopify.Webhook.post('',json.dumps(json_data))
which uses_class_post
which uses this url format -'%(prefix)s/%(plural)s/%(method_name)s.%(format)s%(query)s'
(_custom_method_collection_url)However for POST request needed is '%(prefix)s/%(plural)s.%(format)s%(query)s' (_collection_path)
The text was updated successfully, but these errors were encountered: