async function testDebug() { document.getElementById('request').textContent = JSON.stringify(testData, null, 2); try { const response = await fetch('api/chatly_aimc_debug.php', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(testData) }); const text = await response.text(); document.getElementById('response').textContent = `Status: ${response.status}\n\n${text}`; // JSON 파싱 시도 try { const json = JSON.parse(text); console.log('Debug response:', json); } catch (e) { console.log('Not JSON:', text); } } catch (error) { document.getElementById('response').textContent = 'Error: ' + error.message; } } MBTI API 직접 테스트

MBTI AI API 테스트

요청 데이터:


    
    

응답: