asp.net mvc - MessageListRequest function not available in Twilio -


i working develop project , need implement send/receive sms functionality. found code resources get(inbound) sms when tried implement in project wonder messagelistrequest , messageresult functions not available in twilio. have 1 of idea?

var client = new twiliorestclient(accountsid, authtoken);             var request = new messagelistrequest();             messageresult messages = client.listmessages(request); 

twilio developer evangelist here.

it looks reading documentation version 4 of c# twilio library. have released version 5 of c# twilio library accesses lists of messages differently. here example of how list messages in version 5:

using system; using twilio; using twilio.rest.api.v2010.account;  class example {     static void main(string[] args)     {         // find account sid , auth token @ twilio.com/console         const string accountsid = "your_account_sid";         const string authtoken = "your_auth_token";         twilioclient.init(accountsid, authtoken);          var messages = messageresource.read();          foreach (var message in messages)         {             console.writeline(message.body);         }     } } 

let me know if helps @ all.


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -