Adding Twilio Helper Libraries to your Project

Twilio uses NuGet, Microsoft’s open-source package management system, to publish our helper libraries. Using NuGet allows you to add the libraries to your project without having to leave Visual Studio or WebMatrix, have NuGet automatically manage the assembly dependencies, and also notify you of updated versions.

If you are using WebMatrix as your development environment, you can access the NuGet user interface using these instructions.

Adding Helper Libraries in Visual Studio 2010

Once you have NuGet installed in Visual Studio 2010, launch the package manager dialog:

When the dialog opens simply search the online catalog for ‘Twilio’. The screenshot below shows the results returned from the NuGet catalog:

Simply click the Install button next to the Twilio package you want to add to your project and watch as NuGet downloads the Twilio library package (and its dependencies) and adds the references to your project.

Adding Helper Libraries to your WebMatrix website

If you are using Microsoft’s free web developer tool WebMatrix, it also includes integration with NuGet. To add the Twilio helpers to a site created using WebMatrix simply open the WebMatrix administration website (as described here). Change the Show dropdown from Installed to Online and use the search field to Search for ‘Twilio’:

Click the Install button next to the Twilio package you want to add to your project and the WebMatrix admin website will download and install the Twilio library package (and its dependencies) into the Bin directory of your website.

Now that you know how to get the Twilio helper libraries into your website or project, in the next post we’ll look at using the Twilio.API library to make requests to the Twilio REST API.

This series is written by Twilio Developer Evangelist Devin Rader. As a co-founder of the St. Louis .NET User Group, a current board member of the Central New Jersey .NET User Group and a former INETA board member, he’s an active supporter of the .NET developer community. He’s also the co-author or technical editor of numerous books on .NET including Wrox’s Professional Silverlight 4 and Wrox’s Professional ASP.NET 4. Follow Devin on Twitter @devinrader

Create an account with Twilio

What do you think?

Love to see an example of Request validation using the TwiML library. I can’t get anything but a false response. Thanks.

Devin

@Jk: I’m not sure what you mean by Request validation. Can you explain a bit more.

Jk

Love to see an example of Request validation using the TwiML library. I can’t get anything but a false response. Thanks.

Devin

@Jk: I’m not sure what you mean by Request validation. Can you explain a bit more.

http://twitter.com/codputer Richard Reukema

I have watched Twillo for a long time now, but didn’t have the time to invest in understanding the TwiML. As a full time .Net developer, I can’t believe it has taken Twillio this long to come out with a robust API for .Net developers! Looking forward to diving in and creating a solution that will be disruptive to so many telco business models that have yet to understand what Twilllo is.

http://twitter.com/codputer Richard Reukema

I have watched Twillo for a long time now, but didn’t have the time to invest in understanding the TwiML. As a full time .Net developer, I can’t believe it has taken Twillio this long to come out with a robust API for .Net developers! Looking forward to diving in and creating a solution that will be disruptive to so many telco business models that have yet to understand what Twilllo is.