使用时出现错误
'query':'last_event_time=2022-02-14T08:52:44Z'
它给了我意外的标识符“查询”错误,这是我的代码
var response = await client.SendEmailAsync(myMessage);
var data = response.Headers.ToString();
var splitData = data.Split("\r\n")[1].TrimStart('D', 'a', 't', 'e', ':').Replace("GMT", " ").Trim();
var dateFormat = "ddd, dd MMM yyyy HH:mm:ss";
DateTime emailSentDate;
bool date1 = DateTime.TryParseExact(splitData, dateFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out emailSentDate);
var lastEmailSent = emailSentDate.ToString("yyyy'-'MM'-'dd'T'HH':'mm':'ssZ");
var queryParams = @"{
'query':'last_event_time"+lastEmailSent+"'"+","+"from_email:'"+From_Email+"'"+","+"subject:'"+myMessage.Subject+"'"+","+"limit:1"+"}";
仍然遇到此错误。我不知道如何使用 'query':'last_event_time="+lastEmailSent