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 asyncio | |
| import logging | |
| import sys | |
| import time | |
| # --- CONFIGURATION --- | |
| HOST = "192.168.1.1" # IP Address (Lync) | |
| PORT = 10006 # Port | |
| ZONES = [1, 2] # Zones to test |
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
| const clientId = '[INSERT_CLIENT_ID]'; | |
| const clientSecret = '[INSERT_CLIENT_SECRET]'; | |
| const callbackUrl = '[CALLBACK URL]'; | |
| async function getAccessToken() { | |
| const params = new URLSearchParams(); | |
| params.append('client_id', clientId); | |
| params.append('client_secret', clientSecret); | |
| params.append('grant_type', 'client_credentials'); |