I. Engineering background
The company is located in the engineering inspection industry, the need to manage 30 Field engineering Team Test reports, currently using the Confluence knowledge management system, for the management of test reports, in the future may also be based on the test report Natural language analysis processing.
Baidu Encyclopedia is so explained confluence:
Confluence provides a collaborative environment for the team. Here, team members work together to write documents and manage projects in a collaborative manner. From then on, breaking the deadlock between different teams, different departments and individual information silos, confluence really realized the organization resource sharing.
Two. What are we going to do?
Currently planning to develop a desktop report management tool, similar to svn+ Baidu Cloud disk and other effects, the server and Data warehouse is already in use confluence, so you need to develop a desktop-side application.
But the current online-based confluence are doing Python, C + + and other interfaces, the team to. NET is more familiar, so it took a few days to study the Rpc/xml protocol of the next confluence.
Reference: Https://developer.atlassian.com/confdev/deprecated-apis/confluence-xml-rpc-and-soap-apis, also used the Wireshark grab Bag tool.
Finally, the Confluence C # API is implemented on the. NET XML/RPC protocol.
Three. What functionality has been implemented by the Confluence DotNet API
What Confluence DotNet API can do now
- Manage Confluence Login (login operation)
- Managing Confluence space (spatial operations
- Manage Confluence Pages (page actions)
- Manage Confluence Attachment (attachment operation)
Usage examples:
Privateconfluenceclient confluenceclient; Private stringtoken; Private stringUsername ="username"; Private stringPassword ="Password"; Private stringConfluence_url ="Http://your_confluence_site/rpc/xmlrpc"; [SetUp] Public voidSetUp () {confluenceclient=Newconfluenceclient (Confluence_url); varAuthenticate = confluenceclient.authenticate (username, password,reftoken); Assert.istrue (authenticate); }
Full Source Code reference:
Https://github.com/enjoyeclipse22/ConfluenceDotNetAPI
Confluence DotNet API Release