using System.Collections.Generic;
using System.Threading.Tasks;
public static async Task Main()
var httpClient = new HttpClient();
using var request = new HttpRequestMessage(HttpMethod.Post, new Uri("https://apigateway.blinfo.se/auth/oauth/v2/token/"));
request.Content = new FormUrlEncodedContent(new Dictionary<string, string>() {
{ "grant_type", "client_credentials" },
{ "client_id", "fb9252ec-fa6e-4eb7-b22e-2b1af0103ac9" },
{ "client_secret", "900d16ea-0522-4233-921f-f8589810c944" },
var response = await httpClient.SendAsync(request);
var responseContent = await response.Content.ReadAsStringAsync();
Console.WriteLine(responseContent);