You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2011-03-04 06:43:54

abdon
Member
Registered: 2010-08-23
Posts: 101

API for web forms

This is the deal; on my organization there are several web forms that collect some information and then just email said information to the intended recipient. I would like to change the scripts into inserting a ticket into the GLPI.

Question; is there an API that will let me inject a new ticket from a custom made script? If not, what's the easiest way to insert a ticket directly, without going through the applications' interface?

Offline

#2 2011-03-04 09:01:41

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: API for web forms

The cleaner way is probably to use the WebService plugin, which provides methods to create ticket from another app, and which will use the GLPI framework.

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

#3 2011-03-04 09:04:45

remi
GLPI-DEV
From: Champagne
Registered: 2007-04-28
Posts: 7,127
Website

Re: API for web forms

The simple way is to  send the form content, by mail, to a GLPI reveiver
As the content struture is "wel know" (because generated), is quite simple to write "Rules" to do the first qualification.

+


Dév. Fedora 29 - PHP 5.6/7.0/7.1/7.2/7.3/7.4 - MariaDB 10.3 - GLPI master
Certifié ITILv3 - RPM pour Fedora, RHEL et CentOS sur https://blog.remirepo.net/

Offline

Board footer

Powered by FluxBB