https://github.com/rkaldung/otrs-gi-rest-php
Using ((OTRS)) Community Edition Generic Interface from PHP
https://github.com/rkaldung/otrs-gi-rest-php
otrs otrs-generic-interface php
Last synced: 9 months ago
JSON representation
Using ((OTRS)) Community Edition Generic Interface from PHP
- Host: GitHub
- URL: https://github.com/rkaldung/otrs-gi-rest-php
- Owner: rkaldung
- License: mit
- Created: 2017-06-09T19:50:42.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2020-08-19T06:46:03.000Z (almost 6 years ago)
- Last Synced: 2025-05-17T09:41:26.238Z (about 1 year ago)
- Topics: otrs, otrs-generic-interface, php
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 15
- Watchers: 4
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### Using the Generic Interface REST of the ((OTRS)) Community Edition with PHP
#### Requirements
- ((OTRS)) Community Edition version 6
- PHP 7.x with composer
#### Prepare your ticket system
First, download the web service configuration from [GitHub](https://raw.githubusercontent.com/OTRS/otrs/rel-6_0/development/webservices/GenericTicketConnectorREST.yml). Navigate as an admin to `Admin` => `Web Service Management` => `Add Web Service` => `Import web service`. Enter a name for the web service. I suggest to use `GenericTicketConnectorREST` because this is used in the example.
#### Install example client
Clone this repository and run `composer update` to add the [Unirest](https://github.com/Mashape/unirest-php) library:
```bash
$ git clone https://github.com/rkaldung/otrs-gi-rest-php.git php-rest-client
$ cd php-rest-client
$ composer update
```
#### Prepare the client
Edit client.php and complete the baseURL and configure [FQDN](https://github.com/rkaldung/otrs-gi-rest-php/blob/master/client.php#L10), [web service name](https://github.com/rkaldung/otrs-gi-rest-php/blob/master/client.php#L11) and valid [agent credentials](https://github.com/rkaldung/otrs-gi-rest-php/blob/master/client.php#L16).
#### Run you client
Your client is ready to go and can be executed by `php client.php`
#### Misc
An introduction for the Generic Interface for the latest ((OTRS)) Community Editon is available in the [online manual](https://doc.otrs.com/doc/manual/admin/6.0/en/html/genericinterface.html).
The default operations TicketCreate and TicketUpdate are not able to send a new article via e-mail. For this use case you could install the free add-on [Znuny4OTRS-GIArticleSend](https://github.com/znuny/Znuny4OTRS-GIArticleSend).