Is there any way I can get the email activity from my API key without a limit? According to the documentation, the limit parameter is not required, but any time I don't specify a limit I get a BadRequest response.
public async Task<SentEmailModel> GetEmails()
{
var client = new SendGridClient("SENDGRID_API_KEY");
var queryParams = @"{
'limit': 100 //I dont't want to specify a limit, since I want to get the full list
}";
var response = await client.RequestAsync(method: SendGridClient.Method.GET, urlPath: "messages", queryParams: queryParams);
if (response.IsSuccessStatusCode)
{
var responseString = response.Body.ReadAsStringAsync().Result;
var responseMessages = JsonConvert.DeserializeObject<SentEmailModel>(responseString);
return responseMessages;
}
return null;
}