Skip to content

Instantly share code, notes, and snippets.

@bjoerntx
Created August 23, 2022 07:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjoerntx/9f242a97504df18a7bba3bd1301ede25 to your computer and use it in GitHub Desktop.
Save bjoerntx/9f242a97504df18a7bba3bd1301ede25 to your computer and use it in GitHub Desktop.
public IActionResult RequestWebAPI() {
var webHookUrl = Request.Scheme + "://" + Request.Host + "/Home/WebHook";
var requestUrl =
"https://localhost:7210/api/DocumentProcessing/merge?webHookUrl=" + webHookUrl;
HttpClient client = new HttpClient();
HttpResponseMessage responseMessage = client.PostAsync(requestUrl, null).Result;
return View();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment