This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import argparse | |
# Change this to your domain name or IP address of server running wg-easy | |
base_url = 'http://localhost:51821' | |
# Make sure to update the password to the password you set for your webgui | |
def get_session_id(base_url=base_url): | |
path = base_url + '/api/session' | |
headers = {'Content-Type': 'application/json'} |