| 12345678910111213141516171819202122232425262728293031323334353637 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>JellyStat API Test</title>
- </head>
- <body>
- <h1>JellyStat Metadata API Test</h1>
- <button onclick="testMetadata()">Test Metadata API</button>
- <pre id="result"></pre>
-
- <script>
- async function testMetadata() {
- const token = '4wr9yn1z30k57hnsczpu';
- const testKey = '123456'; // Replace with actual item ID
-
- try {
- const response = await fetch('https://media.glassnetworks.net/api/v2/homepage/jellystat/metadata', {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/json',
- 'Token': token
- },
- body: JSON.stringify({ key: testKey })
- });
-
- const data = await response.json();
- document.getElementById('result').textContent = JSON.stringify(data, null, 2);
- } catch (error) {
- document.getElementById('result').textContent = 'Error: ' + error.message;
- }
- }
-
- // Auto-run on load
- window.onload = testMetadata;
- </script>
- </body>
- </html>
|