c# getasync response
async Task<string> GetResponseString(string text)
{
var httpClient = new HttpClient();
var parameters = new Dictionary<string, string>();
parameters["text"] = text;
var response = await httpClient.PostAsync(BaseUri, new FormUrlEncodedContent(parameters));
var contents = await response.Content.ReadAsStringAsync();
return contents;
}
var finalResult = await GetResponseString(text);
Also in C#:
- c# stop loop in method
- C# .net core convert int to enum
- array to list C
- c# switct case
- unity get scrollbar value
- visual studio c# mark class deprecated
- how to clear console through script unity
- get what week of the month c#
- datetitime contrusctor c#
- stateteach.net
- c# initialize array
- hasmap c#
- how to reference scripts in other scenes unity
- Add component object to gameobject unity
- c# round to closest multiple
- c# loop through two dimensional array
- unity resources load
- get setter c# model
- c# contextswitchdeadlock
- how to get the askii code of a char in c#
- mysql C# select pk and all columns datareader
- c# string array
- convert string to datetime c#
- instantiate object in circle