PyOTRS
Use
import pyotrs
or from pyotrs import Article, Attachment, Client, DynamicField, Ticket
Example
- instantiate a
Client
object called client - create a session ("login") on client
- get the
Ticket
with ID 1 - add an
Article
toTicket
with ID 1
>>> from pyotrs import Article, Client, Ticket
>>> client = Client("http://otrs.example.com", "GenericTicketConnectorREST", "root@localhost", "password")
>>> client.session_create()
True
>>> client.ticket_get_by_id(1)
{u'Age': 6354,[...]}
>>> my_article = Article({"Subject": "Subj", "Body": "New Body"})
>>> client.ticket_update(1, article=my_article)
{u'ArticleID': u'2', u'TicketID': u'1', u'TicketNumber': u'12345'}
Full Docs
The Docs are hosted here: https://sys.denm.de/PyOTRS/docs/
Dist
The Docs are hosted here: https://sys.denm.de/PyOTRS/dist/
Coverage
The Docs are hosted here: https://sys.denm.de/PyOTRS/htmlcov/