Skip to content

Commit

Permalink
minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
smithrobs authored Jul 25, 2017
1 parent 1b80649 commit 362a400
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ using Nexmo.Api.Voice;
public ActionResult GetCall(string id)
{
var call = Call.Get(id);
// Do something with call.
// Do something with call.
}
```
### Sending 2FA Code
Expand All @@ -215,14 +215,14 @@ Use [Nexmo's Verify API][doc_verify] to send 2FA pin code.

public ActionResult Start(string to)
{
var start = NumberVerify.Verify(new NumberVerify.VerifyRequest
{
number = to,
brand = "NexmoQS"
});
Session["requestID"] = start.request_id;

return View();
var start = NumberVerify.Verify(new NumberVerify.VerifyRequest
{
number = to,
brand = "NexmoQS"
});
Session["requestID"] = start.request_id;

return View();
}
```
### Checking 2FA Code
Expand All @@ -233,21 +233,21 @@ Use [Nexmo's Verify API][doc_verify] to check 2FA pin code.

public ActionResult Check(string code)
{
var result = NumberVerify.Check(new NumberVerify.CheckRequest
{
request_id = Session["requestID"].ToString(),
code = code
});
var result = NumberVerify.Check(new NumberVerify.CheckRequest
{
request_id = Session["requestID"].ToString(),
code = code
});

if (result.status == "0")
{
ViewBag.Message = "Verification Sucessful";
}
else
{
ViewBag.Message = result.error_text;
}
return View();
if (result.status == "0")
{
ViewBag.Message = "Verification Sucessful";
}
else
{
ViewBag.Message = result.error_text;
}
return View();
}
```

Expand Down

0 comments on commit 362a400

Please # to comment.