I am new to web development, currently building an html web app, where I need to get data from a Qualtric survey and use it to modify my web app. I looked into Qualtric REST API here:https://survey.qualtrics.com/WRAPI/ControlPanel/docs.php#overview_2.4 and tried to follow it. I added these lines to my javascript and it always gets me error 500. Simply pasting the url to browser url bar gets me error 500, too.
Can anyone please help me on this? Thanks a lot!
$(function () {
$.ajax({
type: 'GET',
url: 'https://new.qualtrics.com/WRAPI/ControlPanel/api.php?Request=getUserInfo&User=xxxx&Token=xxxxxxxxx&Format=XML&Version=2.4',
success: function (data) {
console.log('success', data);
}
});
});
</div>