This repository is deprecated; please follow the main search page or use the ‘Related code repos’ widget on the right side of the current page.

ngrok-startup

One of the nuisances of developing integrations or bots with ngrok is that the tunnel url changes everytime you fire up ngrok. Then you have to manually update your spark webhook.
This script tears down all of your existing ngrok tunnels, creates new ones, then updates your Spark Bot webhook urls.

To use it simply type

python3 ngrok_startup.py <port> "tunnel_name"

Where port is the port ngrok is listening to and tunnel_name is the name of the tunnel you may have given it previously. Note that tunnel_name is also the name given to the Cisco Spark webhook. So for example if the port was 10040 and the tunnel name was "my_tunnel_name", the command line argument would be:

python3 ngrok_startup.py 10040 "my_tunnel_name"
View code on GitHub
  • Owner

  • Contributors

    +1Github contributor
  • Categories

  • Products

    Webex
  • Programming Languages

    Python
  • License

    Other

Code Exchange Community

Get help, share code, and collaborate with other developers in the Code Exchange community.View Community
Disclaimer:
Cisco provides Code Exchange for convenience and informational purposes only, with no support of any kind. This page contains information and links from third-party websites that are governed by their own separate terms. Reference to a project or contributor on this page does not imply any affiliation with or endorsement by Cisco.