Please anyone guide me that how to consume API using Golang with user name and password?
This is the API address
https://emea.universal-api.pp.travelport.com/B2BGateway/connect/uAPI/AirService
if have to pass the following with request
request.Headers.Add("Authorization", "Basic " + Convert.ToBase64String(Encoding.ASCII.GetBytes("username" + ":" + "password")));
request.ContentType = "text/xml; encoding='utf-8'";
request.Method = "Post";
request.Headers.Add("SOAPAction", "");
request.Host = "twsprofiler.travelport.com";
I shall be very thankful to him.