e');
            table.innerText = data.error || 'Unknown error';
            return;
        }

        const table = document.getElementById('ring-table');
        drawTable(table, data);
    }

    document.getElementById('ring-credentials-form').addEventListener('submit', handleRingAuth);
    document.getElementById('ring-token-form').addEventListener('submit', handleRingAuth);
</script>

<button id="gopro">GoPro</button>
<div class="module">
    <table id="gopro-table"></table>
</div>
<script>
    docu