File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ def findwebhookidbyname(api, webhookname):
56
56
ngrokjson = re .search ('JSON.parse\(\" (.+)\" \)\;' ,line ).group (1 )
57
57
ngrokjson = (ngrokjson .replace ('\\ ' ,'' ))
58
58
print (ngrokjson )
59
- targetUrl = (json .loads (ngrokjson )["Session" ]["Tunnels" ]["command_line (http)" ]["URL" ])+ url_suffix
59
+ Url = (json .loads (ngrokjson )["Session" ]["Tunnels" ]["command_line (http)" ]["URL" ])+ url_suffix
60
60
print (targetUrl )
61
61
62
62
#check if the webhook exists by name and then create it if not
@@ -70,5 +70,5 @@ def findwebhookidbyname(api, webhookname):
70
70
else :
71
71
#update
72
72
print (whid )
73
- dict = api .webhooks .update (whid , webhookname , targetUrl ) #not working yet
73
+ dict = api .webhooks .update (whid , name = webhookname , targetUrl = Url )
74
74
print (dict )
You can’t perform that action at this time.
0 commit comments