Permalink
Browse files

updated refs, fixed RestException not populated on single instances, …

….net 4 stub project for nuget, Twilio.Api version bump to 3.2.1
  • Loading branch information...
1 parent 7bc9b9a commit 3f7c9bfd79f64adefbed9921f2988843d8eff427 @johnsheehan johnsheehan committed Sep 28, 2011
Showing with 368 additions and 16 deletions.
  1. +4 −1 Twilio.nuspec
  2. +2 −0 package.cmd
  3. +296 −0 src/Twilio.Api.Net4/Twilio.Api.Net4.csproj
  4. +5 −0 src/Twilio.Api.Net4/packages.config
  5. +10 −0 src/Twilio.Api.Silverlight/Core.Async.cs
  6. +2 −2 src/Twilio.Api.Silverlight/Twilio.Api.Silverlight.csproj
  7. +1 −1 src/Twilio.Api.Silverlight/packages.config
  8. +2 −2 src/Twilio.Api.WindowsPhone/Twilio.Api.WindowsPhone.csproj
  9. +1 −1 src/Twilio.Api.WindowsPhone/packages.config
  10. +10 −0 src/Twilio.Api/Core.cs
  11. +2 −2 src/Twilio.Api/Twilio.Api.csproj
  12. +1 −1 src/Twilio.Api/packages.config
  13. +3 −2 src/Twilio.Twiml.Tests/Twilio.TwiML.Tests.csproj
  14. +1 −1 src/Twilio.Twiml.Tests/packages.config
  15. +12 −0 src/Twilio.sln
  16. BIN src/packages/RestSharp.101.3/RestSharp.101.3.nupkg
  17. BIN src/packages/RestSharp.101.3/lib/net35-client/RestSharp.dll
  18. BIN src/packages/RestSharp.101.3/lib/net35/RestSharp.dll
  19. BIN src/packages/RestSharp.101.3/lib/net4-client/RestSharp.dll
  20. BIN src/packages/RestSharp.101.3/lib/net4/RestSharp.dll
  21. BIN src/packages/RestSharp.101.3/lib/sl3-wp/RestSharp.WindowsPhone.dll
  22. BIN src/packages/RestSharp.101.3/lib/sl4/RestSharp.Silverlight.dll
  23. BIN src/packages/RestSharp.102.1/RestSharp.102.1.nupkg
  24. BIN src/packages/RestSharp.102.1/lib/net35-client/RestSharp.dll
  25. BIN src/packages/RestSharp.102.1/lib/net35/RestSharp.dll
  26. BIN src/packages/RestSharp.102.1/lib/net4-client/RestSharp.dll
  27. BIN src/packages/RestSharp.102.1/lib/net4/RestSharp.dll
  28. BIN src/packages/RestSharp.102.1/lib/sl3-wp/RestSharp.WindowsPhone.dll
  29. BIN src/packages/RestSharp.102.1/lib/sl4-wp71/RestSharp.WindowsPhone.dll
  30. BIN src/packages/RestSharp.102.1/lib/sl4/RestSharp.Silverlight.dll
  31. +2 −1 src/packages/repositories.config
  32. BIN src/packages/xunit.1.8.0.1545/xunit.1.8.0.1545.nupkg
  33. BIN src/packages/{xunit.1.8.0.1545 → xunit.1.8.0.1549}/lib/xunit.dll
  34. +5 −0 src/packages/xunit.1.8.0.1549/lib/xunit.dll.tdnet
  35. BIN src/packages/xunit.1.8.0.1549/lib/xunit.runner.tdnet.dll
  36. BIN src/packages/xunit.1.8.0.1549/lib/xunit.runner.utility.dll
  37. +9 −2 src/packages/{xunit.1.8.0.1545 → xunit.1.8.0.1549}/lib/xunit.xml
  38. BIN src/packages/xunit.1.8.0.1549/xunit.1.8.0.1549.nupkg
View
@@ -2,7 +2,7 @@
<package>
<metadata>
<id>Twilio</id>
- <version>3.2.0</version>
+ <version>3.2.1</version>
<authors>Twilio</authors>
<description>Twilio REST API helper library</description>
<language>en-US</language>
@@ -13,5 +13,8 @@
<dependencies>
<dependency id="RestSharp" />
</dependencies>
+ <releaseNotes>
+ * 3.2.1 - Fixed population of RestException values for single instances, updated to RestSharp 102.1
+ </releaseNotes>
</metadata>
</package>
View
@@ -12,6 +12,7 @@ if not exist download\package\twilioclient mkdir download\package\twilioclient
if not exist download\package\twilio\lib mkdir download\package\twilio\lib
if not exist download\package\twilio\lib\3.5 mkdir download\package\twilio\lib\3.5
+if not exist download\package\twilio\lib\4.0 mkdir download\package\twilio\lib\4.0
if not exist download\package\twilio\lib\SL3-WP7 mkdir download\package\twilio\lib\SL3-WP7
if not exist download\package\twilio\lib\SL4 mkdir download\package\twilio\lib\SL4
@@ -40,6 +41,7 @@ copy src\Twilio.Client.Capability\bin\Release\*.* download
copy LICENSE.txt download
copy src\Twilio.Api\bin\Release\Twilio.Api.* download\package\twilio\lib\3.5\
+copy src\Twilio.Api.Net4\bin\Release\Twilio.Api.* download\package\twilio\lib\4.0\
copy src\Twilio.Api.Silverlight\bin\Release\Twilio.Api.Silverlight.* download\package\twilio\lib\SL4\
copy src\Twilio.Api.WindowsPhone\bin\Release\Twilio.Api.WindowsPhone.* download\package\twilio\lib\SL3-WP7\
@@ -0,0 +1,296 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{A76DB40D-07F2-40F2-98CD-4DFCF56782F0}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>Twilio</RootNamespace>
+ <AssemblyName>Twilio.Api</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>TRACE;DEBUG;FRAMEWORK</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE;FRAMEWORK</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="Newtonsoft.Json">
+ <HintPath>..\packages\Newtonsoft.Json.4.0.2\lib\net40\Newtonsoft.Json.dll</HintPath>
+ </Reference>
+ <Reference Include="RestSharp">
+ <HintPath>..\packages\RestSharp.102.1\lib\net4-client\RestSharp.dll</HintPath>
+ </Reference>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="..\Twilio.Api.Silverlight\Accounts.Async.cs">
+ <Link>Accounts.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Applications.Async.cs">
+ <Link>Applications.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\AuthorizedConnectApps.Async.cs">
+ <Link>AuthorizedConnectApps.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\AvailablePhoneNumbers.Aysnc.cs">
+ <Link>AvailablePhoneNumbers.Aysnc.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Calls.Async.cs">
+ <Link>Calls.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Conference.Async.cs">
+ <Link>Conference.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\ConnectApps.Async.cs">
+ <Link>ConnectApps.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Core.Async.cs">
+ <Link>Core.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\IncomingPhoneNumbers.Async.cs">
+ <Link>IncomingPhoneNumbers.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Notifications.Aysnc.cs">
+ <Link>Notifications.Aysnc.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\OutgoingCallerIds.Async.cs">
+ <Link>OutgoingCallerIds.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Recordings.Async.cs">
+ <Link>Recordings.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Sandbox.Async.cs">
+ <Link>Sandbox.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Sms.Async.cs">
+ <Link>Sms.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api.Silverlight\Transcriptions.Async.cs">
+ <Link>Transcriptions.Async.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Accounts.cs">
+ <Link>Accounts.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Applications.cs">
+ <Link>Applications.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\AuthorizedConnectApps.cs">
+ <Link>AuthorizedConnectApps.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\AvailablePhoneNumbers.cs">
+ <Link>AvailablePhoneNumbers.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Calls.cs">
+ <Link>Calls.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Conference.cs">
+ <Link>Conference.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\ConnectApps.cs">
+ <Link>ConnectApps.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Core.cs">
+ <Link>Core.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\IncomingPhoneNumbers.cs">
+ <Link>IncomingPhoneNumbers.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Account.cs">
+ <Link>Model\Account.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AccountStatus.cs">
+ <Link>Model\AccountStatus.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Application.cs">
+ <Link>Model\Application.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ApplicationOptions.cs">
+ <Link>Model\ApplicationOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ApplicationResult.cs">
+ <Link>Model\ApplicationResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AuthorizedConnectApp.cs">
+ <Link>Model\AuthorizedConnectApp.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AuthorizedConnectAppResult.cs">
+ <Link>Model\AuthorizedConnectAppResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AvailablePhoneNumber.cs">
+ <Link>Model\AvailablePhoneNumber.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AvailablePhoneNumberListRequest.cs">
+ <Link>Model\AvailablePhoneNumberListRequest.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\AvailablePhoneNumberResult.cs">
+ <Link>Model\AvailablePhoneNumberResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Call.cs">
+ <Link>Model\Call.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\CallListRequest.cs">
+ <Link>Model\CallListRequest.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\CallOptions.cs">
+ <Link>Model\CallOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\CallResult.cs">
+ <Link>Model\CallResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ComparisonType.cs">
+ <Link>Model\ComparisonType.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Conference.cs">
+ <Link>Model\Conference.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ConferenceListRequest.cs">
+ <Link>Model\ConferenceListRequest.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ConferenceResult.cs">
+ <Link>Model\ConferenceResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ConnectApp.cs">
+ <Link>Model\ConnectApp.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ConnectAppResult.cs">
+ <Link>Model\ConnectAppResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\DeleteStatus.cs">
+ <Link>Model\DeleteStatus.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\HangupStyle.cs">
+ <Link>Model\HangupStyle.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\IncomingPhoneNumber.cs">
+ <Link>Model\IncomingPhoneNumber.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\IncomingPhoneNumberResult.cs">
+ <Link>Model\IncomingPhoneNumberResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Notification.cs">
+ <Link>Model\Notification.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\NotificationResult.cs">
+ <Link>Model\NotificationResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\OutgoingCallerId.cs">
+ <Link>Model\OutgoingCallerId.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\OutgoingCallerIdResult.cs">
+ <Link>Model\OutgoingCallerIdResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Participant.cs">
+ <Link>Model\Participant.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ParticipantResult.cs">
+ <Link>Model\ParticipantResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Permission.cs">
+ <Link>Model\Permission.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\PhoneNumberOptions.cs">
+ <Link>Model\PhoneNumberOptions.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Recording.cs">
+ <Link>Model\Recording.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\RecordingResult.cs">
+ <Link>Model\RecordingResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\RestException.cs">
+ <Link>Model\RestException.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Sandbox.cs">
+ <Link>Model\Sandbox.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\SmsMessage.cs">
+ <Link>Model\SmsMessage.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\SmsMessageResult.cs">
+ <Link>Model\SmsMessageResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\SmsShortCode.cs">
+ <Link>Model\SmsShortCode.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\SmsShortCodeResult.cs">
+ <Link>Model\SmsShortCodeResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\Transcription.cs">
+ <Link>Model\Transcription.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\TranscriptionResult.cs">
+ <Link>Model\TranscriptionResult.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\TwilioBase.cs">
+ <Link>Model\TwilioBase.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\TwilioListBase.cs">
+ <Link>Model\TwilioListBase.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Model\ValidationRequest.cs">
+ <Link>Model\ValidationRequest.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Notifications.cs">
+ <Link>Notifications.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\OutgoingCallerIds.cs">
+ <Link>OutgoingCallerIds.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Properties\AssemblyInfo.cs">
+ <Link>AssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Recordings.cs">
+ <Link>Recordings.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Sandbox.cs">
+ <Link>Sandbox.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\SharedAssemblyInfo.cs">
+ <Link>SharedAssemblyInfo.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Sms.cs">
+ <Link>Sms.cs</Link>
+ </Compile>
+ <Compile Include="..\Twilio.Api\Transcriptions.cs">
+ <Link>Transcriptions.cs</Link>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <Folder Include="Properties\" />
+ </ItemGroup>
+ <ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="Newtonsoft.Json" version="4.0.2" />
+ <package id="RestSharp" version="102.1" />
+</packages>
@@ -35,6 +35,16 @@ public partial class TwilioRestClient
/// <param name="callback">The callback function to execute when the async request completes</param>
public void ExecuteAsync<T>(RestRequest request, Action<T> callback) where T : new()
{
+ request.OnBeforeDeserialization = (resp) =>
+ {
+ // for individual resources when there's an error to make
+ // sure that RestException props are populated
+ if (((int)resp.StatusCode) >= 400)
+ {
+ request.RootElement = "";
+ }
+ };
+
_client.ExecuteAsync<T>(request, (response) =>
{
callback(response.Data);
@@ -53,9 +53,9 @@
<SpecificVersion>False</SpecificVersion>
<HintPath>..\packages\Newtonsoft.Json.4.0.2\lib\sl4\Newtonsoft.Json.Silverlight.dll</HintPath>
</Reference>
- <Reference Include="RestSharp.Silverlight, Version=101.3.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <Reference Include="RestSharp.Silverlight, Version=102.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\RestSharp.101.3\lib\sl4\RestSharp.Silverlight.dll</HintPath>
+ <HintPath>..\packages\RestSharp.102.1\lib\sl4\RestSharp.Silverlight.dll</HintPath>
</Reference>
<Reference Include="System.Windows" />
<Reference Include="system" />
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="4.0.2" />
- <package id="RestSharp" version="101.3" />
+ <package id="RestSharp" version="102.1" />
</packages>
@@ -47,9 +47,9 @@
<Reference Include="Newtonsoft.Json.WindowsPhone">
<HintPath>..\packages\Newtonsoft.Json.4.0.2\lib\sl3-wp\Newtonsoft.Json.WindowsPhone.dll</HintPath>
</Reference>
- <Reference Include="RestSharp.WindowsPhone, Version=101.3.0.0, Culture=neutral, processorArchitecture=MSIL">
+ <Reference Include="RestSharp.WindowsPhone, Version=102.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
- <HintPath>..\packages\RestSharp.101.3\lib\sl3-wp\RestSharp.WindowsPhone.dll</HintPath>
+ <HintPath>..\packages\RestSharp.102.1\lib\sl3-wp\RestSharp.WindowsPhone.dll</HintPath>
</Reference>
<Reference Include="System.Windows" />
<Reference Include="system" />
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="4.0.2" />
- <package id="RestSharp" version="101.3" />
+ <package id="RestSharp" version="102.1" />
</packages>
Oops, something went wrong.

0 comments on commit 3f7c9bf

Please sign in to comment.