ASKER
ASKER
ASKER
using System;
using System.Web.Mvc;
using Twilio;
using Twilio.Mvc;
using Twilio.TwiML;
using Twilio.TwiML.Mvc;
namespace EE29140168.Controllers
{
public class SendMessageExampleController : TwilioController
{
public Twilio.Message SendMessage(string message)
{
var twilio = new TwilioRestClient("your twilio api key", "your twilio api token");
return twilio.SendMessage("+18005551212", "+18005551313", message);
}
}
}
ASKER
ASKER
https://api-ssl.bitly.com/v3/shorten?access_token=your_access_token&longUrl=url_encoded_address
However, I just checked and it appears they are depreciating API tokens in favor of OAUTH.https://is.gd/create.php?format=simple&url=https%3A%2F%2Fwww.bing.com%2Fsearch%3Fq%3Dbit.ly%2Bapi%2Bdocumentation%26form%3DAPIPH1%26PC%3DAPPL
ASKER
C# is an object-oriented programming language created in conjunction with Microsoft’s .NET framework. Compilation is usually done into the Microsoft Intermediate Language (MSIL), which is then JIT-compiled to native code (and cached) during execution in the Common Language Runtime (CLR).
TRUSTED BY
If the link is long, you may want to run it through a link shortner or a special URL on your server that will redirect.