Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using System;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
public static async Task PostAzureFunction()
var azureFunctionUrl = "https://<FunctionAppName><FunctionName>?code=<Functionごとに一意な文字列>";
var payload = new
key = "value"
var jsonString = JsonConvert.SerializeObject(payload);
await client.PostAsync(azureFunctionUrl, new StringContent(jsonPayload, Encoding.UTF8, "application/json"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.