Kugel
Kugel

Reputation: 19864

Does trac have remote API?

I know there is xmlrpc plugin for trac. But I is not my trac site nor do I have admin rights. I just have a normal user account with limited priviledges.

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

I'm interested mainly in these:

Upvotes: 8

Views: 1790

Answers (3)

Jens A. Koch
Jens A. Koch

Reputation: 41796

Trac does not provide an API by default. You might install the XmlRpcPlugin. Trac then provides anonymous and authenticated access to an API via two protocols: XML-RPC and JSON-RPC.

A helper library for easier access is https://github.com/jakoch/PHPTracRPC

Upvotes: 2

retracile
retracile

Reputation: 12339

If you look at the "functional testing" in the Trac source, you'll find that we have code that exercises Trac using twill. You might find that to be a useful starting point for doing this sort of thing.

Upvotes: 3

Kugel
Kugel

Reputation: 19864

Seems the only way to do this would be to emulate browser.

Upvotes: 0

Related Questions