static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "ACXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"; string AuthToken = "your_auth_token"; var twilio = new TwilioRestClient(AccountSid, AuthToken); var options = new MediaListRequest(); var medias = twilio.ListMessageMedia("MM800f449d0399ed014aae2bcc0cc2f2ec", options); foreach (var media in medias.Medias) { Console.WriteLine(media.ContentType); } }
static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "{{ account_sid }}"; string AuthToken = "{{ auth_token }}"; var twilio = new TwilioRestClient(AccountSid, AuthToken); var request = new MediaListRequest(); request.ParentSid = "MMdc5f132a3c49700934481addd5ce1659"; var medias = twilio.ListMedia(request); foreach (var media in medias.Medias) { Console.WriteLine(media.ContentType); } }
static void Main(string[] args) { // Find your Account Sid and Auth Token at twilio.com/user/account string AccountSid = "{{ account_sid }}"; string AuthToken = "{{ auth_token }}"; var twilio = new TwilioRestClient(AccountSid, AuthToken); var request = new MediaListRequest(); request.DateCreatedComparison = ComparisonType.GreaterThanOrEqualTo; request.DateCreated = new DateTime(2013, 01, 01); var medias = twilio.ListMedia(request); foreach (var media in medias.Medias) { Console.WriteLine(media.ParentSid); } }