我在 .net 技术中使用 plivo
并尝试以适当的方式获取短信发送报告,但我没有按照演示中显示的代码得到这个。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using RestSharp;
using Plivo.API;
using Nancy;
namespace plivoNetApplication
{
public class deliver_report : NancyModule
{
public void Program()
{
Post["/delivery_report"] = x =>
{
String from_number = Request.Form["From"]; // Sender's phone number
String to_number = Request.Form["To"]; // Receiver's phone number
String status = Request.Form["Status"]; // Status of the message
String uuid = Request.Form["MessageUUID"]; // Message UUID
string message = "From" + from_number + "To" + to_number + "Status" + status + "UUID" + uuid;
return message;
};
}
}
}
请帮我摆脱这个问题