Matas
Matas
CC#
Created by Matas on 4/29/2024 in #help
Maui API IMPLEMENT
No description
16 replies
CC#
Created by Matas on 4/29/2024 in #help
Maui API IMPLEMENT
result of the api is this
16 replies
CC#
Created by Matas on 4/29/2024 in #help
Maui API IMPLEMENT
I need this, then i will convert it into c#
16 replies
CC#
Created by Matas on 4/29/2024 in #help
Maui API IMPLEMENT
i will get smth like this "latitude": 52.52, "longitude": 13.419, "elevation": 44.812, "generationtime_ms": 2.2119, "utc_offset_seconds": 0, "timezone": "Europe/Berlin", "timezone_abbreviation": "CEST", "hourly": { "time": ["2022-07-01T00:00", "2022-07-01T01:00", "2022-07-01T02:00", ...], "temperature_2m": [13, 12.7, 12.7, 12.5, 12.5, 12.8, 13, 12.9, 13.3, ...] }, "hourly_units": { "temperature_2m": "°C" } ?
16 replies
CC#
Created by Matas on 4/29/2024 in #help
Maui API IMPLEMENT
but where i can get the json format
16 replies
CC#
Created by Matas on 4/29/2024 in #help
Maui API IMPLEMENT
i know it generated me this
16 replies
CC#
Created by Matas on 4/29/2024 in #help
Maui API IMPLEMENT
using System.Net.Http.Headers; var client = new HttpClient(); var request = new HttpRequestMessage { Method = HttpMethod.Get, RequestUri = new Uri("https://yahoo-finance127.p.rapidapi.com/price/meta"), Headers = { { "X-RapidAPI-Key", "xxx" }, { "X-RapidAPI-Host", xxx" }, }, }; using (var response = await client.SendAsync(request)) { response.EnsureSuccessStatusCode(); var body = await response.Content.ReadAsStringAsync(); Console.WriteLine(body); }
16 replies