SyntaxFix
Write A Post
Hire A Developer
Questions
request.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue( "Basic", Convert.ToBase64String( System.Text.ASCIIEncoding.ASCII.GetBytes( $"{yourusername}:{yourpwd}")));