So im trying to check a value which is returned to me from an api call to active campaign. Because I'm learning C# im not sure how to go about this.
So I use this code to send the api call and store the response in a variable:
var contactExists = acs.SendRequest("POST", getParameters1, postParameters1);
Then I output the response to the output wibndow in visual studio using this:
System.Diagnostics.Debug.WriteLine(contactExists);
This returns this:
{"result_code":1,"result_message":"Success: Something is returned","result_output":"json"}
Now in C# how would I check the value of this "result_code":1
I came across this anwswer and checked the msdn but it's not making sense.
I also thought maybe contactExists.result_code would work but it doesn't.
Anyone know how to go about this. Cheers