We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8530344 commit 402275fCopy full SHA for 402275f
1 file changed
examples/ngrokwebhook.py
@@ -56,7 +56,7 @@ def findwebhookidbyname(api, webhookname):
56
ngrokjson = re.search('JSON.parse\(\"(.+)\"\)\;',line).group(1)
57
ngrokjson = (ngrokjson.replace('\\',''))
58
print (ngrokjson)
59
-targetUrl = (json.loads(ngrokjson)["Session"]["Tunnels"]["command_line (http)"]["URL"])+url_suffix
+Url = (json.loads(ngrokjson)["Session"]["Tunnels"]["command_line (http)"]["URL"])+url_suffix
60
print (targetUrl)
61
62
#check if the webhook exists by name and then create it if not
@@ -70,5 +70,5 @@ def findwebhookidbyname(api, webhookname):
70
else:
71
#update
72
print (whid)
73
- dict=api.webhooks.update(whid, webhookname, targetUrl) #not working yet
+ dict=api.webhooks.update(whid, name=webhookname, targetUrl=Url)
74
print (dict)
0 commit comments