In the previous chapter, you learned about APIs and created a plugin that fetches information from an API. In this chapter, you will create a plugin that will use a weather API to fetch the current weather in the city you specify. You can use this plugin to decide if you need a jacket for the cold winds or an umbrella for showers.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Mellisa, Tell Me the Weather!

  • Harshil Agrawal,
  • Tanay Pant

摘要

In the previous chapter, you learned about APIs and created a plugin that fetches information from an API. In this chapter, you will create a plugin that will use a weather API to fetch the current weather in the city you specify. You can use this plugin to decide if you need a jacket for the cold winds or an umbrella for showers.