Skip to content

Instantly share code, notes, and snippets.

@billettg
billettg / plex-pin-auth.py
Created July 2, 2024 10:26
Sample code for PIN authentication using Plex API
import uuid
import random
import time
import requests
import logging
# Configure logging
logging.basicConfig(level=logging.DEBUG, format='%(asctime)s - %(levelname)s - %(message)s')
# Constants