Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
XamarinWhatsApp: ServicioWhatsAppTwilio.cs
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using XamarinWhatsApp.Helpers;
using XamarinWhatsApp.Modelos;
using Twilio;
using Twilio.Types;
using Twilio.Rest.Api.V2010.Account;
namespace XamarinWhatsApp.Servicios
public static class ServicioWhatsAppTwilio
public static MessageResource EnviarMensaje(Mensaje mensaje)
var whatsapp = MessageResource.Create(
body: mensaje.Body,
from: new PhoneNumber($"whatsapp:{mensaje.From}"),
to: new PhoneNumber($"whatsapp:{mensaje.To}")
return whatsapp;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.