Skip to content

Instantly share code, notes, and snippets.

View mroy-seedbox's full-sized avatar

mroy-seedbox

View GitHub Profile
@mroy-seedbox
mroy-seedbox / tableau-api-token-test.py
Last active March 25, 2024 19:25
Tableau API Token Expiration Issue
import os
import sys
import json
import time
from datetime import datetime
from urllib import request
DELAY_SECONDS = int(sys.argv[1]) if len(sys.argv) > 1 else 60
PING_COUNT = int(sys.argv[2]) if len(sys.argv) > 2 else 1
PING_DELAY_SECONDS = int(sys.argv[3]) if len(sys.argv) > 3 else 1