{"id":110742,"date":"2016-07-09T01:59:12","date_gmt":"2016-07-09T08:59:12","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-automate\/customapi-walkthrough\/"},"modified":"2016-07-09T01:59:12","modified_gmt":"2016-07-09T08:59:12","slug":"customapi-walkthrough","status":"publish","type":"power-automate","link":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-automate\/customapi-walkthrough\/","title":{"rendered":"Receive personalized weather updates using a Custom API"},"content":{"rendered":"
In this blog post, we are going to show you how to create a simple Custom API and use it in your flow. At the end of this walkthrough \u2013 you will have some understanding of, how to create a\u00a0weather custom API and create a flow that sends you weather updates every morning. You can then setup a flow as shown to send yourself weather updates as push notifications. Be sure to paste in the API key that you acquired in the first place from apixu.<\/p>\n
\nTo start off, you will need to acquire an API key from https:\/\/apixu.com<\/a>, they are nice weather API provider who let you test their APIs for free. You will then need to download the Swagger file<\/a> that describe the weather APIs.
\nOnce you have\u00a0downloaded and saved your swagger, proceed to upload it to Flow. You can access the custom API create UI from the accounts menu. Click \u201cNew custom API<\/strong><\/em>\u201d and fill in the necessary details. Upload the Swagger API definition along with an icon to identify the API.
\nOnce you have successfully created the custom API, create a connection for it by clicking on the \u201c+\u201d <\/strong>button.<\/p>\n<\/p>\n
<\/p>\n