我在我的iOS應用程序中使用openweathermap API。openweathermap API問題與移動應用程序
下面是我的URL,我打電話要得到的信息。
雖然打開這個網址在瀏覽器中我得到了響應正常。
但是當我從我的iOS應用程序調用Web服務時,我沒有得到響應。 我得到以下錯誤:
{
cod = 401;
message = "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info.";
}
我創造了API密鑰從這個網址: Create API key on Open Wheather
喜歡這個http://api.openweathermap.org/data/2.5/weather?q=London,uk&appid=44db6a862fba0b067b1930da0d769e98&lang=en-US –
MYAPPID只是在這裏的temperory。我正在付出實際的價值。 – Ayra
在上面的評論中檢查我的網址我剛剛從openweathermap網站取代了一個有效的appid –