我正在尝试为 HipChat 创建通知,不幸的是他们的 HipChat-CS ( https://github.com/KyleGobel/Hipchat-CS ) nuget 包不起作用。因此,我想研究如何手动发送通知,但他们的示例是使用我不熟悉的 cURL。我想以他们的例子并将其变成我可以在我的 c# 应用程序中使用的东西。任何帮助将不胜感激!这是 cURL 示例:
curl -d '{"color":"green","message":"My first notification (yey)","notify":false,"message_format":"text"}' -H 'Content-Type: application/json' https://organization.hipchat.com/v2/room/2388080/notification?auth_token=authKeyHere
再次感谢你!
阿杰