PERL API on remote machine

I would like to be able to access the PERL API from a machine remote to the RT server. Currently I am using the REST API and that is working ok but it is not as feature-complete.

Can I install the PERL API modules on the remote machine or do I need a full RT install to make this work?

Are there required permissions to allow the PERL API to access the remote RT instance?

Thanks in advance.

First, note that it would probably be more correct to update the API with your customizations, or maybe an extension. But sure you can do this.

What I would do would be do a full install of RT on the remote machine, and then update RT_SiteConfig.pm to point to the live RT database. Then in your scripts use this for the boilerplate:

use warnings;
use strict;

use lib qw(/opt/rt4/lib); # or wherever its installed

use RT;
use RT::User;

RT::LoadConfig();
RT::Init();

my $u = RT::User->new($RT::SystemUser);
$u->Load("root"); # or whatever user

And then you can write your code.

You’ll want to keep the RT versions in sync across systems.

Thanks for the reply. I will give the local install a go and try out your recommendations.

Ed