Skip to content

Commit

Permalink
minor changes to tts sample
Browse files Browse the repository at this point in the history
  • Loading branch information
smithrobs committed Oct 15, 2016
1 parent 3ee603d commit 6b2dd44
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Nexmo.Samples.Voice.FirstTTS/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ private static void Main(string[] args)

// Set up some variables
var applicationId = Configuration.Instance.Settings["Nexmo.Application.Id"];
const string phoneNumberToCall = "15555551212";
var phoneNumberToCall = Configuration.Instance.Settings["test_number"];

// Make a TTS Call to a phone number

Expand All @@ -38,7 +38,7 @@ private static void Main(string[] args)
from = new Call.Endpoint
{
type = "phone",
number = "15554443333"
number = Configuration.Instance.Settings["nexmo_number"]
},
answer_url = new[]
{
Expand Down
18 changes: 15 additions & 3 deletions Nexmo.Samples.Voice.FirstTTS/project.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,29 @@
{
"version": "1.0.0-*",

"buildOptions": {
"emitEntryPoint": true
},
"dependencies": {
"Nexmo.Api": "1.0.0-*"
},

"frameworks": {
"net452": {
},
"netstandard1.6": {
"netcoreapp1.0": {
"imports": "dnxcore50",
"dependencies": {
"NETStandard.Library": "1.6.0",
//"NETStandard.Library": "1.6.0",
"Microsoft.NETCore.App": {
//"type": "platform",
"version": "1.0.*"
}
}
}
},
"runtimes": {
"win7-x64": {},
"osx": {},
"linux": {}
}
}
5 changes: 4 additions & 1 deletion Nexmo.Samples.Voice.FirstTTS/settings.json.example
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@
"Nexmo.Url.Rest": "https://rest.nexmo.com",
"Nexmo.Url.Api": "https://api.nexmo.com",
"Nexmo.Application.Id": "ffffffff-ffff-ffff-ffff-ffffffffffff",
"Nexmo.Application.Key": "c:\\path\\to\\your\\application\\private.key"
"Nexmo.Application.Key": "c:\\path\\to\\your\\application\\private.key",

"nexmo_number": "15555551212",
"test_number": "15557771212"
}

0 comments on commit 6b2dd44

Please sign in to comment.