freeside/eg xmlrpc-example.pl,NONE,1.1
Kristian Hoffmann
khoff at pouncequick.420.am
Wed Mar 2 13:01:04 PST 2005
Update of /home/cvs/cvsroot/freeside/eg
In directory pouncequick:/tmp/cvs-serv22333/eg
Added Files:
xmlrpc-example.pl
Log Message:
Initial version of the xmlrpc interface for freeside.
--- NEW FILE: xmlrpc-example.pl ---
#!/usr/bin/perl
use strict;
use Frontier::Client;
use Data::Dumper;
my $server = new Frontier::Client (
url => 'http://user:pass@freesidehost/misc/xmlrpc.cgi',
);
#my $method = 'cust_main.smart_search';
#my @args = (search => '1');
my $method = 'Record.qsearch';
my @args = (cust_main => { });
my $result = $server->call($method, @args);
if (ref($result) eq 'ARRAY') {
print "Result:\n";
print Dumper(@$result);
}
More information about the freeside-commits
mailing list