Hi Team,
but when trying to use it for authorization i'm getting weird errors. Everything works fine in postman but in c# the zoho mail resource server returns 404/400.
- var client = new HttpClient
- {
- BaseAddress = new Uri("http://mail.zoho.com/api/accounts")
- };
- client.DefaultRequestHeaders.Accept.Clear();
- client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue(AuthorizationHeader,"Zoho-authtoken" + _appSettings.SenderAccessKey);
- var response = await _sharedClient.GetAsync();
- if (response.IsSuccessStatusCode)
- {
- }
Thanks,
DK