简体   繁体   English

REST API 到 webhook C#

[英]REST API to webhooks C#

I am newbie to webhooks and doing google search is confusing me more lol.我是 webhook 的新手,做谷歌搜索让我更加困惑,哈哈。

I designed and implemented a HTTP POST rest API end point using .NET framework.我使用 Z303CB0EF9EDB9082D61BBBE5825 框架设计并实现了 HTTP POST rest API 端点。 I am able to consume this endpoint using postman without any problem.我可以使用 postman 毫无问题地使用此端点。 http://localhost:44309/custom/process {"name":"testing"} I am trying to write a web hook to consume that. http://localhost:44309/custom/process {"name":"testing"} 我正在尝试编写一个 web 挂钩来使用它。 My network is private, how can i register the endpoint and what is the best approach to implement and test webhook receiver?我的网络是私有的,我如何注册端点以及实现和测试 webhook 接收器的最佳方法是什么?

You need to make your endpoint publicly visible;你需要让你的端点公开可见; a common tool for that is ngrok , which is designed for this purpose, and has a free tier.一个常见的工具是ngrok ,它是为此目的而设计的,并且有一个免费层。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM