Acquiring the Authentication Token
Tuesday, December 8, 2015 at 10:04amI'm trying to get the Authentication token with the following code, however its return error "The remote server returned an error: (405) Method Not Allowed."
string url = "https://sandbox.esignlive.com/api/authenticationTokens";
string apiKey = "WXNKRk9vb*****************";
using (var client = new WebClient())
{
var uri = new Uri(url);
var encoding = new UTF8Encoding();
client.Headers.Add("Content-Type", "application/json");
client.Headers.Add("Accept", "application/json");
client.Headers.Add("Authorization", "Basic " + apiKey);
string response = encoding.GetString(client.DownloadData(uri));
}
Reply to: Acquiring the Authentication Token
Wednesday, December 9, 2015 at 04:33amReply to: Acquiring the Authentication Token
Wednesday, December 9, 2015 at 08:58am