Skip to content

Instantly share code, notes, and snippets.

@danielplawgo
Created September 29, 2020 04:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danielplawgo/843171b4148b1a996158467e277c2dff to your computer and use it in GitHub Desktop.
Save danielplawgo/843171b4148b1a996158467e277c2dff to your computer and use it in GitHub Desktop.
Azure Logic App - koszty
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