using System.Collections.Generic;
using System.Threading.Tasks;
public static void Main()
var ClientId = "your_client_id_here";
var ClientSecret = "your_client_secret_here";
var token = "{ClientId}:{ClientSecret}";
var tokenBytes = Encoding.ASCII.GetBytes(token);
var encoded = Convert.ToBase64String(tokenBytes);