Does trac have a remote API?

I know there is an xmlrpc plugin for trac. But I am not my site, and I do not have administrator rights. I just have a regular user account with limited privileges.

Besides the obvious low level of things (sending requests by emulating a web browser), is there a better way to do this?

I am mainly interested in:

  • View Wiki Page
  • Change wiki page
  • Send a new ticket
  • View tickets
  • Add a comment to the ticket
+7
api trac
source share
3 answers

If you look at the “functional testing” in the Trac source, you will find that we have code that uses Trac using twill . You may find that this was a useful starting point for this kind of thing.

+4
source share

It seems the only way to do this is to emulate a browser.

0
source share

Trac does not provide a default API. You can install XmlRpcPlugin . Trac then provides anonymous and authenticated access to the API through two protocols: XML-RPC and JSON-RPC.

Helper library for easy access https://github.com/jakoch/PHPTracRPC

0
source share

All Articles