【发布时间】:2016-06-10 05:44:40
【问题描述】:
我目前正在学习如何通过 Udacity 的 Android 课程构建天气应用程序来创建 Android 应用程序。一项要求是使用http://api.openweathermap.org/data/2.5/forecast/daily?id=7839805&mode=json&units=metric&cnt=7&appid=[my api key] 调用openweathermap API。
然而,我总是以
{"cod":401, "message": "Invalid API key. Please see http://openweathermap.org/faq#error401 for more info."}
如何获取正确的 API?
【问题讨论】: