Skip to content

Instantly share code, notes, and snippets.

View Bardin08's full-sized avatar
🐈
Meow

Vladyslav Bardin Bardin08

🐈
Meow
View GitHub Profile
using ErrorOr;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Infrastructure;
using Microsoft.AspNetCore.Mvc.ModelBinding;
using Microsoft.Extensions.Options;
using System.Diagnostics;
using Trumpet.Api.Common.Http;
namespace Trumpet.Api.Common.Errors;

Prerequisites:

  • A GitHub account
  • A repository on GitHub where you want to receive webhook events
  • A server with a public endpoint (or the ability to use tools like ngrok to expose your local server) to receive webhook requests

Steps:

  1. Access Webhook Settings:

Prerequisites

  • An ASP.NET Core web application with webhook endpoints ready.
  • A free or paid ngrok account.

Steps

  1. Download and Install ngrok
  • Go to the ngrok website (https://ngrok.com/) and download the version that matches your operating system.