Skip to content

Using ((OTRS)) Community Edition Generic Interface from PHP

License

Notifications You must be signed in to change notification settings

rkaldung/otrs-gi-rest-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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. 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 library:

$ 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, web service name and valid agent credentials.

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.

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.

About

Using ((OTRS)) Community Edition Generic Interface from PHP

Topics

Resources

License

Stars

Watchers

Forks

Languages