Hello there i have a problem when i call api for getting data it’s taking to long time to response.
note every submission have attachment in this form. is there any option to call api without api Please me know
this is my api
string api_call = “https://kc.humanitarianresponse.info/api/v1/data/…?format=json”;
using (var request = new HttpRequestMessage(new HttpMethod("GET"), api_call))
{
var base64authorization = Convert.ToBase64String(Encoding.ASCII.GetBytes("user:pass"));
request.Headers.TryAddWithoutValidation("Authorization", $"Basic {base64authorization}");
HttpClient client = new HttpClient();
client.Timeout = TimeSpan.FromMinutes(15);
var response = await client.SendAsync(request);
var bytes = await response.Content.ReadAsByteArrayAsync();
Encoding encoding = Encoding.GetEncoding("utf-8");
string the_response = encoding.GetString(bytes, 0, bytes.Length);
}