Customer detail WebService API Restful

Moderator: crythias

Locked
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Customer detail WebService API Restful

Post by PriteshP23 »

Hello,
I looked in otrs admin manual for API webservice but couldn't get solution.
Have you any idea to set up RESTful WebService on OTRS4 CentOS to get Customer Info via JSON from other System ?
From OTRS, i can have email of customer and need to get customer details from json files on other server.
I would like to know which files should be changed / added.

It is not clear from otrs manual https://otrs.github.io/doc/manual/admin ... .12.10.7.5

Does it require too much Dev ? Any example/setupGuide to start to code and debug? Many thanks !

Thanks in advanced.
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
PriteshP23
Znuny newbie
Posts: 98
Joined: 02 Sep 2014, 23:01
Znuny Version: 4.0.9-02

Re: Customer detail WebService API Restful

Post by PriteshP23 »

@all:
I have made simple perl script like below link to get json data. It is working fine manually. That means i am writing email in url by myself.
http://xmodulo.com/how-to-parse-json-st ... -perl.html

The goal is to display fetched data on ticketZoom page under Customer Information here: @348 line
https://github.com/OTRS/otrs/blob/rel-4 ... ketZoom.tt

For example: url in perl script file should be same as [% Data.CustomerID | html %] email value and print fetched data on template file.

Any idea how to achieve curl -X GET url that will take user's email and i can display fetched data on AgentTicketZoom.tt file please?

Thanks !
OTRS 4.0.10-02 PostgreSQL 9.3.5
Perl 5.10.1 (linux) is used.
OS: Cent OS 6.5
Locked