簡體   English   中英

如何使我的程序使用Twilio閱讀我的SMS響應

[英]How to get my Program to read my SMS response using Twilio

根據Twilio提供的教程,我可以非常輕松地向手機發送SMS消息,但是,我似乎找不到找到讓程序讀取通過手機回復的消息的方法。 這有可能嗎?

static void Main(string[] args)
    {
        //Login to the Twilio Account
        string AccountSid = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
        string AuthToken = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";

        var Twilio = new TwilioRestClient(AccountSid, AuthToken);
        var message = Twilio.SendMessage("+TwilioNumber", "+CellNumber", "Hello World"); 

        var sms = Twilio.GetMessage(message.Sid);
        Console.Write(sms.Body);            
        Console.Read();
    }

Twilio開發人員布道者在這里。

您絕對可以接收發送到您的Twilio號碼的消息並閱讀傳入的消息。 我建議您通讀此C#消息傳遞快速入門: https//www.twilio.com/docs/quickstart/csharp/sms

然后,您可以通過查看API文檔了解Twilio如何將傳入消息發送給您,以進行后續操作: https : //www.twilio.com/docs/api/twiml/sms/twilio_request

讓我知道是否有幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM