Compare commits
1 Commits
c9a57e431a
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
| ca87eba738 |
@@ -212,7 +212,7 @@ namespace Chatbot_WPF_Projekt
|
|||||||
//mehtohde für die wetter Api
|
//mehtohde für die wetter Api
|
||||||
private async Task<string> GetWeatherAsync(string city)
|
private async Task<string> GetWeatherAsync(string city)
|
||||||
{
|
{
|
||||||
string apiKey = "d3348e2e2c9dba104f58d7d44f6f623e";
|
string apiKey = "";
|
||||||
string url = $"https://api.openweathermap.org/data/2.5/weather?q={Uri.EscapeDataString(city)}&units=metric&lang=de&appid={apiKey}";
|
string url = $"https://api.openweathermap.org/data/2.5/weather?q={Uri.EscapeDataString(city)}&units=metric&lang=de&appid={apiKey}";
|
||||||
|
|
||||||
using HttpClient client = new HttpClient();
|
using HttpClient client = new HttpClient();
|
||||||
|
|||||||
Reference in New Issue
Block a user