Created
September 29, 2020 04:23
-
-
Save danielplawgo/843171b4148b1a996158467e277c2dff to your computer and use it in GitHub Desktop.
Azure Logic App - koszty
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Threading.Tasks; | |
using System.Net.Http; | |
private static HttpClient httpClient = new HttpClient(); | |
public static void Run(TimerInfo myTimer, ILogger log, out string outputBlob) | |
{ | |
var response = httpClient.GetAsync("http://api.openweathermap.org/data/2.5/weather?q=olsztyn,pl&APPID=4e61d7e7f40f9c3205722f24ebd3c2ac").Result; | |
outputBlob = response.Content.ReadAsStringAsync().Result; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment