Skip to content

Instantly share code, notes, and snippets.

View hikirsch's full-sized avatar

Adam S. Kirschner hikirsch

  • New York, NY
  • 20:55 (UTC -04:00)
View GitHub Profile
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
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');