以下のコードを使用して都市の天気を取得していますが、動作しているにもかかわらず API キーでエラーが発生しています。欠落している注文エラーはありますか?
<script type="text/javascript">
$(document).ready(function () {
$('#btnGetWeather').click(function () {
var requestData = $('#txtCity').val() + ',' + $('#txtCountry').val();
var resultElement = $('#resultDiv');
$.ajax({
'method': 'POST',
'url': 'http://api.openweathermap.org/data/2.5/weather?',
'data': {
'q': $('#txtCity').val() + ',' + $('#txtCountry').val(),
'APPID': 'e142d6277e3108bf30a12ab09c98ce6f',
},
'success': function (data) {
resultElement.html('Weather: ' + data.weather[0].main + '<br />' + 'Description: ' + data.weather[0].description);
}
});
});
});
</script>