How to call external api with Azure function with POST method with request body data
using System.Threading.Tasks; using Microsoft.AspNetCore.Mvc; using Microsoft.Azure.WebJobs; using Microsoft.Azure.WebJobs.Extensions.Http; using Microsoft.AspNetCore.Http; using Microsoft.Extensions.Logging; using System.Net; using System.IO; namespace FunctionRestApi { public static class Function1 { [FunctionName("Function1")] public static IActionResult Run( [HttpTrigger(AuthorizationLevel.Anonymous, "get", "post", Route = null)] HttpRequest req, ILogger log) { var httpWebRequest = (HttpWebRequest)WebRequest.Create("URL_with_client_id_authorization_token"); httpWebRequest.ContentType = "ap
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.