ASP.Net is a great web development platform from Microsoft to allow programmers to build dynamic web sites, applications and services. In this article, we’ll see how we can use Dialogue Wise, a headless CMS to manage the contents of your app. In this article we assume you already have a basic understanding of Asp.Net.
Firstly, let’s start by installing the Dialogue Wise Nuget package
Install-Package DialogueWise -Version 1.0.0
Once the package is installed, you will need to now prepare the payload for the API which will include the apiKey, dialogueName and emailHash and any variables that you need to pass.
var request = new DialogueWiseRequest()
ApiKey = "", //Your api key
DialogueName = "", //Name of the dialogue which contains your content.
EmailHash = "", //Email hash
VariableList = new Dictionary<string, object>()
//Any variables you need to pass.
That’s pretty much it. All you need to do now is pass the payload to the GetDialogue method to get the content.
var dialogueWise = new DialogueWiseClient();
var response = dialogueWise.GetDialogue(request);
You can also have a look at the sample project available on Github for a better understanding. Also, check out our Docs to understand how you can make use of other features.