Triggering an API call to external application

Hi,

I’d like to, at the creation of a ticket, trigger an external application’s
API. The external application expects HTTP GET/ POST requests and returns
results via the same way, so I’m wondering if it’s possible to do that via
scrips. Since there are modules such as LWP in PERL, I’m wondering if I can
use that, but I’d like to see if this has been done (and how).

Can anyone point me in the right direction if this is possible?

Thanks,
PJ

The cleanest way would be through a scrip, as you correctly suspected.
Simply write Perl code to call the API in the required manner, probably
using LWP::UserAgent (or possibly WWW::Mechanize).On 16 July 2014 21:43, pj loh optimints@gmail.com wrote:

Hi,

I’d like to, at the creation of a ticket, trigger an external
application’s API. The external application expects HTTP GET/ POST requests
and returns results via the same way, so I’m wondering if it’s possible to
do that via scrips. Since there are modules such as LWP in PERL, I’m
wondering if I can use that, but I’d like to see if this has been done (and
how).

Can anyone point me in the right direction if this is possible?

Thanks,
PJ


RT Training - Boston, September 9-10
http://bestpractical.com/training

Hi Alex,

Thanks. Will look into these

PJOn 16 July 2014 22:44, Alex Peters alex@peters.net wrote:

The cleanest way would be through a scrip, as you correctly suspected.
Simply write Perl code to call the API in the required manner, probably
using LWP::UserAgent (or possibly WWW::Mechanize).

On 16 July 2014 21:43, pj loh optimints@gmail.com wrote:

Hi,

I’d like to, at the creation of a ticket, trigger an external
application’s API. The external application expects HTTP GET/ POST requests
and returns results via the same way, so I’m wondering if it’s possible to
do that via scrips. Since there are modules such as LWP in PERL, I’m
wondering if I can use that, but I’d like to see if this has been done (and
how).

Can anyone point me in the right direction if this is possible?

Thanks,
PJ


RT Training - Boston, September 9-10
http://bestpractical.com/training