Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
PyOTRS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Coopdevs
Som Connexió
OTRS
PyOTRS
Commits
2b24ae7f
Commit
2b24ae7f
authored
8 years ago
by
Robert Habermann
Browse files
Options
Downloads
Patches
Plain Diff
fix typo in docs
parent
b4e460b5
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.rst
+9
-9
9 additions, 9 deletions
README.rst
with
9 additions
and
9 deletions
README.rst
+
9
−
9
View file @
2b24ae7f
...
@@ -11,7 +11,7 @@ Overview
...
@@ -11,7 +11,7 @@ Overview
:target: https://pyotrs.readthedocs.org/en/latest/index.html
:target: https://pyotrs.readthedocs.org/en/latest/index.html
:alt: Docs Build Status
:alt: Docs Build Status
PyOTRS is a Python wrapper for accessing `OTRS <https://www.otrs.com/>`_ (Version 5
!
) using the
PyOTRS is a Python wrapper for accessing `OTRS <https://www.otrs.com/>`_ (Version 5) using the
REST API.
REST API.
Features
Features
...
@@ -72,7 +72,7 @@ Get Ticket with TicketID 1 from OTRS over the REST API::
...
@@ -72,7 +72,7 @@ Get Ticket with TicketID 1 from OTRS over the REST API::
from pyotrs import Client
from pyotrs import Client
client = Client("https://otrs.example.com", "GenericTicketConnectorREST", "root@localhost", "x")
client = Client("https://otrs.example.com", "GenericTicketConnectorREST", "root@localhost", "x")
client.session_re
store_or_set_up_new
()
client.session_
c
re
ate
()
client.ticket_get_by_id(1)
client.ticket_get_by_id(1)
...
@@ -109,11 +109,11 @@ True
...
@@ -109,11 +109,11 @@ True
- get Articles and Attachments
- get Articles and Attachments
>>> client.ticket_get_by_id(1, articles=1, attachments=1)
# include Articles and Attachments
>>> client.ticket_get_by_id(1, articles=1, attachments=1)
>>> my_ticket = client.result_list_ticket_get[0]
>>> my_ticket = client.result_list_ticket_get[0]
>>> my_ticket.list_articles
>>> my_ticket.list_articles
[<ArticleID: 3>, <ArticleID:
3
>
[<ArticleID: 3>, <ArticleID:
4
>
>>> my_ticket.list_dynamic_field
>>> my_ticket.list_dynamic_field
[<DynamicField: ProcessManagementActivityID: None>, <DynamicField: ProcessManagementProcessID: None>]
[<DynamicField: ProcessManagementActivityID: None>, <DynamicField: ProcessManagementProcessID: None>]
...
@@ -141,10 +141,10 @@ Usage
...
@@ -141,10 +141,10 @@ Usage
Get a Ticket::
Get a Ticket::
PyOTRS get -b https://
sys.denm.de
/ -w GenericTicketConnectorREST -u ro
bbie -p 8fajCQdDyN
-t 1
PyOTRS get -b https://
otrs.example.com
/ -w GenericTicketConnectorREST -u ro
ot@localhost -p password
-t 1
Starting PyOTRS CLI
Starting PyOTRS CLI
No config file found at: /home/
robbie
/.pyotrs
No config file found at: /home/
user
/.pyotrs
Connecting to https://
sys.denm.de/ as robbie
..
Connecting to https://
otrs.example.com/ as user
..
Ticket: Welcome to OTRS!
Ticket: Welcome to OTRS!
Queue: Raw
Queue: Raw
State: closed successful
State: closed successful
...
@@ -168,7 +168,7 @@ Get usage information::
...
@@ -168,7 +168,7 @@ Get usage information::
$: PyOTRS get -h
$: PyOTRS get -h
Starting PyOTRS CLI
Starting PyOTRS CLI
No config file found at: /home/
robbie
/.pyotrs
No config file found at: /home/
user
/.pyotrs
Usage: PyOTRS get [OPTIONS]
Usage: PyOTRS get [OPTIONS]
PyOTRS get command
PyOTRS get command
...
@@ -217,7 +217,7 @@ There are four ways to provide config values::
...
@@ -217,7 +217,7 @@ There are four ways to provide config values::
Both the config file and the environment use the same variable names::
Both the config file and the environment use the same variable names::
PYOTRS_BASEURL=http://otrs.example.com
:30080
PYOTRS_BASEURL=http://otrs.example.com
PYOTRS_WEBSERVICENAME=GenericTicketConnectorREST
PYOTRS_WEBSERVICENAME=GenericTicketConnectorREST
PYOTRS_USERNAME=root@localhost
PYOTRS_USERNAME=root@localhost
PYOTRS_PASSWORD=otrs_password
PYOTRS_PASSWORD=otrs_password
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment