目前,我的任务是自动化我们公司的一些流程。其中之一是通过 Attlassian Confluence 在我们的知识库中自动创建页面。
通常我是一个 .Net 开发人员,我不熟悉REST
API。所以我已经阅读了文档,这给了我以下行来创建一个新页面:
curl -u admin:admin -X POST -H 'Content-Type: application/json' -d'{"type":"page","title":"new page","space":{"key":"TST"},"body":{"storage":{"value":"<p>This is a new page</p>","representation":"storage"}}}' http://localhost:8080/confluence/rest/api/content/
我的问题是,我不知道如何在 C# 中执行此操作。