diff --git a/LICENSE.md b/LICENSE.md index 3ffba0d09..3a3184173 100644 --- a/LICENSE.md +++ b/LICENSE.md @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015 Robert Smith +Copyright (c) 2015-2016 Robert Smith Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/Nexmo.Api.Test.Integration/Nexmo.Api.Test.Integration.csproj b/Nexmo.Api.Test.Integration/Nexmo.Api.Test.Integration.csproj index b211d8def..180b93119 100644 --- a/Nexmo.Api.Test.Integration/Nexmo.Api.Test.Integration.csproj +++ b/Nexmo.Api.Test.Integration/Nexmo.Api.Test.Integration.csproj @@ -21,13 +21,34 @@ prompt 4 - - pdbonly + + none true - bin\Release\ + bin\net452\ TRACE prompt 4 + v4.5.2 + + + bin\net46\ + TRACE + true + none + AnyCPU + prompt + v4.6 + MinimumRecommendedRules.ruleset + + + bin\net461\ + TRACE + true + none + AnyCPU + prompt + v4.6.1 + MinimumRecommendedRules.ruleset diff --git a/Nexmo.Api.Test.Unit/Nexmo.Api.Test.Unit.csproj b/Nexmo.Api.Test.Unit/Nexmo.Api.Test.Unit.csproj index 8bde83260..5532ef614 100644 --- a/Nexmo.Api.Test.Unit/Nexmo.Api.Test.Unit.csproj +++ b/Nexmo.Api.Test.Unit/Nexmo.Api.Test.Unit.csproj @@ -21,13 +21,34 @@ prompt 4 - - pdbonly + + none true - bin\Release\ + bin\net452\ TRACE prompt 4 + v4.5.2 + + + bin\net46\ + TRACE + true + none + AnyCPU + prompt + v4.6 + MinimumRecommendedRules.ruleset + + + bin\net461\ + TRACE + true + none + AnyCPU + prompt + v4.6.1 + MinimumRecommendedRules.ruleset diff --git a/Nexmo.Api.sln b/Nexmo.Api.sln index 00d0df1c9..f4645ff3b 100644 --- a/Nexmo.Api.sln +++ b/Nexmo.Api.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2013 -VisualStudioVersion = 12.0.40629.0 +# Visual Studio 14 +VisualStudioVersion = 14.0.24720.0 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nexmo.Api", "Nexmo.Api\Nexmo.Api.csproj", "{EE7DA727-2AE3-4C76-809A-56B7433004FE}" EndProject @@ -21,25 +21,43 @@ EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU + net452|Any CPU = net452|Any CPU + net46|Any CPU = net46|Any CPU + net461|Any CPU = net461|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {EE7DA727-2AE3-4C76-809A-56B7433004FE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {EE7DA727-2AE3-4C76-809A-56B7433004FE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {EE7DA727-2AE3-4C76-809A-56B7433004FE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {EE7DA727-2AE3-4C76-809A-56B7433004FE}.Release|Any CPU.Build.0 = Release|Any CPU + {EE7DA727-2AE3-4C76-809A-56B7433004FE}.net452|Any CPU.ActiveCfg = Release452|Any CPU + {EE7DA727-2AE3-4C76-809A-56B7433004FE}.net452|Any CPU.Build.0 = Release452|Any CPU + {EE7DA727-2AE3-4C76-809A-56B7433004FE}.net46|Any CPU.ActiveCfg = Release46|Any CPU + {EE7DA727-2AE3-4C76-809A-56B7433004FE}.net46|Any CPU.Build.0 = Release46|Any CPU + {EE7DA727-2AE3-4C76-809A-56B7433004FE}.net461|Any CPU.ActiveCfg = Release461|Any CPU + {EE7DA727-2AE3-4C76-809A-56B7433004FE}.net461|Any CPU.Build.0 = Release461|Any CPU {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.Release|Any CPU.Build.0 = Release|Any CPU + {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.net452|Any CPU.ActiveCfg = Release452|Any CPU + {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.net452|Any CPU.Build.0 = Release452|Any CPU + {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.net46|Any CPU.ActiveCfg = Release46|Any CPU + {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.net46|Any CPU.Build.0 = Release46|Any CPU + {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.net461|Any CPU.ActiveCfg = Release461|Any CPU + {3B32C093-EBED-4D60-B2FC-046F8FCE11D9}.net461|Any CPU.Build.0 = Release461|Any CPU {826FCF13-1B74-4404-B523-E59AF6F344C3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {826FCF13-1B74-4404-B523-E59AF6F344C3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {826FCF13-1B74-4404-B523-E59AF6F344C3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {826FCF13-1B74-4404-B523-E59AF6F344C3}.Release|Any CPU.Build.0 = Release|Any CPU + {826FCF13-1B74-4404-B523-E59AF6F344C3}.net452|Any CPU.ActiveCfg = Release452|Any CPU + {826FCF13-1B74-4404-B523-E59AF6F344C3}.net452|Any CPU.Build.0 = Release452|Any CPU + {826FCF13-1B74-4404-B523-E59AF6F344C3}.net46|Any CPU.ActiveCfg = Release46|Any CPU + {826FCF13-1B74-4404-B523-E59AF6F344C3}.net46|Any CPU.Build.0 = Release46|Any CPU + {826FCF13-1B74-4404-B523-E59AF6F344C3}.net461|Any CPU.ActiveCfg = Release461|Any CPU + {826FCF13-1B74-4404-B523-E59AF6F344C3}.net461|Any CPU.Build.0 = Release461|Any CPU {62C64008-D7DF-4647-8C2B-4F8A15A21631}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {62C64008-D7DF-4647-8C2B-4F8A15A21631}.Debug|Any CPU.Build.0 = Debug|Any CPU - {62C64008-D7DF-4647-8C2B-4F8A15A21631}.Release|Any CPU.ActiveCfg = Release|Any CPU - {62C64008-D7DF-4647-8C2B-4F8A15A21631}.Release|Any CPU.Build.0 = Release|Any CPU + {62C64008-D7DF-4647-8C2B-4F8A15A21631}.net452|Any CPU.ActiveCfg = Release452|Any CPU + {62C64008-D7DF-4647-8C2B-4F8A15A21631}.net452|Any CPU.Build.0 = Release452|Any CPU + {62C64008-D7DF-4647-8C2B-4F8A15A21631}.net46|Any CPU.ActiveCfg = Release46|Any CPU + {62C64008-D7DF-4647-8C2B-4F8A15A21631}.net46|Any CPU.Build.0 = Release46|Any CPU + {62C64008-D7DF-4647-8C2B-4F8A15A21631}.net461|Any CPU.ActiveCfg = Release461|Any CPU + {62C64008-D7DF-4647-8C2B-4F8A15A21631}.net461|Any CPU.Build.0 = Release461|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Nexmo.Api/Nexmo.Api.csproj b/Nexmo.Api/Nexmo.Api.csproj index 5f4482898..9a790c3f4 100644 --- a/Nexmo.Api/Nexmo.Api.csproj +++ b/Nexmo.Api/Nexmo.Api.csproj @@ -22,13 +22,34 @@ prompt 4 - - pdbonly + + none true - bin\Release\ + bin\net452\ TRACE prompt 4 + v4.5.2 + + + bin\net46\ + TRACE + true + none + AnyCPU + prompt + v4.6 + MinimumRecommendedRules.ruleset + + + bin\net461\ + TRACE + true + none + AnyCPU + prompt + v4.6.1 + MinimumRecommendedRules.ruleset diff --git a/Nexmo.Api/Nexmo.Api.nuspec b/Nexmo.Api/Nexmo.Api.nuspec index 1dc2acc64..c89b4cca8 100644 --- a/Nexmo.Api/Nexmo.Api.nuspec +++ b/Nexmo.Api/Nexmo.Api.nuspec @@ -2,17 +2,27 @@ Nexmo.Csharp.Client - $version$ + 1.0.0 Nexmo API Client - $author$ - $author$ + Nexmo + Nexmo https://github.com/Nexmo/csharp-client/blob/master/LICENSE.md https://github.com/Nexmo/csharp-client https://dashboard.nexmo.com/apple-touch-icon.png false - $description$ + Official C#/.NET wrapper for the nexmo API Initial release. © Nexmo 2016 SMS voice telephony phone nexmo + + + + + + + + + + \ No newline at end of file diff --git a/Nexmo.Web.Sample/Nexmo.Web.Sample.csproj b/Nexmo.Web.Sample/Nexmo.Web.Sample.csproj index cb976fb32..38395400c 100644 --- a/Nexmo.Web.Sample/Nexmo.Web.Sample.csproj +++ b/Nexmo.Web.Sample/Nexmo.Web.Sample.csproj @@ -31,13 +31,34 @@ prompt 4 - - pdbonly + + none + true + bin\ + TRACE + prompt + 4 + v4.5.2 + + + none + true + bin\ + TRACE + prompt + 4 + v4.6 + MinimumRecommendedRules.ruleset + + + none true bin\ TRACE prompt 4 + v4.6.1 + MinimumRecommendedRules.ruleset @@ -223,6 +244,15 @@ 10.0 $(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion) + + bin\ + TRACE + true + pdbonly + AnyCPU + prompt + MinimumRecommendedRules.ruleset + diff --git a/Nexmo.Web.Sample/Web.config.example b/Nexmo.Web.Sample/Web.config.example index 701a99400..55658d3e9 100644 --- a/Nexmo.Web.Sample/Web.config.example +++ b/Nexmo.Web.Sample/Web.config.example @@ -58,7 +58,7 @@ - + diff --git a/README.md b/README.md index 0c93dd28d..1a0059887 100644 --- a/README.md +++ b/README.md @@ -2,15 +2,24 @@ Official C#/.NET wrapper for the nexmo API (http://nexmo.com/) For full API documentation please refer to https://docs.nexmo.com/ -Usage Instructions: +Installation: =========================== -_NOTE: NuGet package coming soon!_ +* To install Nexmo API Client, run the following command in the Package Manager Console: + +``` +Install-Package Nexmo.Csharp.Client +``` + +Alternatively: * Download or build (see developer instructions) the Nexmo.Api.dll. * If you have downloaded a release, ensure you are referencing the Newtonsoft.Json.dll dependency by either including it with your project's NuGet dependencies or manually referencing it. * Reference the assembly in your code. + +Configuration: +=========================== * Provide your API key, secret, and nexmo URLs in appSettings: ```XML @@ -20,6 +29,8 @@ NuGet dependencies or manually referencing it. ``` +Usage: +=========================== * Use the methods provided to exercise the API. Example: ```C# @@ -36,45 +47,10 @@ Make sure to copy web.config.example to web.config and enter your key/secret. Developer Instructions: =========================== -We are currently targeting the 4.5.2 framework and using Visual Studio 2013 Update 5. +We are currently targeting the 4.5.2 - 4.6.1 frameworks and using Visual Studio 2015 Update 1. -1. Get latest code either by cloning the repository or downloading a snapshot of the source +1. Get latest code either by cloning the repository or downloading a snapshot of the source. 2. Open "Nexmo.Api.sln" 3. Build! NuGet dependencies should be brought down automatically; check your settings if they are not. -API support status: -=================== - -* Account - * [x] Balance - * [x] Pricing - * [X] Settings - * [X] Top Up - * [X] Numbers -* Number - * [X] Search - * [X] Buy - * [X] Cancel - * [X] Update -* NumberInsight - * [x] Request - * [x] Response -* NumberVerify - * [x] Verify - * [x] Check - * [x] Search -* Search - * [X] Message - * [X] Messages - * [X] Rejections -* Short Code - * [X] 2FA - * [X] Alerts - * [ ] Marketing -* SMS - * [X] Send - * [X] Receipt - * [X] Inbound -* Voice - * [X] Call - * [X] TTS/TTS Prompt +Pull requests are welcome! \ No newline at end of file