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):
5656 ngrokjson = re .search ('JSON.parse\(\" (.+)\" \)\;' ,line ).group (1 )
5757 ngrokjson = (ngrokjson .replace ('\\ ' ,'' ))
5858print (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
6060print (targetUrl )
6161
6262#check if the webhook exists by name and then create it if not
@@ -70,5 +70,5 @@ def findwebhookidbyname(api, webhookname):
7070else :
7171 #update
7272 print (whid )
73- dict = api .webhooks .update (whid , webhookname , targetUrl ) #not working yet
73+ dict = api .webhooks .update (whid , name = webhookname , targetUrl = Url )
7474 print (dict )
You can’t perform that action at this time.
0 commit comments