Permalink
Browse files

Updated install instructions

  • Loading branch information...
1 parent 3761b3a commit 4aaaae323889c2f29b01065d7fdd2d0818e43fd9 @devinrader devinrader committed Apr 25, 2013
Showing with 34 additions and 3 deletions.
  1. +34 −3 README.md
View
@@ -5,9 +5,33 @@ Twilio provides a simple HTTP-based API for sending and receiving phone calls an
## [.NET Helper Library Documentation][3]
#### [Twilio REST API Documentation][1] - [Twilio TwiML Documentation][2]
-### Installation
+### Adding Twilio libraries to your .NET project
-#### Via NuGet
+The best and easiest way to add the Twilio libraries to your .NET project is to use the NuGet package manager. NuGet is a Visual Studio extension that makes it easy to install and update third-party libraries and tools in Visual Studio.
+
+NuGet is available for Visual Studio 2010 and Visual Studio 2012, and you can find instructions for installing the NuGet extension on the NuGet.org website:
+
+[http://docs.nuget.org/docs/start-here/installing-nuget](http://docs.nuget.org/docs/start-here/installing-nuget)
+
+Once you have installed the NuGet extension, you can choose to install the Twilio libraries using either the Package Manager dialog, or using the Package Manager console.
+
+#### Installing via the Package Manager Dialog
+
+To install a Twilio library using the Package Manager dialog, first open the dialog by right-clicking the References folder in your project and selecting the package manager option:
+
+![](https://lh4.googleusercontent.com/f7arKv3rtF3_0x8ckYwDC4d9qr3lfcHcIYROjAAI2h6StebF_szFVy_irxjDuKtUlemg2PC9uWaUKjtSuZfwPh6PatIN76BrksWaL8slscC5yDpxxtQ)
+
+When the package manager dialog opens simply search the online catalog for _‘Twilio’_. The screen shot below shows the results returned from the NuGet catalog:
+
+![](https://lh3.googleusercontent.com/5MJ4NZuU2u38BrXAaXCAaQNIG-A5GR9SpdfOylya2HCHoRgCdybmdfbKpo9-AAOx3TmH_Yn2vri5vBR4cXMrFoVcKl5SWQ5POPgDNTzrUxlCJiDq-Jc)
+
+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 proper references to your project.
+
+![](http://i.imgur.com/qX02AAF.png)
+
+#### Installing via the Package Manager Console
+
+To install a Twilio library using the Package Manager console, first open the console, then Use the _Install-Package_ command to install the different Twilio packages:
Install REST API wrapper:
@@ -17,10 +41,17 @@ Install ASP.NET MVC helpers and REST API wrapper:
Install-Package Twilio.Mvc
-To install WebMatrix/ASP.NET Web Pages helpers, search for Twilio in the WebMatrix site administration.
+#### Installing in WebMatrix
+
+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’_.
+
+![](https://lh6.googleusercontent.com/hooO2wNh3UZnXOLkrvDIFQJuFBQEl2mrmzLjjneceniB4IT6QX927qMR5TV3XGciZMAg__Np0RwKhnmq45drgIBYEHcEtYxXGUL9Q2TaEAJnO9tCfTE)
+
### Sample Usage
+The examples below show how to have your application initiate and outbound phone call and send an SMS message using the Twilio .NET helper library:
+
using Twilio;
var twilio = new TwilioRestClient("accountSid", "authToken");
var call = twilio.InitiateOutboundCall("+1555456790", "+15551112222", "http://example.com/handleCall");

0 comments on commit 4aaaae3

Please sign in to comment.