Skip to content

Instantly share code, notes, and snippets.

@timheuer
Created January 27, 2023 04:43
Show Gist options
  • Save timheuer/5a546ac9eefc99263140720912973ccd to your computer and use it in GitHub Desktop.
Save timheuer/5a546ac9eefc99263140720912973ccd to your computer and use it in GitHub Desktop.
[Function(nameof(GetLiveChannels))]
public async Task<HttpResponseData> GetLiveChannels(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route = null)] HttpRequestData req,
ILogger log
)
{
var formData = new FormReader(req.Body);
// There is no Form property. How do we access the HTTP POST content?
var channelIds = formData.GetValue("ChannelIdCsv").ToString().Split(',');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment